var xmlHttp
var idtext
var idtext1
var idtext2
var idtext3
var idtext4

function getdatas(pageurl,id1,str)
{ 

document.getElementById(id1).style.display= 'inline';
idtext = id1
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url=pageurl
url=url+"q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged

xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}function stateChanged() 
{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById(idtext).innerHTML=xmlHttp.responseText 
 } 
}function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}




//RESET OTHERS-----------------------------------------------------------------------------------------------

function resetdatas(id1,id2,id3,id4)
{ 

document.getElementById(id1).style.display= 'none';
document.getElementById(id1).innerHTML='<img src="../images/run.gif">';
if (id2!='') {
	document.getElementById(id2).style.display= 'none';
	document.getElementById(id2).innerHTML='<img src="../images/run.gif">';

}
if (id3!=''){
	document.getElementById(id3).style.display= 'none';
	document.getElementById(id3).innerHTML='<img src="../images/run.gif">';
}
if (id4!=''){
	document.getElementById(id4).style.display= 'none';
	document.getElementById(id4).innerHTML='<img src="../images/run.gif">';
}


}





