
            
        function MM_swapImgRestore() { //v3.0
        var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
        }
        
        function MM_preloadImages() { //v3.0
        var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
        }
        
        function MM_findObj(n, d) { //v4.0
        var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
        if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
        for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
        if(!x && document.getElementById) x=document.getElementById(n); return x;
        }
        
        function MM_swapImage() { //v3.0
        var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
        if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
        }
        


keywords= new Object();
found= new Object();
var temp=0;
//no of keywords after parsing
keywords[0]=0
//no of  matches found.
found[0]=0

function searchNow(searchString){
if(screen.width){
var winl = (screen.width-637)/2;
var wint = (screen.height-235)/2;
}else{winl = 0;wint =0;}
if (winl < 0) winl = 0;
if (wint < 0) wint = 0;
wint = wint + 50;

var skeyword = searchString.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;
			}
		}
	}
document.writeln('<html>');
document.writeln('<head>');
	document.writeln('<title>Toniyinc.com</title>');
    document.writeln('<LINK TYPE="text/css" REL="stylesheet" HREF="../include/sitestyle.css">');
document.writeln('</head>');
document.writeln('<body bgcolor="#FFFFFF" leftmargin=0 topmargin=0 marginheight="0" marginwidth="0">');
    document.writeln('<table cellpadding="0" cellspacing="1" border="0" bgcolor="#000000" align="center">');
        document.writeln('<tr>');
            document.writeln('<td>');
                document.writeln('<table cellpadding="0" cellspacing="0" border="0" width="775" bgcolor="#FFFFFF">');
                    document.writeln('<tr>');
            		    document.writeln('<td rowspan="2" bgcolor="#0082C7" width="250" height="97"><a href="../index.html"><img src="../images/logo1.gif" width="250" height="110" alt="" border="0"></a></td>');
                        document.writeln('<td width="525" height="75">');
                            document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="525" height="75">');
                                document.writeln('<param name=movie value="../images/Banner.swf">');
                                document.writeln('<param name=quality value=high>');
                                document.writeln('<embed src="../images/Banner.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="525" height="75">');
                                document.writeln('</embed> ');
                            document.writeln('</object>');
                        document.writeln('</td>');
            	    document.writeln('</tr>');
                    document.writeln('<tr>');
                        document.writeln('<td>');
                            document.writeln('<table cellpadding="0" cellspacing="0" border="0">');
                                document.writeln('<tr>');
                                    document.writeln('<td><a href="../index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'home\',\'\',\'../images/prhomea.gif\',1)"><img src="../images/prhome.gif" width="82" height="36" alt="Home" border="0" name="home"></a></td>');
                                    document.writeln('<td><a href="../company.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'company\',\'\',\'../images/prcompanya.gif\',1)"><img src="../images/prcompany.gif" width="102" height="36" alt="" border="0" name="company"></a></td>');
                                    document.writeln('<td><a href="product.html"><img src="../images/prproductsa.gif" width="102" height="36" alt="" border="0" name="products"></a></td>');
                                    document.writeln('<td><a href="../contact.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'contact\',\'\',\'../images/prcontact-usa.gif\',1)"><img src="../images/prcontact-us.gif" width="123" height="36" alt="" border="0" name="contact"></a></td>');
                                    document.writeln('<td width="117" bgcolor="#999999" background="../images/1pix.gif">&nbsp;&nbsp;</td>');
                                document.writeln('</tr>');
                            document.writeln('</table>');
                        document.writeln('</td>');
                    document.writeln('</tr>');
                    document.writeln('<tr>');
                        document.writeln('<td height="25" colspan="2" bgcolor="#CCCCCC" class="blackText"><img src="../images/blank.gif" width="275" height="1" alt="" border="0"><font class="greyText"><a href="../product/product.html" >Industrial sewing machines</a></font>&nbsp;&nbsp;|&nbsp;&nbsp;<font class="greyText"><a href="../folder/folder.html">Folders</a></font>&nbsp;&nbsp;|&nbsp;&nbsp;<font class="greyText"><a href="../foot/foot.html">Pressure foot</a></font></td>');
                    document.writeln('</tr>');
                    document.writeln('<tr>');
                        document.writeln('<td height="53" colspan="2" class="blackText" align="right" valign="bottom"><img src="../images/blank.gif" bordr="0" height="50"></td>');
                    document.writeln('</tr>');
                    document.writeln('<tr>');
                        document.writeln('<td colspan="2">');
                            document.writeln('<table cellpadding="0" cellspacing="0" border="0">');
                                document.writeln('<tr>');
                                    document.writeln('<td width="15"><img src="../images/blank.gif" width="15" height="1" alt="" border="0"></td>');
                                    document.writeln('<td valign="top">');
                                        document.writeln('<table width="180" border="0" cellspacing="0" cellpadding="0">');
                                            document.writeln('<form name="search">');
                                            document.writeln('<tr>');
                                                document.writeln('<td height="30" bgcolor="#CCCCCC">');
                                                    document.writeln('<table cellpadding="0" cellspacing="0" border="0" width="100%">');
                                                        document.writeln('<tr>');
                                                            document.writeln('<td class="greyTextBig">&nbsp;&nbsp;<b>Search</b></td>');
                                                        document.writeln('</tr>');
                                                    document.writeln('</table>');
                                                document.writeln('</td>');
                                            document.writeln('</tr>');
                                            document.writeln('<tr>');
                                                document.writeln('<td height="5"><img src="../images/blank.gif" width="1" height="5" alt="" border="0"></td>');
                                            document.writeln('</tr>');
                                           document.writeln('<tr>');
                                                document.writeln('<td class="blackTextSmall">');
                                                    document.writeln('Search using product name or <br>code no.');
                                                document.writeln('</td>');
                                            document.writeln('</tr>');
                                            document.writeln('<tr>');
                                                document.writeln('<td><input type="text" name="search" size="23" READONLY value="' + searchString + '"></td>');
                                            document.writeln('</tr>');
                                            document.writeln('<tr>');
                                                document.writeln('<td height="5"><img src="../images/blank.gif" width="1" height="5" alt="" border="0"></td>');
                                           document.writeln(' </tr>');
                                            document.writeln('<tr>');
                                                document.writeln('<td><input type="button" name="search" value="Back" onclick="javascript:history.go(-1);"></td>');
                                            document.writeln('</tr>');
                                            document.writeln('<tr>');
                                                document.writeln('<td height="10"><img src="../images/blank.gif" width="1" height="5" alt="" border="0"></td>');
                                            document.writeln('</tr>');
                                            document.writeln('<tr>');
                                                document.writeln('<td height="1" bgcolor="#CCCCCC"><img src="../images/blank.gif" width="1" height="1" alt="" border="0"></td>');
                                            document.writeln('</tr>');
                                            document.writeln('<tr>');
                                                document.writeln('<td height="5"><img src="../images/blank.gif" width="1" height="5" alt="" border="0"></td>');
                                            document.writeln('</tr>');
                                            document.writeln('</form>');
                                        document.writeln('</table>');
                                    document.writeln('</td>');
                                    document.writeln('<td width="15"><img src="../images/blank.gif" width="1" height="15" alt="" border="0"></td>');
                                    document.writeln('<td width="1" bgcolor="#666666"><img src="../images/blank.gif" width="1" height="1" alt="" border="0"></td>');
                                    document.writeln('<td width="15"><img src="../images/blank.gif" width="1" height="15" alt="" border="0"></td>');
                                    document.writeln('<td valign="top">');
                                        document.writeln('<table cellpadding="0" cellspacing="0" border="0" width="560">');
                                           document.writeln(' <tr>');
                                                document.writeln('<td height="30" bgcolor="#CCCCCC">');
                                                    document.writeln('<table cellpadding="0" cellspacing="0" border="0" width="100%">');
                                                        document.writeln('<form name="go">');
                                                        document.writeln('<tr>');
                                                            document.writeln('<td class="greyTextBig">&nbsp;&nbsp;<b>Search Result(s)</b></td>');
                                                            //document.writeln('<td align="right" class="blackText">Go to page : <input type="text" name="no" size="2">&nbsp;<input type="button" name="go" value="Go" onclick="goToPage(document.go.no.value);"></td>');
                                                        document.writeln('</tr>');
                                                        document.writeln('</form>');
                                                    document.writeln('</table>');
                                                document.writeln('</td>');
                                            document.writeln('</tr>');
                                            document.writeln('<tr>');
                                                document.writeln('<td height="10"><img src="../images/blank.gif" width="1" height="10" alt="" border="0"></td>');
                                            document.writeln('</tr>');
                                            document.writeln('<tr>');
                                                document.writeln('<td valign="top">');
                                                    document.writeln('<table cellpadding="0" cellspacing="0" border="0">');
                                                        // actual display starts here
                                                            // end of sort
                                                            //output = self;
                                                            //document.write('<html>');
                                                            //document.write('<head>');
                                                            document.write('<script>');
                                                            document.write('window.onerror=new Function("return true")');
                                                            document.write('<\/script>');
                                                            //document.write('<title> Search Results </title>');
                                                            //document.write('</head>');
                                                            //document.write('<BODY bgcolor=#ffffff  text=#000000  link=#990099 vlink =#339966 >');
                                                            
                                                            //document.write('<center> <h1> Search Results </h1></center>');
                                                            //document.write('<hr>');
                                                            //document.write(' The Keyword(s) you searched :: '.big() )
                                                            for (i=1;  i<=keywords[0]; i++)
                                                            	{
                                                            	//document.write( keywords[i] +"   ");
                                                            	}
                                                            //document.write('<br>');
                                                            
                                                            if (found[0]==0)
                                                            	{
                                                            	//alert(found[0]);
                                                               document.writeln('<tr>');
                                                                   document.writeln('<td valign="top" class="blackTextSmall">');
                                                                       document.writeln('<table border="0" cellspacing="1" cellpadding="4" bgcolor="#CCCCCC">');
                                                                           document.writeln('<tr>');
                                                                               document.writeln('<td bgcolor="#FFFFFF" align="center" valign="middle"><b>No matches resulted in this search </b></td>');
                                                                           document.writeln('</tr>');
                                                                       document.writeln('</table>');
                                                                   document.writeln('</td>');
                                                               document.writeln(' </tr>');
                                                            	}
                                                            else
                                                            	{
                                                            	// data has been found
                                                            	//document.write(" <hr> <b> The Results of the search are  : </b>  ");
                                                            	//document.write( found[0] +"  Entries found  ".italics());
                                                            	//document.write("<table border=1 width=100%>");
                                                                document.writeln('<tr>');
                                                                
                                                                trcount = 0;
                                                            	
                                                                for (i=1; i<=found[0];i++)
                                                            		{
                                                            		//document.write("<tr><td valign=top bgcolor=#9999ff>");
                                                            		//document.write("<h3>" +i +"</h3>");
                                                            		//document.write("<td valign=top>");
                                                            		itemp=found[i];
                                                            		//document.write(desc[itemp] +"<br>" + links[itemp].link(links[itemp])+"<br>");
                                                                    //document.write(images[itemp] + "<br>");
                                                                        document.writeln('<td valign="top" class="blackTextSmall">');
                                                                            document.writeln('<table border="0" cellspacing="1" cellpadding="4" bgcolor="#CCCCCC">');
                                                                                document.writeln('<tr>');
                                                                                    document.writeln('<td bgcolor="#FFFFFF" align="center" height="180" valign="middle"><a href="javascript:void();" onclick="javascript:window.open(\'' + links[itemp] + '\',\'\',\'top=' + wint + '','left=' + winl + ',width=636,height=265,resizable=no,scrollbars=yes,location=no,toolbar=no,menubar=no,directories=no,status=no\');"><img src="' + images[itemp] + '" alt="" border="0"></a></td>');
                                                                                document.writeln('</tr>');
                                                                                document.writeln('<tr>');
                                                                                    document.writeln('<td class="blackTextSmall" width="170" valign="top" height="75">' + desc[itemp] + '</td>');
                                                                                document.writeln('</tr>');
                                                                            document.writeln('</table>');
                                                                            document.writeln('<a href="javascript:void();" onclick="javascript:window.open(\'' + links[itemp] + '\',\'\',\'width=636,height=265,resizable=no,scrollbars=yes,location=no,toolbar=no,menubar=no,directories=no,status=no\');">Click here for details</a>');
                                                                        document.writeln('</td>');
                                                                        document.writeln('<td width="13"><img src="../images/blank.gif" width="5" height="13" alt="" border="0"></td>');
                                                                        //alert(trcount);
                                                                        if (trcount == 2){
                                                                           document.writeln(' </tr>');
                                                                           document.writeln(' <tr>');
                                                                           trcount = 0
                                                                       }else{
                                                                        trcount++;
                                                                       }
                                                                       
                                                                       
                                                            		//temp= (matched[itemp]/keywords[0])*100
                                                            		//document.write("<i> Matched  with keywords  :: " +temp+" %  </i>");
                                                            		matched[itemp]=0
                                                            		    
                                                                    }
                                                                document.writeln(' </tr>');
                                                        	    found[0]=0;
                                                            	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>Hit the refresh button to return to the search<center>");
                                                            //output.document.write ("<input type='button' value='Start Another Search' onClick = 'self.close()'");
                                                            //output.document.write ("<center></form>");
                                                            
                                                            //output.document.write ("</body></html>");
                                                            //output.document.close();
                                                        // actual display ends here
                                                        document.writeln('<tr>');
                                                           document.writeln(' <td colspan="5" height="10"><img src="../images/blank.gif" width="1" height="10" alt="" border="0"></td>');
                                                        document.writeln('</tr>');
                                                    document.writeln('</table>');
                                                document.writeln('</td>');
                                            document.writeln('</tr>');
                                        document.writeln('</table>');
                                    document.writeln('</td>');
                                document.writeln('</tr>');
                            document.writeln('</table>');
                        document.writeln('</td>');
                    document.writeln('</tr>');
                    document.writeln('<tr>');
                        document.writeln('<td colspan="2" bgcolor="#666666" height="30" class="whiteText" align="center">Copyright toniyinc.com 2003</td>');
                    document.writeln('</tr>');
                document.writeln('</table>');
            document.writeln('</td>');
        document.writeln('</tr>');
    document.writeln('</table>');
document.writeln('</body>');
document.writeln('</html>');
}


