var req;
function loadXMLDoc(url) 
{ 
    req = null; 
    //(Mozilla/Safari) 
    if (window.XMLHttpRequest) { 
        req = new XMLHttpRequest(); 
        req.onreadystatechange = processReqChange; 
        req.open("GET", url, true); 
        req.send(null); 
    //(IE) 
    } else if (window.ActiveXObject) { 
        req = new ActiveXObject("Microsoft.XMLHTTP"); 
        if (req) { 
            req.onreadystatechange = processReqChange; 

            req.open("GET", url, true); 
            req.send(); 
        } 
    } 
} 
function processReqChange() 
{ 
			document.getElementById('info').innerHTML = "<img src='w_imagens/carregando.gif' border='0' width='32' height='32' alt=''><br><font face='tahoma' size='2' color='#4051E3'><b>Pesquisando, aguarde...</b></font>";
    if (req.readyState == 4) { 
        if (req.status == 200) { 
            document.getElementById('info').innerHTML = unescape(req.responseText); 
        } else { 
            alert("Houve um problema ao obter os dados:\n" + req.statusText); 
        } 
    } 
} 
function enviar(dados) { 
    var url; 
    url = "./js_domin.asp?dominio="+dados 
    loadXMLDoc(url); 
}


//script para abrir janela de chamado
var webatende=0;//trava para impedir 2 vezes no popup
function WAsulpoa(was3){
webatende=was3;}
function WEBAtende(){
var Jh = (screen.width - 400) / 2;
var Jv = (screen.height - 455) / 2;
	if(webatende==0){
window.open("wa/janela.asp","sulpoa","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=455,top="+Jv+",left="+Jh);
	}else{
	alert("Já existe uma janela de Web Atende aberta.");}}