
var item = new Array();

c=0; item[c]=new Array("index.html","","Home Page","acknit,index,main,start,home,front","Welcome to Acknit - Protecting you at work");
c++; item[c]=new Array("profile.html","","Company Profile","acknit, Knitting, Seamless, glove, exporter, Europe, U.S.A, Canada, quality, Leather, Industrial, Garments, yarn, cotton, Poly, polyamide, Kevlar, Dyneema, Jacket, Apron, Leg Guard, split, Chrome, Heat, Resistance, Water, Repellant, Fabric, Polyester, customer, quality, products, profile, about, aboutus. company","Acknit Knitting Limited was incorporated in ...");
c++; item[c]=new Array("sg.html","","Knitted Seamless Gloves","Art, No, A/103, cotton, PC/2001, Poly Cotton, R/118, G/118, poly, A/142, Nylon, polyamide, HTN/740, G/142, PVC/103, PVC/1002, PVC/D/KY/05, PVC, Kevlar, Gloves, PVC/D/2001/ COM, PVC/2001, PVC/142, KY/SPG/11, Terry, AS/KY/170, Cut, Heatresistant, IO/OR/I, Dyneema, AS/170, PON/KY/760, Panox, KY/03, PVC/KY/03, KY/05, KYD/11, KY/sleeve, KYD/11/Felt, liner, Aramid, cuff, knitted, seamless","Our Knitted Seamless Gloves collection");
c++; item[c]=new Array("cw.html","","Cut & Sewn Gloves","Art, No, AB/202, AC/PVC/201, Polka, wrist, A/125, Bleached, Interlock, A/120, A/105, A/106, cut, sewn, gloves"," Our Cut & Sewn Gloves collection");
c++; item[c]=new Array("cg.html","","Coated Gloves","Art, No,NBR/721, Nylon, Glove, PU/700, Coating, CON/PU/711, Conductive, Anti Statics, CON/710, PU/701, DY/PU/730, Dyneema, coated","Our Coated Gloves collection");
c++; item[c]=new Array("hrg.html","","Heat Resistance Gloves","heat, resistance, gloves, Art, No, KYW/HRL/1, Aramid, leather, Temperature, KYW/HRL/2, HRL/2/5F, HRL/2/Mitten, KYW/600/2, KYW/600/1, KY/Felt/D1, PBI/KYW/11, PBI, Fabric, KYW/ALU/21, Aluminised, KYW/ALU/23, PBI/ALU/12, KYD/ALU/22","Our Heat Resistance Gloves Collection");
c++; item[c]=new Array("lg.html","","Leather Gloves","leather, gloves, Art, No, L-001, Canada, Split, Textile, L-005, L-006, cow, grain, L-007, L-009, Chrome, L-011, L-013, L-015, L-017, L-019, L-021, L-024, camel, kevlar, woolen, lining, L-026, L-027, binding, tape, L-028, L-031, L-032, L-034, L-035, L-036","Our Leather Gloves collection");
c++; item[c]=new Array("la.html","","Leather Accessories","Leather, Accessories","Our Leather Accessories collection");
c++; item[c]=new Array("gar.html","","Garments","garments","Our Garments Collection");
c++; item[c]=new Array("enquiry.html","","Enquiry form","enquiry","Send your Queries");
c++; item[c]=new Array("feedback.html","","Feedback","feedback","Send your Feedback");
c++; item[c]=new Array("contact.html","","Contact Us, address","contact","Our Address");
c++; item[c]=new Array("sitemap.html","","Sitemap","site, map","View our website");

page="<html><head><title>Acknit Search Results</title><script language='javascript'>function getURL(location){window.opener.location.href=location;}</script></head><body bgcolor='#000066'><center><table border=0 cellspacing=2 cellpadding=5 width=100%><tr><td colspan=2 height=50 align=left valign=middle bgcolor=#EDE04C><font face=arial size=2 color=#000066><strong>Search Results</strong></font></td></tr>";

function search() 
{
	win = window.open("","","scrollbars=yes,resizable=yes,location=no,directories=no,toolbar=no,status=no,menubar=no,width=580,height=400,left=30,top=40");
	win.document.write(page);
	str = new String(document.frmsearch.srchval.value)
	str1 = new String(str.toLowerCase())
	txt = str1.split(" ");
	fnd = new Array(); total=0;
	for (i = 0; i < item.length; i++) 
	{
		fnd[i] = 0;
		order = new Array(0, 4, 2, 3);
		for (j = 0; j < order.length; j++)
			for (k = 0; k < txt.length; k++)
				if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
				fnd[i] += (j+1);
	}
	for (i = 0; i < fnd.length; i++) 
	{
		n = 0; w = -1;
		for (j = 0;j < fnd.length; j++)
		if (fnd[j] > n) 
		{ 
			n = fnd[j]; w = j; 
		};
		if (w > -1) 
			total += showresult(w, win, n);
			fnd[w] = 0;
	}
	win.document.write("</center></table><hr><br><div><font face=arial size=2 color=white><strong>Total found: "+total+"</strong></font></div><br></body></html>");
	win.document.close();
}

function showresult(which,wind,num) 
{
	link = item[which][1] + item[which][0]; 
	line = "<tr><td><font face=arial size=2 color=#dddddd><a href=Javascript:getURL('"+link+"') title='"+item[which][2]+"'><font face=arial size=2 color=#dddddd><strong>"+item[which][2]+"</strong></font></a><br>"+ item[which][4] + "</font></td><td><font face=arial size=2 color=white><strong> Score: "+num+"</strong></td></tr>";
	wind.document.write(line);
	return 1;
}