/***************************************************************************
 *                  Project : Deploper system
 *                            -------------------
 *   Cap nhat           : 29/11/2007
 *   Nguoi tao 			: Nguyen Xuan Tung
 *   Nguoi sua cuoi     : Nguyen Xuan Tung
 *   Email              : prowebsitesolution@yahoo.com
 ***************************************************************************/
var xmlHttp;

function showWhoIs(domain, ext, option, sleep) { 
	if (sleep == 0) {
		var url= "http://www.vndt.vn/vndt/whois/topdog_whois.php?domain="+domain+"&ext="+ext+"&option="+option+"&sleep=0";
	}else {
		document.getElementById("contentArea").innerHTML= "<img src='http://vndt.vn/vndt/include/themes/standard/loading.gif'>";
		var url= "http://www.vndt.vn/vndt/whois/topdog_whois.php?domain="+domain+"&ext="+ext+"&option="+option+"&sleep=0";
	}
	
	
	xmlHttp = GetXmlHttpObject()
	if (xmlHttp==null) {
		 alert ("Browser does not support HTTP Request");
		 return;
	}
	
	xmlHttp.onreadystatechange = stateChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChanged() { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 
		document.getElementById("contentArea").innerHTML=xmlHttp.responseText 
	} 
}

function GetXmlHttpObject() {
	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;
}