



var xmlHttp_twobb=ajaxbb();

function showHinttwobb(str)
{
	
	
	//alert('test');
if (str.length==0)
  { 
  document.getElementById("txtHintmobiletwo").innerHTML="";
  return;
  }
xmlHttp_twobb=ajaxbb();
if (xmlHttp_twobb==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="http://www.see.com.pk/gethintimgb.php";

url=url+"?qtwobb="+str;
url=url+"&sidtwo="+Math.random();
xmlHttp_twobb.onreadystatechange=stateChangedtwobb;
xmlHttp_twobb.open("GET",url,true);
xmlHttp_twobb.send(null);

} 

function stateChangedtwobb() 
{ 
if (xmlHttp_twobb.readyState==4)
{ 
    if (xmlHttp_twobb.status==200) {
            // we use a delay only for this example
			
            setTimeout('loadResultstwobb()',100);
			
        }
//document.getElementById("txtHinttwo").innerHTML=xmlHttp_two.responseText;
}
}

function ajaxbb()
{
var xmlHttp_twobb=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp_twobb=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp_twobb=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp_twobb=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp_twobb;
} 
 
  function loadResultstwobb() {
	  document.getElementById("txtHintmobiletwo").innerHTML=xmlHttp_twobb.responseText;
	 document.getElementById('txtHintmobiletwo').innerHTML = '<img id="submitImage" name="submitImage" src="http://www.see.com.pk/images/ajax-loader.gif" alt="AJAX Results Ready">';
	 
	 setTimeout('resetImagetwobb()',2000);
    
}


function resetImagetwobb() {
	document.getElementById("txtHintmobiletwo").innerHTML=xmlHttp_twobb.responseText;
   
}