function naiplotu( id, what ) {
 try {
   xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
  		new ActiveXObject("Microsoft.XMLHTTP");
 }
 catch (e) { /* do nothing */ }
 
 xmlhttp.onreadystatechange = triggered;
 xmlhttp.open("GET", '/wp-content/themes/urbanmania/ploturnar.php?action='+what+'&id='+id);
 xmlhttp.send(null);
}

function triggered() {
  if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200))
	var response = xmlhttp.responseText;
	/*removeRowFromTable(response)*/
	document.getElementById('hlustibox').innerHTML = response;
	/*var update = new Array(2);
	if(response.indexOf('|' != -1)) {
        update = response.split("|");
		document.getElementById(update[0]).innerHTML = update[1];
	}*/
}
