// JavaScript Document
function valida_contato(contato)
{
	with (contato) 
	{
		if (txt_Nome.value == ""){
			alert('Favor preencher o campo Nome!');
			txt_Nome.focus();
			return false;
								}
		if (txt_Email.value == "") {
			alert('Favor preencher o campo E-mail!');
			txt_Email.focus();
			return false;
		} else {
			var x = txt_Email.value;
			var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
			if (!filter.test(x)) {
				alert('Preencha corretamente o E-mail, por favor');
				txt_Email.focus();
				txt_Email.select();
				return false;
								}
			}
		
	}
	loader_show();
	return true;
}



