//SEARCH SCRIPT

function search(){

var title = new Array(53);
var desc = new Array(53);
var links = new Array(53);
var matched = new Array(53);
var key = new Array(53);
var found = new Array(53);
var temp=0;
title[0]= 52; 
key[0]=0; 
found[0]=0;

title[1]="IOTL Indian Oiltanking Limited index home Company Office S&L s&lofindia Stewarts & Lloyds Of India Limited pipework engineeing";
desc[1]="Stewarts & Lloyds Of India Limited";
links[1]="index.html";
matched[1]=0;

title[2]="IOTL Indian Oiltanking Limited Corporate Company Office S&L s&lofindia Stewarts & Lloyds Of India Limited Head Office Corporate Office ERP Cell Design Office pipework engineeing";
desc[2]="Stewarts & Lloyds Of India Limited - The Company";
links[2]="company.html";
matched[2]=0;

title[3]="Corporate evolution TATA Steel IOTL Indian OilTanking Limited UK Office";
desc[3]="Stewarts & Lloyds Of India Limited - Evolution";
links[3]="evolution.html";
matched[3]=0;

title[4]="Corporate Board of Directors Chairman Managing Director Executives Management Team";
desc[4]="Stewarts & Lloyds Of India Limited - Board of Directors";
links[4]="directors.html";
matched[4]=0;

title[5]="Corporate ISO Certification ISO Certificate NQAQSR Certificate of Registration";
desc[5]="Stewarts & Lloyds Of India Limited - ISO Certification";
links[5]="iso.html";
matched[5]=0;

title[6]="Corporate IOTL Indian Oiltanking Limited promoters S&L";
desc[6]="Stewarts & Lloyds Of India Limited - Our Promoters";
links[6]="promoters.html";
matched[6]=0;

title[7]="strategy strategies";
desc[7]="Stewarts & Lloyds Of India Limited - Leaders in Quality";
links[7]="strategy.html";
matched[7]=0;

title[8]="Corporate Technology Alliance technical";
desc[8]="Stewarts & Lloyds Of India Limited - Technology Alliance";
links[8]="technology.html";
matched[8]=0;

title[9]="Corporate vision Mission";
desc[9]="Stewarts & Lloyds Of India Limited - Vision & Mission";
links[9]="vision.html";
matched[9]=0;

title[10]="Corporate strength";
desc[10]="Stewarts & Lloyds Of India Limited - Our Strength";
links[10]="strength.html";
matched[10]=0;

title[11]="Corporate Chairman MD Desk";
desc[11]="Stewarts & Lloyds Of India Limited - Chairman & MD's Desk";
links[11]="chairman.html";
matched[11]=0;

title[12]="Corporate Products & Services why Stewarts & Lloyds Reason";
desc[12]="Stewarts & Lloyds Of India Limited - Why Stewarts & Lloyds";
links[12]="why.html";
matched[12]=0;

title[13]="products & services design construction engineering services Stewarts & Lloyds of India Limited S&L";
desc[13]="Stewarts & Lloyds Of India Limited - Design Engineering Services";
links[13]="design.html";
matched[13]=0;

title[14]="products & services design construction engineering fabricated products pipework Stewarts & Lloyds of India Limited S&L";
desc[14]="Stewarts & Lloyds Of India Limited - Fabricated Products";
links[14]="fabricated.html";
matched[14]=0;

title[15]="products & services design construction engineering projects & construction services Stewarts & Lloyds of India Limited S&L";
desc[15]="Stewarts & Lloyds Of India Limited - Projects & Construction Services";
links[15]="project.html";
matched[15]=0;

title[16]="products & services design construction engineering mode of execution Stewarts & Lloyds of India Limited S&L";
desc[16]="Stewarts & Lloyds Of India Limited - Mode of Execution";
links[16]="mode.html";
matched[16]=0;

title[17]="products & services design construction engineering operation & maintenance contracts Stewarts & Lloyds of India Limited S&L";
desc[17]="Stewarts & Lloyds Of India Limited - Operation & Maintenance Contracts";
links[17]="contracts.html";
matched[17]=0;

title[18]="design construction engineering epc capabilities Stewarts & Lloyds of India Limited S&L";
desc[18]="Stewarts & Lloyds Of India Limited - EPC Capabilities";
links[18]="epc.html";
matched[18]=0;

title[19]="metal steel plant design construction engineering sectorwies interests fluid handling system Stewarts & Lloyds of India Limited S&L";
desc[19]="Stewarts & Lloyds Of India Limited - Metal";
links[19]="metal.html";
matched[19]=0;

title[20]="power steel plant design construction engineering sectorwies interests fluid handling system Stewarts & Lloyds of India Limited S&L";
desc[20]="Stewarts & Lloyds Of India Limited - Power";
links[20]="power.html";
matched[20]=0;

title[21]="oil & natural gas plant design construction engineering sectorwies interests fluid handling system Stewarts & Lloyds of India Limited S&L";
desc[21]="Stewarts & Lloyds Of India Limited - Oil & Natural Gas";
links[21]="oil.html";
matched[21]=0;

title[22]="fertilizer plant design construction engineering sectorwies interests fluid handling system Stewarts & Lloyds of India Limited S&L";
desc[22]="Stewarts & Lloyds Of India Limited - Fertilizer";
links[22]="fertilizer.html";
matched[22]=0;

title[23]="resources design construction engineering Stewarts & Lloyds of India Limited S&L";
desc[23]="Stewarts & Lloyds Of India Limited - Resources";
links[23]="resources.html";
matched[23]=0;

title[24]="customerbase clients design construction engineering Stewarts & Lloyds of India Limited S&L";
desc[24]="Stewarts & Lloyds Of India Limited - Customerbase";
links[24]="customerbase.html";
matched[24]=0;

title[25]="contact us reach us offices branches plants location locational map kolkata mumbai chennai Stewarts & Lloyds of India Limited S&L";
desc[25]="Stewarts & Lloyds Of India Limited - Contact";
links[25]="contact.html";
matched[25]=0;

title[26]="newsroom events Stewarts & Lloyds of India Limited S&L";
desc[26]="Stewarts & Lloyds Of India Limited - Events";
links[26]="events.html";
matched[26]=0;

title[27]="newsroom newsletter Stewarts & Lloyds of India Limited S&L";
desc[27]="Stewarts & Lloyds Of India Limited - Newsletter";
links[27]="newsletter.html";
matched[27]=0;

title[28]="newsroom awards & recognition Stewarts & Lloyds of India Limited S&L";
desc[28]="Stewarts & Lloyds Of India Limited - Awards & Recognition";
links[28]="awards.html";
matched[28]=0;

title[29]="newsroom press release media says Stewarts & Lloyds of India Limited S&L";
desc[29]="Stewarts & Lloyds Of India Limited - Press Release";
links[29]="press.html";
matched[29]=0;

title[30]="sitemap Stewarts & Lloyds of India Limited S&L";
desc[30]="Stewarts & Lloyds Of India Limited - Sitemap";
links[30]="sitemap.html";
matched[30]=0;

title[31]="career Stewarts & Lloyds of India Limited S&L";
desc[31]="Stewarts & Lloyds Of India Limited - Career";
links[31]="career.html";
matched[31]=0;

title[32]="investor relations investors financial performance annual report Stewarts & Lloyds of India Limited S&L";
desc[32]="Stewarts & Lloyds Of India Limited - Annual Report";
links[32]="annualreport05.html";
matched[32]=0;

title[33]="investor relations investors financial performance quarterly results Stewarts & Lloyds of India Limited S&L";
desc[33]="Stewarts & Lloyds Of India Limited - Quarterly Results";
links[33]="quarterly.html";
matched[33]=0;

title[34]="investor relations investors financial performance financial statistics Stewarts & Lloyds of India Limited S&L";
desc[34]="Stewarts & Lloyds Of India Limited - Financial Statistics";
links[34]="statistics.html";
matched[34]=0;

title[35]="investor relations investor events investors Stewarts & Lloyds of India Limited S&L";
desc[35]="Stewarts & Lloyds Of India Limited - Investor Events";
links[35]="investorevents.html";
matched[35]=0;

title[36]="investor relations investors shareholder information shareholding pattern Stewarts & Lloyds of India Limited S&L";
desc[36]="Stewarts & Lloyds Of India Limited - Shareholding Pattern";
links[36]="sharepattern.html";
matched[36]=0;

title[37]="investor relations investors shareholder information stock exchange Stewarts & Lloyds of India Limited S&L";
desc[37]="Stewarts & Lloyds Of India Limited - Stock Exchange";
links[37]="stock.html";
matched[37]=0;

title[38]="investor relations investors shareholder information registrar & share transfer agent Stewarts & Lloyds of India Limited S&L";
desc[38]="Stewarts & Lloyds Of India Limited - Registrar & Share Transfer Agent";
links[38]="registrar.html";
matched[38]=0;

title[39]="investor relations investors shareholder information share price & chart Stewarts & Lloyds of India Limited S&L";
desc[39]="Stewarts & Lloyds Of India Limited - Share Price & Chart";
links[39]="http://www.bseindia.com/price_finder/stockreach.asp?scripcd=4960";
matched[39]=0;

title[40]="investor relations investors shareholder information contact person Stewarts & Lloyds of India Limited S&L";
desc[40]="Stewarts & Lloyds Of India Limited - Contact Person";
links[40]="investorcontact.html";
matched[40]=0;

title[41]="investor relations investors corporate governance policy & compliance Stewarts & Lloyds of India Limited S&L";
desc[41]="Stewarts & Lloyds Of India Limited - Policy & Compliance";
links[41]="compliance.html";
matched[41]=0;

title[42]="investor relations investors corporate governance code of conduct Stewarts & Lloyds of India Limited S&L";
desc[42]="Stewarts & Lloyds Of India Limited - Code of Conduct";
links[42]="codeofconduct.html";
matched[42]=0;

title[43]="investor relations investors corporate governance whistleblower policy Stewarts & Lloyds of India Limited S&L";
desc[43]="Stewarts & Lloyds Of India Limited - Whistleblower Policy";
links[43]="compliance.html";
matched[43]=0;

title[44]="design construction engineering milestone engineering projects Stewarts & Lloyds of India Limited S&L";
desc[44]="Stewarts & Lloyds Of India Limited - Milestone Engineering";
links[44]="milestone.html";
matched[44]=0;

title[45]="design construction engineering turnkey projects activities Stewarts & Lloyds of India Limited S&L";
desc[45]="Stewarts & Lloyds Of India Limited - Turnkey Projects";
links[45]="turnkey.html";
matched[45]=0;

title[46]="tenders information tender news Stewarts & Lloyds of India Limited S&L";
desc[46]="Stewarts & Lloyds Of India Limited - Tender";
links[46]="tender.php";
matched[46]=0;

title[47]="tenders information tender news Stewarts & Lloyds of India Limited S&L";
desc[47]="Stewarts & Lloyds Of India Limited - Tender";
links[47]="tender.php";
matched[47]=0;

title[48]="top stories what's new Stewarts & Lloyds of India Limited S&L";
desc[48]="Stewarts & Lloyds Of India Limited - Top Stories";
links[48]="stories.html";
matched[48]=0;

title[49]="e-executive forum chatroom chat room Stewarts & Lloyds of India Limited S&L";
desc[49]="Stewarts & Lloyds Of India Limited - e-Executive";
links[49]="forum/index.php";
matched[49]=0;

title[50]="ongoing major projects design construction engineering Stewarts & Lloyds of India Limited S&L";
desc[50]="Stewarts & Lloyds Of India Limited - Ongoing Major Projects";
links[50]="major.html";
matched[50]=0;

title[51]="projects successfully executed design construction engineering Stewarts & Lloyds of India Limited S&L";
desc[51]="Stewarts & Lloyds Of India Limited - Projects Successfully Executed";
links[51]="successful.html";
matched[51]=0;

title[52]="disclaimer privacy policy Stewarts & Lloyds of India Limited S&L";
desc[52]="Stewarts & Lloyds Of India Limited - Disclaimer";
links[52]="disclaimer.html";
matched[52]=0;


var skeyword=document.searchengine.keys.value.toLowerCase(); 
var check=1;
var pos=0;
var i=0;
var j=0;
var itemp=0;
var config='';
var output='';
while (true)
{
if (skeyword.indexOf("+") == -1 )
{
key[check]=skeyword;

break;
}
pos=skeyword.indexOf("+");
if (skeyword !="+")     
{
key[check]=skeyword.substring(0,pos); check++;
}
else
{
check--;
break;
}
skeyword=skeyword.substring(pos+1, skeyword.length);  
  if (skeyword.length ==0)
{
check--;
break;
}
}
 key[0]=check;
for ( i=1; i<=key[0];i++)
{
for (j=1;j<=title[0];j++)
{
if (title[j].toLowerCase().indexOf(key[i]) > -1 )
{
matched[j]++;
}
}       
}
for (i=1;i<=title[0];i++)
{
if (matched[i] > 0 )
{
found[0]++;
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;
}
}
}



