function createxmlrequest()
{
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;
}
			function stateChanged() 
			{ 
			
				if (xmlHttp.readyState==1)
				 { 
				//document.getElementById("loading").innerHTML=xmlHttp.responseText;
				 // document.getElementById("txtHint2").innerHTML=xmlHttp.responseText;
				document.getElementById('txtHint').innerHTML = "<img src=loading.gif></img>";
				 }
				 
				if (xmlHttp.readyState==4 || xmlHttp.readyState==200)
				 { 
				document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
				 // document.getElementById("txtHint2").innerHTML=xmlHttp.responseText;
				 }
				 /*if(xmlHttp.readyState==3)
				 	{
						alert('You have an error in AJAX');
					}*/ 
			}
		
	function showuser(str)
		{
		xmlHttp = createxmlrequest();
		if(xmlHttp == null)
			{
				alert('your browser does not support ajax');
				return;
			}
		var url = 'show_image.php?q='+str;
		//var url2 = 'edit.php?start='+str;
		//url=url+"q="+str;
		//url=url+"&id="+Math.random();

		url=url+"&sid="+Math.random();
		xmlHttp.onreadystatechange=stateChanged;
		xmlHttp.open("GET",url,true);
		//xmlHttp.open("POST",url2,true);
		xmlHttp.send(null);
		}