ajax = function() {
	try {
		xmlhttp = new XMLHttpRequest();
	}catch(e){
		try{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(er){
			try{
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(err){
				xmlhttp = false;
			}
		}
	}
}

carregar = function(Url, divRetorno){
	divInsereResposta = document.getElementById(divRetorno);
	divInsereResposta.innerHTML = '<div id="carregando">Carregando ...</div>';
	ajax();
	xmlhttp.abort();
	xmlhttp.open("GET", Url, true);
	xmlhttp.onreadystatechange = function(){
		if(xmlhttp.readyState == 4){
			var valorRetorno = xmlhttp.responseText;
			divInsereResposta.innerHTML = valorRetorno;
		}
	}
	xmlhttp.send(null);
}

abrirJanela = function (URL,Janela,Config) {
  window.open(URL,Janela,Config);
}

function signos(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


