function loadDoc( url,layid )
{
			var xhttp=false;
			try {
			 xhttp = new ActiveXObject("Msxml2.XMLHTTP");
			 } catch (e) {
			  try {
			   xhttp = new ActiveXObject("Microsoft.XMLHTTP");
			  } catch (E) {
			   xhttp = false;
			  }
			 }
		 
			if (!xhttp && typeof XMLHttpRequest!='undefined') {
			try {
				xhttp = new XMLHttpRequest();
			} catch (e) {
				xhttp=false;
			}
		} 
		if (!xhttp && window.createRequest) {
			try {
				xhttp = window.createRequest();
			} catch (e) {
				
				xhttp=false;
			}
}
 // The following script makes a GET request for the relative url "text.txt"

//  xmlhttp.onreadystatechange = callback;
  xhttp.open("GET", url,true);

	xhttp.onreadystatechange=function() {
	if (xhttp.readyState==4) 
	{

	    
			document.getElementById(layid).innerHTML=''
		//	document.getElementById(layid).value=xhttp.responseText
		   document.getElementById(layid).innerHTML=xhttp.responseText
		   //alert(xhttp.responseText)
	 }
		 }
			
			xhttp.send(null)
		//	alert("REQUEST SENT 2");	  
		
			//xhttp=false;
			//var strLooped 
			//strLooped = "loadDoc('"+url+"','"+layid+"')";
		//	alert (strLooped);
			// update_status();
	 

	//timer=setTimeout(strLooped,1000)

}  
 
