title = new Object();
desc = new Object();
links= new Object();
matched= new Object();
keywords= new Object();
found= new Object();
var temp=0;
// actual location or the item to be searched
// description of he location
// actual link
// percentage match found
// keywords as parsed from the input
// # of titles present in the database
title[0]=15
//no of keywords after parsing
keywords[0]=0
//no of  matches found.
found[0]=0

<!-- Begin List of Searchable Items -->

<!--put the list of the links and descriptions here!!-->


title[1]="introduction about hilton pharma ltd. company profile objective"
desc[1]="Company Profile Hilton Pharma Ltd."
links[1]="http://www.hiltonpharma.com/new/index.html"
matched[1]=0

title[2]="Hilton Pharma Ltd. affiliations partners pharmaceutical company"
desc[2]="Global Affiliation of Hilton Pharma Ltd. "
links[2]="http://www.hiltonpharma.com/new/globalaffiliation.html"
matched[2]=0

title[3]="Hilton Pharma Ltd. quality policy system medicines "
desc[3]="Quality Policy Of Hilton Pharma Ltd."
links[3]="http://www.hiltonpharma.com/new/quality.html"
matched[3]=0

title[4]="Hilton Pharma Ltd. environment management system policy equipment"
desc[4]="Hilton Pharma Environmental Policy"
links[4]="http://www.hiltonpharma.com/new/envoirmentalpolicy.html"
matched[4]=0


title[5]="Hilton Pharma Ltd. recognition award certificate"
desc[5]="Hilton Pharma Recognitions & Certificates"
links[5]="http://www.hiltonpharma.com/new/certificates.html"
matched[5]=0

title[6]="Hilton Pharma Ltd. international marketing manufacturers market products countries"
desc[6]="International Marketing of Hilton Pharma Ltd."
links[6]="http://www.hiltonpharma.com/new/countries.html"
matched[6]=0



title[7]="Hilton Pharma Ltd. production faciltity factory products manufacturing"
desc[7]="Production Facilities at Hilton Pharma Ltd."
links[7]="http://www.hiltonpharma.com/new/production.html"
matched[7]=0


title[8]="Hilton Pharma Ltd. distribution network distributors locations products market"
desc[8]="Distribution Network of Hilton Pharma Ltd."
links[8]="http://www.hiltonpharma.com/new/distribution.html"
matched[8]=0


title[9]="Hilton Pharma Ltd. public health diseases cure information treatment"
desc[9]="Public Health Education, Asthma"
links[9]="http://www.hiltonpharma.com/new/publichealth.html"
matched[9]=0


title[10]="Hilton Pharma Ltd. public health diseases cure information treatment"
desc[10]="Public Health Education, Epilepsy "
links[10]="http://www.hiltonpharma.com/new/pub_epilesy.html"
matched[10]=0

title[11]="Hilton Pharma Ltd. public health diseases cure information treatment"
desc[11]="Public Health care, Types of arthritis "
links[11]="http://www.hiltonpharma.com/new/pub_epilesy.html"
matched[11]=0

title[12]="Hilton Pharma Ltd. public health diseases cure information treatment"
desc[12]="Public Health Education, Epilepsy "
links[12]="http://www.hiltonpharma.com/new/pub_epilesy.html"
matched[12]=0

title[13]="Hilton Pharma Ltd. public health diseases cure information treatment"
desc[13]="Public Health Education, Epilepsy "
links[13]="http://www.hiltonpharma.com/new/pub_epilesy.html"
matched[13]=0

title[14]="Hilton Pharma Ltd. public health diseases cure information treatment"
desc[14]="Public Health Education, Epilepsy "
links[14]="http://www.hiltonpharma.com/new/pub_epilesy.html"
matched[14]=0

title[15]="Hilton Pharma Ltd. public health diseases cure information treatment"
desc[15]="Public Health Education, Epilepsy "
links[15]="http://www.hiltonpharma.com/new/pub_epilesy.html"
matched[15]=0
<!-- End list of Searchable items -->

