//JS SCRIPT
try{
    xmlhttp = new XMLHttpRequest();
}catch(ee){
    try{
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
        try{
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }catch(E){
            xmlhttp = false;
        }
    }
}

ajaxocupado = function() {
    estadoAtual = this.xmlhttp.readyState;
    return (estadoAtual && (estadoAtual < 4));
}

function domWhois(div,dominio){
	
	//Abre a url
    xmlhttp.open("GET", "ajax_whois.php?dominio="+dominio,true);
	div = document.getElementById(div);
	div.innerHTML='<br><br><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="22"><img src="imagens/load.gif" /></td><td>Por favor aguarde...</td></tr></table>';
	xmlhttp.onreadystatechange=function() {
    	if (xmlhttp.readyState==4){
			div.innerHTML=xmlhttp.responseText;
    	}
	}
	xmlhttp.send(null)

}
