function fnOpenModal(pg){
  window.showModalDialog(pg,'','dialogWidth:327px;dialogHeight:400px');
}
function indique(p){
	window.open('indique.asp?p='+p,'indique','top=100,left=200,width=370px,height=250px');	
}
function abreinfo(info){
	window.open('informativos\\' + info,'info','top=50,left=50,width=650,height=600');	
}
function valida_info(){
	if (document.frmcad.txtnome.value==''){
		alert('Informe seu nome');
		document.frmcad.txtnome.focus();
		return false;
	}
	if (document.frmcad.txtmail.value==''){
		alert('Informe seu e-Mail');
		document.frmcad.txtmail.focus();
		return false;
	}
}
function validacontato(){
	if (document.frmcontato.txtnome.value==''){
		alert('Informe seu nome.');
		document.frmcontato.txtnome.focus();
		return false;
	}
	if (document.frmcontato.txtmail.value==''){
		alert('Informe seu email.');
		document.frmcontato.txtmail.focus();
		return false;
	}
	if (document.frmcontato.txtddd.value==''){
		alert('Informe seu ddd.');
		document.frmcontato.txtddd.focus();
		return false;
	}
	if (document.frmcontato.txttel.value==''){
		alert('Informe seu telefone.');
		document.frmcontato.txttel.focus();
		return false;
	}
	if (document.frmcontato.txtmsg.value==''){
		alert('Digite sua mensagem.');
		document.frmcontato.txtmsg.focus();
		return false;
	}
	
}
function validapedido(){
	if (document.frmpedidos.txtnome.value==''){
		alert('Informe seu nome.');
		document.frmpedidos.txtnome.focus();
		return false;
	}
	if (document.frmpedidos.txtmail.value==''){
		alert('Informe seu email.');
		document.frmpedidos.txtmail.focus();
		return false;
	}
	if (document.frmpedidos.txtddd.value==''){
		alert('Informe seu ddd.');
		document.frmpedidos.txtddd.focus();
		return false;
	}
	if (document.frmpedidos.txttel.value==''){
		alert('Informe seu telefone.');
		document.frmpedidos.txttel.focus();
		return false;
	}
	if (document.frmpedidos.txtmsg.value==''){
		alert('Digite sua mensagem.');
		document.frmpedidos.txtmsg.focus();
		return false;
	}
}