if (navigator.appName == 'Netscape')
{

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;
   }

//    Do the Search
function doSearch()
   {
   var words;
   words = document.forms[1].elements[1].value;
   var searchitems;
   searchitems=addplus(words);
   var index;
   //  Obtain the selectedIndex properties from the search engines options for
   index = document.forms[1].elements[0].selectedIndex;
   if (index>=0)
      {
      var site;
      site = document.forms[1].elements[0].options[index].value;
      site+=searchitems;
      if (notEmpty(searchitems))
         {
         //window.open("","mainWin");
         //window.open(site,"mainWin");
         window.location=site;
         }
      }
   else
      {alert("\nYou must select a search engine.");}
   }

//     Check for empty contents in search searchitems
function notEmpty(word)
   {
   if (word == "" || word == null)
      {
      self.status="ENTER SEARCH searchitems";
      alert("\nYou must enter a keyword to search for.");
      document.forms[1].elements[1].focus();
      return false;
      }
   else
      {
      self.status = "SEARCHING FOR:  " + word;
      return true;
      }
   }

function howTo()
   {
   alert("\nWelcome to newi's JavaScript Search Engine\n\nSimply choose a search engine from the drop-down menu, enter the keyword to search for, and click on SEARCH.\n\nSeperate multiple keywords with \'and\'.");
   }

function clearIt()
   {
   document.forms[1].elements[1].value="";
   document.forms[1].elements[1].focus();
   }

}
else
{

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;
   }

//    Do the Search
function doSearch()
   {
   var words;
   words = document.forms[1].elements[1].value;
   var searchitems;
   searchitems=addplus(words);
   var index;
   //  Obtain the selectedIndex properties from the search engines options for
   index = document.forms[1].elements[0].selectedIndex;
   if (index>=0)
      {
      var site;
      site = document.forms[1].elements[0].options[index].value;
      site+=searchitems;
      if (notEmpty(searchitems))
         {
         //window.open("","mainWin");
         //window.open(site,"mainWin");
         window.location=site;
         }
      }
   else
      {alert("\nYou must select a search engine.");}
   }

//     Check for empty contents in search searchitems
function notEmpty(word)
   {
   if (word == "" || word == null)
      {
      self.status="ENTER SEARCH searchitems";
      alert("\nYou must enter a keyword to search for.");
      document.forms[1].elements[1].focus();
      return false;
      }
   else
      {
      self.status = "SEARCHING FOR:  " + word;
      return true;
      }
   }

function howTo()
   {
   alert("\nWelcome to newi's JavaScript Search Engine\n\nSimply choose a search engine from the drop-down menu, enter the keyword to search for, and click on SEARCH.\n\nSeperate multiple keywords with \'and\'.");
   }

function clearIt()
   {
   document.forms[1].elements[1].value="";
   document.forms[1].elements[1].focus();
   }


}