var cursor;
function ajaxFunction(file,ind)
  {  var xmlHttp;
  
  try
    {    // Firefox, Opera 8.0+, Safari   
	xmlHttp=new XMLHttpRequest();    }
  catch (e)
    {    // Internet Explorer  
	try
      {      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");      }
    catch (e)
      {      try
        {        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");        }
      catch (e)
        {        alert("Your browser does not support AJAX!");        return false;        }      }    }
    xmlHttp.onreadystatechange=function()
      {
	  if(xmlHttp.readyState==0)
	  ind.value="0";
	  if(xmlHttp.readyState==1)
	  ind.value="1";
	  if(xmlHttp.readyState==2)
	  ind.value="2";
	  if(xmlHttp.readyState==3)
	  ind.value="3";
      if(xmlHttp.readyState==4)
        {
		ind.value="4";
		
		return xmlHttp.responseText;
        }
      }
    xmlHttp.open("GET",file,true);
    xmlHttp.send(null);  


	}
	
	function sqlRequest(file)
	{
	 
	 if (cursor==undefined)
	 
	   try
    {    // Firefox, Opera 8.0+, Safari   
	cursor=new XMLHttpRequest();    }
  catch (e)
    {    // Internet Explorer  
	try
      {      cursor=new ActiveXObject("Msxml2.XMLHTTP");      }
    catch (e)
      {      try
        {        cursor=new ActiveXObject("Microsoft.XMLHTTP");        }
      catch (e)
        {        alert("Your browser does not support AJAX!");        return false;        }      }    }
		
		
		cursor.open("GET", file, false);
		cursor.send(null);
		
		return cursor.responseText;
	}
	
	
