function validateMailing(formCheck){	
	// valida email
	if (formCheck.email.value =="" || formCheck.email.value.indexOf ('@', 1) == -1 || formCheck.email.value.indexOf ('.', 3) == -1)
    {
        alert("Please insert a valid email address."); 
        formCheck.email.focus();
        return false;
    }	
	return true
}

function validateCadastro(formCheck){	
	//valida nome
	if (formCheck.nome.value =="")
    {
        alert("Please check the Name field"); 	
        formCheck.nome.focus();
        return false;
    }
		
	// valida email
	if (formCheck.email.value =="" || formCheck.email.value.indexOf ('@', 1) == -1 || formCheck.email.value.indexOf ('.', 3) == -1)
    {
        alert("Please check the e-mail field"); 
        formCheck.email.focus();
        return false;
    }
	
	// valida cidade
	if (formCheck.comment.value =="")
    {
        alert("Please check the Comment field"); 	
        formCheck.comment.focus();
        return false;
    }
	
return true
}

