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.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;
   if (index>=1)
      {
      var site;
      site = document.searchforit.service.options[index].value;
      site+=searchitems;
      if (notEmpty(searchitems))   
         {
        
         window.open(site,"mainWin");
                }
      }
   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.searchforit.query.focus();  
      return false;
      }
   else 
      {
      self.status = "SEARCHING FOR:  " + word;
      return true;
      }

}


<!--
//to open popup of ticker headlines
function vkpopup(URL)
{
window.open(URL,"vkpopup","width=400,height=400,resizable=no,scrollBars=yes,menuBar=no,directories=no,toolBar=no,location=No,status=No,screenX=0,screenY=0,top=0,left=0")
}
//-->


function result1()
{
      newwin=window.open('http://208.36.205.149:8100/servlet/currency','gun','directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=no,maximise=no,width=375,height=200'); 

}
function result2()
{
      newwin=window.open('http://208.36.205.149:8100/schedularlogin.html','gunbutt',''); 

} 
//function on clicking the "SignUpHere" button shows the page "signupform.html"...onClick="showsignupform()" used..in the input tag of "SignUpHere" button...
function showsignupform()
{
     newwin=window.open('http://208.36.205.149:8100/schedularsignup.html','gunbutt',''); 

}
function result3()
{
      newwin=window.open('http://208.36.205.149:8100/City_City_Distance.htm','gun1','directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=no,maximise=no,width=395,height=240'); 

} 
function result4()
{
      newwin=window.open('http://208.36.205.149:8100/City_City_STD.htm','gun2','directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=no,maximise=no,width=320,height=390'); 

} 



