/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 NÃO  MEXA EM NADA AS PAGINAS ONDE ESTÃO INCLUSÃO NÃO MEXA POIS VALIDAM FORMULÁRIOS E DEMAIS COISAS
 */
 
 /* FALE CONOSCO */
function Validar_Frm_Contato(Frm)
{
	if(document.Frm_Envia.Txt_Nome.value == "")
	{
		alert('Informe seu Nome');
		document.Frm_Envia.Txt_Nome.focus();
		return false;
	}
	
	var filter=/^.+@.+\..{2,3}$/
	if (!filter.test(document.Frm_Envia.Txt_Email.value))
	{
		alert('E-mailinvalido ou não informado');
		document.Frm_Envia.Txt_Email.focus();
		return false;
	}
	
	if(document.Frm_Envia.Txt_Comentario.value == "")
	{
		alert('Informe o Comentários');
		document.Frm_Envia.Txt_Comentario.focus();
		return false;
	}
}
/* FALE CONOSCO */

function abre_janela(nome, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
	LeftPosition = (screen.width) ? (screen.width-width)/2: 0;
	TopPosition = (screen.height) ? (screen.height-height)/4: 0;
	toolbar_str = toolbar ? 'yes' : 'no';
	menubar_str = menubar ? 'yes' : 'no';
	statusbar_str = statusbar ? 'yes' : 'no';
	scrollbar_str = scrollbar ? 'yes' : 'no';
	resizable_str = resizable ? 'yes' : 'no';
	window.open(url,nome,'left='+LeftPosition+',top='+TopPosition+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

/* FLOG COMENTÁRIOS */

function Valida_Flog_Comentarios(Frm)
{
	if(document.Frm_Cometario.Nome.value == "")
	{
		alert('Informe seu Nome');
		document.Frm_Cometario.Nome.focus();
		return false;
	}
	
	var filter=/^.+@.+\..{2,3}$/
	if (!filter.test(document.Frm_Cometario.Email.value))
	{
		alert('E-mailinvalido ou não informado');
		document.Frm_Cometario.Email.focus();
		return false;
	}
	
	if(document.Frm_Cometario.Comentarios.value == "")
	{
		alert('Informe o Comentários');
		document.Frm_Cometario.Comentarios.focus();
		return false;
	}

}

/* FLOG COMENTÁRIOS */
