<!--
/* This is the engine part.
   ******************************************************
   ****** Customised for use ******
   *************** BY An Independant Developer ********************
   *************** © 1998-9-2006 ***************
   ******************************************************
*/
var msg="";
var quote="'";
var yes=false;
var found=0;
var bold="";
var boldN="";
var yesN=false;
var resultsN="";
function find ()
{

     var  newWindow=self /*window.open("","subWindow","toolbar,status,scrollbars") */ ;
     newWindow.focus();
     newWindow.status="Searching...";
     var search=document.forms[0].searchInput.value;
     if(search.length <=2) { alert("There is a minimum of 3 letters."); return;} 
     var searchFor=search.toUpperCase();
     for(i=0;i<searchInfo.length;i++) 
     {
        for(n=0;n<searchInfo[i].info.length;n++) 
        {
            var results=searchInfo[i].info.substring(n,n+search.length);
            if(results.toUpperCase()==searchFor) 
            {
                   yes=true;
                   bold=searchInfo[i].info.substring(0,n);
                   bold+="<b>";
                   bold+=searchInfo[i].info.substring(n,n+search.length);
                   bold+="</b>"
                   bold+=searchInfo[i].info.substring(n+search.length,searchInfo[i].info.length); 
            }
            var resultsN=searchInfo[i].name.substring(n,n+search.length); 
            if(resultsN.toUpperCase()==searchFor) 
            {
                boldN=searchInfo[i].name.substring(0,n);
                boldN+="<b>";
                boldN+=searchInfo[i].name.substring(n,n+search.length);
                boldN+="</b>";

                boldN+=searchInfo[i].name.substring(n+search.length,searchInfo[i].name.length);
                bold=searchInfo[i].info;
                yesN=true;
            }
        }
        if(yes==false && yesN==true) 
        { 
          found++;
          msg+='<tr><td><dd><ul type=disc><li><a href="'+searchInfo[i].link+'">'+boldN+'</a> '+'<br><br><i>'+'</i></tr></td>';
           yesN=false; 
        }
        if(yes==true) 
        { 
          found++;
          if(yesN==false) { boldN=searchInfo[i].name;} 
          msg+='<tr><td><dd><ul type=disc><li><a href="'+searchInfo[i].link+'">'+boldN+'</a> '+'<br><br><i>'+' </i></tr></td>';
          yes=false;
          yesN=false;
        }
     }
     var table="<table border=0 width=80%><tr><td bgcolor='#CCFFFF'><b>   <big>Generic Search:   </b> Found <b>"+found+" </b>sites for  <b>"+search+"</b>.</big></tr></td></table>"; 
 
     newWindow.document.write("<html><body background='/images/rosettestripe.gif' bgcolor='#ffffff' link='#FF0000' vlink='#800000' alink='##000099'><blockquote><blockquote><font face='trebuchet ms, arial, helvetica' color='#0066FF'><strong><big>GenericDirectories.com Local & Global</big></strong></font><br>"+table+"<br><table border=0 width=80%>"+msg+"</table></blockquote></blockquote>");
     newWindow.document.write("<br><blockquote><blockquote><big><a href='http://www.genericdirectories.com'>GenericDirectories.com</a></big><br><br><i><br>Gene Downs Aust 0412 622 944 Global +61 412 622 944</br><a a href='http://www.genedowns.com/'>Unique & Exclusive Generic Search, Email & Web Page Addresses & More</a></i></blockquote></blockquote>");
     newWindow.status="Search complete.";
     newWindow.document.close();
     yes=false;
     msg="";
     found=0;
/*     document.forms[0].searchInput.value=""; */
     results="";
     resultsN="";
     bold="";
     boldN="";
     yesN=false;
}
//-->



