function Abre(url, width, height, rola)
	{						
	if (rola==""){rola="yes"}
	window.open(url,"_blank","resizable=no,toolbar=no,status=no,top=" + (window.screen.height - height)/2 + ",left=" + (window.screen.width - width)/2 + ",menubar=no,scrollbars=" + rola + ",width=" + width + ",height=" + height);
	}
//mostra a data e hora
function infData()
	{
	mydate = new Date();
	myday = mydate.getDay();
	mymonth = mydate.getMonth();
	myweekday= mydate.getDate();
	weekday= myweekday;
	myyear= mydate.getYear();
	year = myyear;
	myHour = mydate.getHours();
	hora = myHour	
	myMinutes = mydate.getMinutes();
	minutos = myMinutes
	mySeconds = mydate.getSeconds();
	segundos = mySeconds

	if(myday == 0){day = " Domingo, "} 
	else if(myday == 1){day = " Segunda-Feira, "}
	else if(myday == 2){day = " Terça-Feira, "} 
	else if(myday == 3){day = " Quarta-Feira, "} 
	else if(myday == 4){day = " Quinta-Feira, "}
	else if(myday == 5){day = " Sexta-Feira, "}
	else if(myday == 6){day = " Sábado, "}

	if(mymonth == 0){month = "Janeiro "}
	else if(mymonth ==1){month = "Fevereiro "}
	else if(mymonth ==2){month = "Março "}
	else if(mymonth ==3){month = "Abril "}
	else if(mymonth ==4){month = "Maio "}
	else if(mymonth ==5){month = "Junho "}
	else if(mymonth ==6){month = "Julho "}
	else if(mymonth ==7){month = "Agosto "}
	else if(mymonth ==8){month = "Setembro "}
	else if(mymonth ==9){month = "Outubro "}
	else if(mymonth ==10){month = "Novembro "}
	else if(mymonth ==11){month = "Dezembro "}


	
	document.write(""+ day);
		if ((navigator.userAgent.indexOf("MSIE")==-1) || navigator.appVersion.substring(0,1) < 4) 
			{
			document.write(myweekday+" de "+month+ "de "+ myyear);
			}
		else 
			{
			document.write(myweekday+" de "+month+ " de " +myyear);
			}
	
	}
	var xmlhttp
	function loadXMLDoc(url, idWrite, tRequest)
	{
		if(tRequest!="GET" || tRequest!="POST")
			tRequest = "GET";
		element	=  document.getElementById(idWrite);
		element.innerHTML  = "<div style='color:#FF0000;' align='center'>Carregando...</div>";   
	// code for Mozilla, etc.
	if (window.XMLHttpRequest)
	  {
	  xmlhttp=new XMLHttpRequest()
	  xmlhttp.onreadystatechange=function(){
		if (xmlhttp.readyState==4)
		{
				// if OK
				if (xmlhttp.status==200)
				{
				  element.innerHTML=xmlhttp.responseText
				}
				else
				{
					alert("Problem Ao Tentar Abrir Arquivo:" + xmlhttp.statusText)
				}
		  }
	  }
	  xmlhttp.open(tRequest,url,true)
	  xmlhttp.send(null)
	  }
	// code for IE
	else if (window.ActiveXObject)
	  {
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
		if (xmlhttp)
		{
		xmlhttp.onreadystatechange=function(){
		if (xmlhttp.readyState==4)
		{
				// if OK
				if (xmlhttp.status==200)
				{
				  element.innerHTML=xmlhttp.responseText
				}
				else
				{
					alert("Problem Ao Tentar Abrir Arquivo:" + xmlhttp.statusText)
				}
		  }
	  }
		xmlhttp.open(tRequest,url,true)
		if(tRequest=="POST")
			xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		xmlhttp.send()
		}
	  }
	}
	function mudaImagem(imagem, div){
		immggg = document.getElementById(div);
		immggg.style.display = 'block'
		immggg.src = imagem;
		
	}
		function confirmar(){
		var submit
		submit=confirm("Você Confirma a Ação Selecionada?");

		if (submit==false){
		return false;
		}

		else{
		 return true;
		 }
	}

