// here we define global variable
var ajaxdestination4="";

function getdata4(what,where) { // get data from source (what)

 try {
   xmlhttp4 = window.XMLHttpRequest?new XMLHttpRequest():
  		new ActiveXObject("Microsoft.XMLHTTP");
 }
 catch (e) { /* do nothing */ }

 document.getElementById(where).innerHTML ="<img src='/PF/loading.gif'>";
// we are defining the destination DIV id, must be stored in global variable (ajaxdestination)
 ajaxdestination4=where;
 xmlhttp4.onreadystatechange = triggered4; // when request finished, call the function to put result to destination DIV
 xmlhttp4.open("GET", what);
 xmlhttp4.send(null);
 return false;
}

function triggered4() { // put data returned by requested URL to selected DIV
  if (xmlhttp4.readyState == 4) if (xmlhttp4.status == 200) 
	//alert(xmlhttp4.responseText);
	document.getElementById(ajaxdestination4).innerHTML = xmlhttp4.responseText;
}