function search1()
{
var skeyword=document.searchengine.keywords.value.toLowerCase();
var check=1;
var pos=0;
var i=0;
var j=0;
var  itemp=0;
var config='';

while (true)
	{
	if (skeyword.indexOf("+") == -1 )
		{
		keywords[check]=skeyword;
		break;
		}
	pos=skeyword.indexOf("+");
	if (skeyword !="+")	
	{
	keywords[check]=skeyword.substring(0,pos);
	check++;
	}
	else
	{
	check--;
	break;
	}
	skeyword=skeyword.substring(pos+1, skeyword.length);	
	if (skeyword.length ==0)
		{
		check--;
		break;
		}
			 
	}
// the keywords have been put in keywords object.
keywords[0]=check;

// matching and storing the matches in matched
for ( i=1; i<=keywords[0];i++)
	{
	for (j=1;j<=title[0];j++)
		{
		if (title[j].toLowerCase().indexOf(keywords[i]) > -1 )
			{
			  matched[j]++;
			}
		}	
	}
// putting all the indexes of the matched records  in found

for (i=1;i<=title[0];i++)
{
	if (matched[i] > 0 )
		{
		  found[0]++;
		// increment the found 	
		  found[found[0]]=i;
			
		}	
}



for (i=1;i<=found[0]-1;i++)
	{
	for(j=i+1;j<=found[0];j++)
		{
		if ( matched[found[i]]< matched[found[j]] )
			{
			temp= found[j];
			found[j]=found[i];
			found[i]=temp;
			}
		}
	}

// end of sort


output = self;
output.document.write('<html>');
output.document.write('<head>');
output.document.write('<script>');
output.document.write('window.onerror=new Function("return true")');
output.document.write('<\/script>');
output.document.write('<title> Search Results </title>');
output.document.write('<'+'link rel="stylesheet" type="text/css" href="css/style.css" />');
//output.document.write('<script src="css/MenuBar.js" type="text/javascript" >');
//output.document.write('<\/script>');
output.document.write('<script>');
output.document.write('window.onerror=new Function("return true")');
output.document.write('<\/script>');
output.document.write('</head>');
output.document.write('<body>');

document.write("<div id='header'></div>");

//document.write("<div id='menu'></div>");
//document.write("<div id='search'></div>");

output.document.write("<table style=border:0px; width: 100%; align=center id=java>");
output.document.write("<tr><td valign=top>");
output.document.write('<h2> Search Results </h2>');
output.document.write('<p> The Keyword(s) you searched :: </p>'.big() )
for (i=1;  i<=keywords[0]; i++)
	{
	output.document.write( keywords[i].bold() +"   ");
	}
output.document.write('<br>');

if (found[0]==0)
	{
	output.document.write("<tr><td valign=top>");

	//alert(found[0]);
	output.document.write("<p>No matches resulted in this search</p>  <br>");
	output.document.write("<p>You may close the results and reduce the length/number  of the keywords</p>  <br>");
	
	}
	else
	{
	// data has been found
	output.document.write("  <p> The Results of the search are  : </p>  ");
	output.document.write( found[0] +"  Entries found  ".italics());
	output.document.write("<table style=border:0px; width: 80%; align=center>");
	for (i=1; i<=found[0];i++)
		{
		output.document.write("<tr><td valign=top>");
		output.document.write("<h3>" +i +"</h3>");
		output.document.write("<td valign=top>");
		itemp=found[i];
		output.document.write(desc[itemp].bold() +"<br>" +
		links[itemp].link(links[itemp])+"<br>");
		temp= (matched[itemp]/keywords[0])*100
		output.document.write("<p><i> Matched  with keywords  :: " +temp+" %  </i></p>" );
		matched[itemp]=0
		}
	found[0]=0;
	output.document.write("</table>");
	}
//output.document.write ('This search was created by   &copy <a href="http:\\dutta.home.ml.org"> Satadip Dutta</a>    1997');
//output.document.write ("<hr>");
//output.document.write ("<form><center>");
output.document.write("<center><h2><a href='http://www.hiltonpharma.com/' target=_self>Click here to go on home page<center></a></h2>");
//output.document.write ("<input type='button' value='Start Another Search' onClick = 'self.close()'");
//output.document.write ("<center></form>");


document.write("<div id='footer'></div>");

output.document.write ("</body></html>"); 
output.document.close();


}