function conteudo(cod)
{
	window.open('link_geral.htm#'+ cod, '', "Height=400, Width=510, Top=10, Left=10, help=Yes, resizable=no, status=no, scrollbars=yes")
}
function fotoboard(quanti,fotoa,fotob,fotoc)
{
	window.open('fotoboard_fotos.php?quant=' + quanti + '&foto1=' + fotoa + '&foto2=' + fotob + '&foto3=' + fotoc, '', "Height=200, Width=280, Top=10, Left=10, help=Yes, resizable=no, status=no, scrollbars=yes")
}
function artigos()
{
	window.open('artigos.htm', '', "Height=400, Width=510, Top=10, Left=10, help=Yes, resizable=no, status=no, scrollbars=yes")
}
function receitas()
{
	window.open('receitas.htm', '', "Height=400, Width=510, Top=10, Left=10, help=Yes, resizable=no, status=no, scrollbars=yes")
}
function sorvetes()
{
	window.open('sorvetes.htm', '', "Height=400, Width=510, Top=10, Left=10, help=Yes, resizable=no, status=no, scrollbars=yes")
}
function design()
{
	window.open('popmark/design.htm', '', "Height=400, Width=620, Top=10, Left=10, help=Yes, resizable=no, status=no, scrollbars=yes")
}
function contato()
{
	window.open('contato.php', '', "Height=361, Width=430, Top=10, Left=10, help=Yes, resizable=no, status=no, scrollbars=no")
}
function cadastro()
{
	nurl = "cadastro.htm"
	pleft = (window.screen.availWidth - 700 )/ 2
    ptop= (window.screen.availheight - 501 )/ 2
	var post = "top="+ptop+",left="+pleft+",statusbar=no,menubar=no,width=700,height=501 , resizable=no,scrollbars=no"
	window.open( nurl,"_blank",post)	//,"status=no,toolbar=no,width=700,height=400,top=50,left=50")
}

function validar(Form1)
{

  if (Form1.rs.value.length < 1)
  {
    alert("Por favor, digitar Razão Social.");
    return (false);
  }
  
   if (Form1.nf.value.length < 1)
  {
    alert("Por favor, digitar Nome Fantasia.");
    return (false);
  }
  
  if (Form1.cnpj.value.length < 1)
  {
    alert("Por favor, digitar CNPJ.");
    return (false);
  }
  
  if (Form1.is.value.length < 1)
  {
    alert("Por favor, digitar Insc. Estadual.");
    return (false);
  }
  
  if (Form1.mercado.value.length < 1)
  {
    alert("Por favor, digitar A quanto tempo está no mercado.");
    return (false);
  }
  
   if (Form1.funcionarios.value.length < 1)
  {
    alert("Por favor, digitar quantos funcionários tem sua empresa.");
    return (false);
  }
  
   
   if (Form1.endereco.value.length < 1)
  {
    alert("Por favor, digitar Endereço.");
    return (false);
  }
  
   if (Form1.nro.value.length < 1)
  {
    alert("Por favor, digitar o Nro do endereço.");
    return (false);
  }
 
  if (Form1.bairro.value.length < 1)
  {
    alert("Por favor, digitar o Bairro.");
    return (false);
  }
  
  if (Form1.cidade.value.length < 1)
  {
    alert("Por favor, digitar a Cidade.");
    return (false);
  }
  
  if (Form1.cepp.value.length < 1)
  {
    alert("Por favor, digitar o CEP.");
    return (false);
  }
  
  if (Form1.ceps.value.length < 1)
  {
    alert("Por favor, digitar o CEP.");
    return (false);
  }
  
  if (Form1.fone.value.length < 1)
  {
    alert("Por favor, digitar o Fone.");
    return (false);
  }

   if ((Form1.emailremetente.value.indexOf ('@', 0) == -1)||(Form1.emailremetente.value.length < 5)) { 
    alert("Por favor, digitar E-mail ou conferir a digitação."); 
    return (false); 
  }
  
  if (Form1.nomeremetente.value.length < 1)
  {
    alert("Por favor, digitar Nome Completo.");
    return (false);
  }
  
  if (Form1.dd.value.length < 1)
  {
    alert("Por favor, digitar dia de nascimento.");
    return (false);
  }
  if (Form1.mm.value.length < 1)
  {
    alert("Por favor, digitar mes de nascimento.");
    return (false);
  }
  if (Form1.aaaa.value.length < 1)
  {
    alert("Por favor, digitar ano de nascimento.");
    return (false);
  }
  
  if (Form1.como.value.length < 1)
  {
    alert("Por favor, digitar Como conheceu a Confeitaria Virtual.");
    return (false);
  }
  
   if (Form1.porque.value.length < 1)
  {
    alert("Por favor, digitar Porque quer ser um membro....");
    return (false);
  }
  
     
  return (true);
}

