// JavaScript Document
function createXmlHttpRequestObject(){ //΄΄½¨ XML Http Request ΆΤΟσ
  var xmlHttp = "";
		 try{
			xmlHttp = new XMLHttpRequest();
			  if(xmlHttp.overrideMimeType)
			  		xmlHttp.overrideMimeType("text/xml");
		 }
		 catch(e){
			 var xmlHttpVersions = new Array("MSXML2.XMLHTTP.6.0",
											  "MSXML2.XMLHTTP.5.0",
											  "MSXML2.XMLHTTP.4.0",
											  "MSXML2.XMLHTTP.3.0",
											  "MSXML2.XMLHTTP",
											  "Microsoft.XMLHTTP");
			 for(var i=0;i<xmlHttpVersions.length && !xmlHttp; i++){
				 try{
					 xmlHttp = new ActiveXObject(xmlHttpVersions[i]);
				 }
				 catch (e) {}
			 }
		 } 
		 return xmlHttp;
}
function hotwebsearch(str)
{     
	  
 var http_request_hotweb = createXmlHttpRequestObject(); 
	  http_request_hotweb.open('GET', 'HotWeb.php?cc='+str, true);
	  http_request_hotweb.setRequestHeader("Content-Type","text/xml;charset=utf-8;");
      http_request_hotweb.onreadystatechange = callback_hotweb;  
      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;
			}
	  
		} 
     }
}