config='toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,left=0,top=0,width=800,height=600';
output = window.open ("","outputwindow",config);
output.document.write('<html>');
output.document.write('<title> Stewarts & Lloyds Of India Limited Search Results </title>');
output.document.write('<head>'); 
output.document.write('<script language="javascript">function ChangeMenu(file){top.opener.window.location.href = file;window.close();}</script>'); 
output.document.write('</head>');
output.document.write('<BODY  text=#000000  link=#2116C7 vlink =#2116C7 >');
output.document.write('<table width="750" border="0" cellspacing="0" cellpadding="0">');
output.document.write('<tr>');
output.document.write('<td>');
output.document.write('<font face="arial" size="5" color="blue">');
output.document.write('<b>Stewarts & Lloyds Of India Limited</b></font>');
output.document.write('</td>');
output.document.write('</tr>');
output.document.write('</table>');
output.document.write('<table width="750" border="0" cellspacing="0" cellpadding="0">');
output.document.write('<tr>');
output.document.write('<td align="center">');
output.document.write('<font face="arial" size="3" color="red">');
output.document.write('<b>Your Matches</b></font>');
output.document.write('</td>');  
output.document.write('</tr>');
output.document.write('</table>');
output.document.write('<hr width="720">');
output.document.write('The Keyword(s) you searched :: '.big()); 
for(i=1;i<=key[0]; i++)
{
output.document.write( key[i].bold() +"   "); 
}
output.document.write('<br>');
if(found[0]==0)
{
output.document.write('<hr width="720">');
output.document.write("<b>No matches resulted in this search </b> <br>");
output.document.write("You may close the results and reduce the length/number  of the keywords  <br>");
}
else
{
output.document.write("<hr width='720'> <b> The Results of the search are : </b>");
output.document.write( found[0] +"  Entries found  ".italics()); 
output.document.write("<table border=1 width=750>");
for(i=1;i<=found[0];i++)
{
output.document.write("<tr><td valign=top background='images/cream-bg.gif'>");
output.document.write("<h3>" +i +"</h3>" + "</td>"); 
output.document.write("<td valign=top>"); 
itemp=found[i];
output.document.write(desc[itemp].bold() +"<br>" +"<a href=javascript:ChangeMenu('" +links[itemp]+ "')>" +links[itemp]+ "</a>" +"<br>");
temp= (matched[itemp]/key[0])*100; 
output.document.write("<i> Matched  with keywords  :: "+temp+" %  </i>" );
output.document.write("</td>");
output.document.write("</tr>"); 
matched[itemp]=0;
}
found[0]=0;
output.document.write("</table>");
}
output.document.write ("<form><center>"); 
output.document.write ("<input type='button' value='Start Another Search' onClick = 'self.close()'>") ;
output.document.write ("</center></form>");
output.document.write('</body>');
output.document.write('</html>');
output.document.close();
}