// JavaScript Document

function checkdata() {
	with(document.form1) {	
	        if (nome.value == "") {
			alert("Informe o Nome!");
			nome.focus();
			return false; }
		 if (email.value == "") {
			alert("Informe o E-mail!");
			email.focus();
			return false; 
		}
     submit();
	}
}	

function validaForm() {
	with(document.form1) {	
	        if (nome.value == "") {
			alert("Informe o Nome!");
			nome.focus();
			return false; }
		 if (email.value == "") {
			alert("Informe o E-mail!");
			email.focus();
			return false; 
		}

		if (assunto.value == "") {
			alert("Informe o Assunto da Mensagem!");
			assunto.focus();
			return false;
		}

		if (to.value == "-- Selecione --") {
			alert("Informe o Endereço!");
			to.focus();
			return false; 
		}

		if (mensagem.value == "") {
			alert("Digite sua Mensagem!");
			mensagem.focus();
			return false; 
		}
	}
}
