function modelo(cod,cat)
{
	window.open('modelo.php?cod=' + cod + '&cat=' + cat, '', "Height=400px, Width= 340px, Top= 25px, Left= 25px, help= Yes, resizable= no, status= no, scrollbars=yes")
}
function consulta(cod)
{
	window.open('consulta.php?cod=' + cod, '', "Height=310px, Width= 290px, Top= 25px, Left= 25px, help= Yes, resizable= no, status= no, scrollbars=no")
}
function detalhe(cod)
{
	window.open('detalhe.php?cod=' + cod, '', "Height=500px, Width= 570px, Top= 25px, Left= 25px, help= Yes, resizable= no, status= no, scrollbars=yes")
}
function detalheEmp(cod)
{
	window.open('detalheEmp.php?cod=' + cod, '', "Height=500px, Width= 570px, Top= 25px, Left= 25px, help= Yes, resizable= no, status= no, scrollbars=yes")
}
function precp()
{
	window.open('e_i_pre_cp.htm', '', "Height=500px, Width= 500px, Top= 25px, Left= 25px, help= Yes, resizable= no, status= no, scrollbars=yes")
}
function indique()
{
	window.open('indique.htm', '', "Height=150, Width=350, Top=10, Left=10, help=Yes, resizable=no, status=no")
}
function cadastrese()
{
	window.open('cadastrese.htm', '', "Height=110, Width=350, Top=10, Left=10, help=Yes, resizable=no, status=no")
}
function registered()
{
	window.open('registered.htm', '', "Height=110, Width=350, Top=10, Left=10, help=Yes, resizable=no, status=no")
}
function registrese()
{
	window.open('registrese.htm', '', "Height=110, Width=350, Top=10, Left=10, help=Yes, resizable=no, status=no")
}
function janela_fotos()
{
	window.open('fotos/fotos.php?min=0', '', "Height=350px, Width= 650px, Top= 25px, Left= 25px, help= Yes, resizable= no, status= no")
}


function validar(Consulta)
{ 
  	if (Consulta.nomeremetente.value.length < 1){alert("Por favor, digitar Nome.");Consulta.nomeremetente.focus();return (false);}
  	if ((Consulta.emailremetente.value.indexOf ('@', 0) == -1)||(Consulta.emailremetente.value.length < 5)) {alert("Por favor, digitar seu E-mail ou conferir a digitação.");Consulta.emailremetente.focus();return (false);}
	if (Consulta.telefone.value.length < 1){alert("Por favor, digitar Fone.");Consulta.telefone.focus();return (false);}
	if (Consulta.comentarios.value.length < 1){alert("Por favor, digitar Comentarios.");Consulta.comentarios.focus();return (false);}

    return (true);
}
function valida(Pesquisa)
{ 
  	if (Pesquisa.tipocom.value == 0){alert("Por favor, Selecionar Venda ou Aluguel");Pesquisa.tipocom.focus();return (false);}
    return (true);
}



