<!-- Hide the script from old browsers --
// Beginning of Ads Script
var imagenumber = 2 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;

// Images array for slot one
images = new Array;
images[1] = "ads/marklebank_ad.gif";
images[2] = "http://www.hotcakesinc.com/ad/hotcakesinc.gif";
var image = images[rand1];

links = new Array;
links[1] = "http://www.marklebank.com";
links[2] = "http://www.hotcakesinc.com";
var link = links[rand1];

// Images2 array for slot two
images2 = new Array
images2[1] = "ads/northwoodad.gif"
images2[2] = "ads/onlyinternet_ad.gif"
var image2 = images2[rand1]

links2 = new Array
links2[1] = "http://www.northwoodcomputer.com/"
links2[2] = "http://www.onlyinternet.net"
var link2 = links2[rand1]

// Images3 array for slot three
images3 = new Array
images3[1] = "ads/fpc_ad.gif"
images3[2] = "ads/gerberfurn_ad2.gif"
var image3 = images3[rand1]

links3 = new Array
links3[1] = "http://www.fpctech.com/"
links3[2] = "http://www.gerberfurniture.com/"
var link3 = links3[rand1]
// End ads

// Begin search
 function surfto(form) {
        var myindex=form.select1.selectedIndex
        if (form.select1.options[myindex].value != "0") {
         location=form.select1.options[myindex].value;}
}

 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;
}

//
//    Perform 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;
        var site;
        site = document.searchforit.service.options[index].value;
        site+=searchitems;
        if (notEmpty(searchitems))   {
        parent.location.href = site;
        }
}
//
//     Check for empty contents in search searchitems
//

function notEmpty(word)  {
        if (word == "" || word == null) {
                self.status="ENTER SEARCH searchitems";
                alert("Please enter keyword to search for before you select a search engine.");   
                return false;
        }
        else {
                self.status = "Searching for  " + word + "...";
                return true;
        }
}

// Make us your homepage button - check browser & version
function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v3.0
  var newURL='', verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr);
  if (app.indexOf('Netscape') != -1) {
    if (version >= NSvers) {if (NSpass>0) newURL=(NSpass==1)?URL:altURL;}
    else {if (NSnoPass>0) newURL=(NSnoPass==1)?URL:altURL;}
  } else if (app.indexOf('Microsoft') != -1) {
    if (version >= IEvers || verStr.indexOf(IEvers) != -1)
     {if (IEpass>0) newURL=(IEpass==1)?URL:altURL;}
    else {if (IEnoPass>0) newURL=(IEnoPass==1)?URL:altURL;}
  } else if (OBpass>0) newURL=(OBpass==1)?URL:altURL;
  if (newURL) { window.location=unescape(newURL); document.MM_returnValue=false; }
}
//-->

