function checkdata()
{

	with(document.form1)
	{

		if (document.form1.nome.value == "")
		{
	 	alert("Informar o nome");
	 	nome.focus();
	 	return false; 
		}

		if (document.form1.telefone.value == "")
		{
		 alert("Informar o telefone");
		 telefone.focus();
		 return false; 
		}

		var valido;
		var str = document.form1.email.value;
		var filter = (/^[A-Za-z0-9_\-\.]+@[A-Za-z0-9_\-\.]{2,}\.[A-Za-z0-9]{2,}(\.[A-Za-z0-9])?/);
				//^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	    if(filter.test(str))
    	  valido = true;
	    else{
		  alert("Este endereço de e-mail não é válido!");
		  email.focus();
		  valido = false;
		  return false;
		    }


		if (document.form1.assunto.value == "")
		{
		 alert("Informar o assunto");
		 assunto.focus();
		 return false; 
		}

  }
}









