function validation() {
    if (document.formcontato.nome.value.length < 2) {
	    window.alert("Por favor, digite seu nome!");
		return false;
	}   
	if (document.formcontato.email.value.length < 5) {
	    window.alert("Por favor, digite seu e-mail!");
		return false;
	}
	if (document.formcontato.email.value.indexOf('@', 0) == -1){
alert("O e-mail digitado é invalido!");

return (false);
}
	if (document.formcontato.assunto.value.length < 2) {
	    window.alert("Por favor, digite um assunto!");
		return false;
		}
	if (document.formcontato.mensagem.value.length < 2) {
	    window.alert("Por favor, digite uma mensagem!");
		return false;
		}	
	return true;
}
