function validadados()
{
  if ((document.signup.field1.value=="") || (document.signup.field1.value.length==0))
  {
     alert ("Favor digitar seu NOME corretamente.")
	 document.signup.field1.focus()
     return false	
  } 
	if ((document.signup.email.value=="") || (document.signup.email.value.length==0))
  {
     alert ("Favor digitar seu E-MAIL corretamente.")
	 document.signup.email.focus()
     return false	
  }  
  if (document.signup.email.value=="" || document.signup.email.value.indexOf ('@')==-1 || document.signup.email.value.indexOf ('.')==-1 )
  {
  alert("E-mail incorreto.");
  document.signup.email.focus();
  return false;
  }

  return true
}

function capam(){
					window.open('capa.php?number=01','Capa','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=653,height=450');
					}
function capak(){
					window.open('capa.php?number=02','Capa','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=653,height=450');
					}
function cor(obj,act){
		if (act=="over"){if(!(obj.contains(event.fromElement))){obj.bgColor="#DDEBFB"}}else{if(!(obj.contains(event.toElement))){obj.bgColor="#FFFFFF"}}
	}				
function buscac() {
if (document.buscarc.chave.value == '') {
     alert ("Para fazer a busca, digite uma palavra-chave.")
	 	   document.buscarc.chave.focus();
return false;
}
}
function buscav() {
if (document.buscarv.chave.value == '') {
     alert ("Para fazer a busca, digite uma palavra-chave.")
	 	   document.buscarv.chave.focus();
return false;
}
}
function PopUp(id){
        var WinSizeHor = 650; 
        var WinSizeVert = 520; 
		var nomePag = "enquete/index.php?number="+id
        posHoriz = parseInt((screen.availWidth / 2) - parseInt(WinSizeHor / 2))
        posVert = parseInt((screen.availHeight / 2) - parseInt(WinSizeVert / 2))
        eval("win = window.open('" + nomePag + "', 'Image' ,config='height=" + WinSizeVert + ",width=" + WinSizeHor + ",scrollbars=no,statusbar=no,left=" + posHoriz + ",top=" + posVert + "')");
        win.focus();
    }
function PopUp2(id){
        var WinSizeHor = 650; 
        var WinSizeVert = 520; 
		var nomePag = "enquete/index2.php?number="+id
        posHoriz = parseInt((screen.availWidth / 2) - parseInt(WinSizeHor / 2))
        posVert = parseInt((screen.availHeight / 2) - parseInt(WinSizeVert / 2))
        eval("win = window.open('" + nomePag + "', 'Image' ,config='height=" + WinSizeVert + ",width=" + WinSizeHor + ",scrollbars=no,statusbar=no,left=" + posHoriz + ",top=" + posVert + "')");
        win.focus();
    }