
function verifica(theForm)
{ 
  if (theForm.sld.value == "")
  {
    alert("Por favor, o campo \"Domínio\" deve ser preenchido.");
    theForm.sld.focus();
    return (false);
  }

  if (theForm.sld.value.length < 2)
  {
    alert("Por favor, entre no mínimo 2 caracteres no campo \"Domínio\".");
    theForm.sld.focus();
    return (false);
  }

  if (theForm.sld.value.length > 26)
  {
    alert("Por favor, entre no mínimo 26 caracteres no campo \"Domínio\".");
    theForm.sld.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.";
  var checkStr = theForm.sld.value;
  var allValid = true;
  if  (theForm.cb[theForm.cb.selectedIndex].value=="nom.br") 
    {
      checkOK = checkOK + ".";  

     for (i = 0;  i < checkStr.length;  i++)
     {
      ch = checkStr.charAt(i);
      if  (ch==".")
        { 
          if (i==checkStr.length-1)
             allValid = false; 
          break;  
        }  
      if (i==checkStr.length-1) 
      allValid = false;    
     }  
     if (!allValid)
     {
      alert("O Domínio \" .NOM.BR \" exige que se digite um nome, um ponto \".\", e um segundo nome no campo \"Domínio\".");
      theForm.sld.focus();
      return (false);
     }
    }
  
  
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Por favor, entre somente letras e hífens \"-\" no campo \"Domínio\".");
    theForm.sld.focus();
    return (false);
  }
 return(true);
}

	 new ypSlideOutMenu("menu1", "down", 203, 190, 130, 250)
	 new ypSlideOutMenu("menu2", "down", 303, 190, 170, 120)
	 new ypSlideOutMenu("menu3", "down", 405, 190, 160, 350)
	 new ypSlideOutMenu("menu4", "down", 600, 190, 145, 220)
	 new ypSlideOutMenu("menu5", "down", 509, 190, 145, 220)

	var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
	function myFlash_DoFSCommand(command, args)                {
	  var myFlashObj = InternetExplorer ? myFlash : document.myFlash;
		  ypSlideOutMenu[command](args)
	} 
var plugin = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
if (navigator.plugins && navigator.plugins["Shockwave Flash"])
plugin = 1;
		}
function resetCriteria(){
		
	}
function ValidaBusca()
{ 
  if (document.frmBusca.texto.value == "")
  {
    alert("Por favor, digite um texto ou palavra.");
    document.frmBusca.texto.focus();
    return (false);
  }
}
function ValidaNews()
{ 
if(document.frmNews.email.value == '' || document.frmNews.email.value == null)
	 	{
	 	alert('O campo E-mail deve ser preenchido.');
		document.frmNews.email.focus();
		return false;
		}
		if (document.frmNews.email.value.indexOf ('@',0) == -1 ||
		document.frmNews.email.value.indexOf ('.',0) == -1) {
		alert ("\n Seu e-mail está sem \"@ ou incompleto!!!\" \n\n Por favor digite corretamente")
		document.frmNews.email.value.select();
		document.frmNews.email.focus();
		return false;
		}
}