function ir(){
	form.submit();
}

function votar( url , titulo , totalX , totalY ){
	var posX = ( window.screen.width  - totalX ) / 2;
	var posY = ( window.screen.height - totalY ) / 2;
	var opc  = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0";
	var janela = window.open( url , titulo , opc );
	janela.resizeTo( totalX , totalY );
	janela.moveTo( posX , posY );
	janela.focus();
}

function ver(i){
	var tipo = document.getElementById("tipo");
	tipo.value = i;
}

function email(obj){
	re=/^[A-Za-z0-9_.-]+@([A-Za-z0-9_.-]+\.)+[A-Za-z]{2,4}$/i;
	if(!re.test(obj.value)){
		alert('O e-mail informado parece não estar correto.');
		return false;
	}
}

function checa_news(e){
	if(e.nome.value == ""){
			alert("Informe o nome para cadastro na newsletter") ;
			e.nome.focus();
			return  false;
	}
	if(e.email.value == ""){
			alert("Informe o e-mail para cadastro na newsletter") ;
			e.email.focus();
			return  false;			
	}
	else if(email(e.email)==false) 
	{
			e.email.select();
			return  false;			
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function popup(){
window.open('popup.php','popup','width=500,height=652,scrolling=no,top=0,left=0')
}

function popupTamanho( url , titulo , totalX , totalY ){
	var posX = ( window.screen.width  - totalX ) / 2;
	var posY = ( window.screen.height - totalY ) / 2;
	var opc  = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0";
	var janela = window.open( url , titulo , opc );
	janela.resizeTo( totalX , totalY );
	janela.moveTo( posX , posY );
	janela.focus();
}
