try{
    xmlhttp = new XMLHttpRequest();
}catch(ee){
    try{
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
        try{
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }catch(E){
            xmlhttp = false;
        }
    }
}

ajaxReturnFunction=false

function doRequest(url,f){
	url+=(url.replace(/\?/,"")==url?"?":"&")+Math.random()
	ajaxReturnFunction=f
	xmlhttp.open("GET",url,true)
	xmlhttp.onreadystatechange=function(){
		if(xmlhttp.readyState==4)
			ajaxReturnFunction(xmlhttp.responseText)
	}
	xmlhttp.send(null)
}

function loadXMLDocExec(url)
{
    req = null;
    // Procura por um objeto nativo (Mozilla/Safari)
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
        req.onreadystatechange = processReqChangeExec;
        req.open("GET", url, true);
        req.send(null);
    // Procura por uma versao ActiveX (IE)
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.onreadystatechange = processReqChangeExec;
            req.open("GET",url, true);
            req.send();
        }
    }
}


function processReqChangeExec()
{
    // apenas quando o estado for "completado"
    if (req.readyState == 4) {
        // apenas se o servidor retornar "OK"
        if (req.status == 200) {
            // procura pela div id="atualiza" e insere o conteudo
            // retornado nela, como texto HTML
//			alert(_div);
            eval(req.responseText);
        } else {
            alert("Houve um problema ao obter os dados:\n" + req.statusText);
        }
    }

}
/*function abreganhadores(){
	
	window.open('/site/ganhadores_1Etapa/hotsite','page','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=558,height=640'); 

}*/

function abreganhadores(){
	
	window.open('/site/ganhadores_2Etapa/hotsite','page','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=558,height=700'); 

}


function abreganhadores1(){
	
	window.open('/site/ganhadores_2Etapa/hotsite','page','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=558,height=700'); 

}

function abreganhadores2(){
	
	window.open('/site/ganhadores_4Etapa/hotsite','page','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=558,height=700'); 

}

function abreganhadores_final(){
	
	window.open('/site/ganhadores_final/hotsite','page','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=558,height=400'); 

}

function abre_texto(){
	//alert("hjg");
	window.open('/site/texto_etapa5/perfil','page','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=558,height=400'); 

}
