// JavaScript Document
var http_request_hotweb;
function hotwebsearch(str)
{    
   if (window.ActiveXObject) {
                http_request_hotweb = new ActiveXObject("Microsoft.XMLHTTP");
        } else if (window.XMLHttpRequest) {
                http_request_hotweb = new XMLHttpRequest();
        }
 
      http_request_hotweb.onreadystatechange = callback_hotweb;
      http_request_hotweb.open('GET', 'HotWeb.php?cc='+str, true);
	  http_request_hotweb.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); //
      http_request_hotweb.setRequestHeader("Charset","utf8"); //
      http_request_hotweb.setRequestHeader("Connection", "close");
      http_request_hotweb.send(null);
}
function callback_hotweb() 
{
	if (http_request_hotweb.readyState == 4)
	{
		if (http_request_hotweb.status == 200)
		{
			document.getElementById("hotweb").innerHTML=http_request_hotweb.responseText;
        }
  
    }
	else if(http_request_hotweb.readyState == 1)
	{
		document.getElementById("hotweb").innerHTML='loading...';
	}
	else if(http_request_hotweb.readyState == 2||http_request_hotweb.readyState == 3)
	{
		document.getElementById("hotweb").innerHTML='loading...';
	}
}
