function mOvr(src,clrOver)
{
   if (!src.contains(event.fromElement))
   {
      src.bgColor = clrOver;
   }
}

function mOut(src,clrIn)
{
   if (!src.contains(event.toElement))
   {
      src.bgColor = clrIn;
   }
}

function mClk(src)
{
   if(event.srcElement.tagName=='TD')
   {
      src.children.tags('A')[0].click();
   }
}

function addplus(items)
{
   var plussed = "";
   for (var t = 1 ; t <= items.length ; t++)
   {
      if (items.substring(t-1,t) == " ")
      {
         plussed+="+";
      }
      else
      {
         plussed+=items.substring(t-1,t);
      }
   }
   return plussed;
}

function doSearch()
{
   var words;
   words = document.searchforit.query.value;
   var searchitems;
   searchitems=addplus(words);
   var index;
   //
   // Obtain the selectedIndex properties from the search engines options for 
   //    
   index = document.searchforit.service.selectedIndex;
   var site;
   site = document.searchforit.service.options[index].value;
   if (site=='separa')
   {
      return true
   }
   site+=searchitems;
   if (notEmpty(searchitems))
   {
      window.open("","_top");
      window.open(site,"_top");
   }
   return true
}

function notEmpty(word)
{
   if (word == "" || word == null)
   {
      self.status="Entre com a(s) palavra(s) chave para pesquisa";
      alert("Você precisa preencher o campo com as palavras chaves para iniciar uma pesquisa !");
      return false;
   }
   else
   {
      self.status = "Aguarde ... pesquisando sobre:  " + word;
      return true;
   }
}

function janela(nome)
{
   javascript:window.open(nome,'Foto','toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=auto,resizable=no,menubar=no,width=231,height=394');
}

function openNewsWindow2(url)
{
   popupWin2 = window.open(url,'Janela','width=407,height=354,status=0,scrollbars=0,resizable=0,toolbar=0,location=0,titlebar=0')
}