//this script will procue a new html page

var item = new Array();
var wrd = new String();

//ITEM will contain all related information fromm all pages in this site
// populate ITEM using the format: new Array("file name","path","Page Title","KeyWords","Description")

c=0; item[c]=new Array("home_ambient_display_cabinet.html","","Ambient Display Cabinet","nrsqcd, nrcd seriess,kt.nrsqcd.9,kt.nrsqcd.12,kt.nrsqcd.15,kt.nrcd.9,kt.nrcd.12,kt.nrcd.15,square,curved,cabinets,displays,cases,product,products","Koldtech Ambient Display Cabinet. Available in Square and Curved glass model. It has 3 display shelves, each illuminated with high impact lighting. Self closing double glazed sliding rear roller doors...");
c++; item[c]=new Array("kt_nrcd_12.html","","KT.NRCD.12","nrcd series,1200mm wide or long x 760mm x 1290mm high,cabinets,product,products","Koltech Curved Glass Ambient Display Cabinet. Self closing double glazed sliding rear roller doors. Insulated extrior panels finished in matt black with glass top rear shelving shelf. Product dimension : 1200 x 760 x 1290 mm... ");
c++; item[c]=new Array("kt_nrcd_15.html","","KT.NRCD.15","nrcd series,1500mm wide or long x 760mm x 1290mm high,cabinets,product,products","Koltech Curved Glass Ambient Display Cabinet. Self closing double glazed sliding rear roller doors. Insulated extrior panels finished in matt black with glass top rear shelving shelf. Product dimension : 1500 x 760 x 1290 mm... ");
c++; item[c]=new Array("kt_nrcd_9.html","","KT.NRCD.9","nrcd series,900mm wide or long x 760mm x 1290mm high,cabinets,product,products","Koltech Curved Glass Ambient Display Cabinet. Double glazed rear swinging doors. Insulated extrior panels finished in matt black with glass top rear shelving shelf. Product dimension : 900 x 760 x 1290 mm... ");
c++; item[c]=new Array("kt_nrsqcd_12.html","","KT.NRSQCD.12","nrsqcd series,1200mm wide or long x 729mm x 1358mm high,cabinets,product,products","Koltech Square Glass Ambient Display Cabinet. Self closing double glazed sliding rear roller doors. Single glazed straight glass front and sides. Stainless steel top rear serving shelf. Product dimension : 1200 x 729 x 1358 mm... ");
c++; item[c]=new Array("kt_nrsqcd_12.html","","KT.NRSQCD.15","nrsqcd series,1500mm wide or long x 729mm x 1358mm high,cabinets,product,products","Koltech Square Glass Ambient Display Cabinet. Self closing double glazed sliding rear roller doors. Single glazed straight glass front and sides. Stainless steel top rear serving shelf. Product dimension : 1500 x 729 x 1358 mm... ");
c++; item[c]=new Array("kt_nrsqcd_12.html","","KT.NRSQCD.9","nrsqcd series,900mm wide or long x 729mm x 1358mm high,cabinets,product,products","Koltech Square Glass Ambient Display Cabinet. Double glazed rear swinging doors. Single glazed straight glass front and sides. Stainless steel top rear serving shelf. Product dimension : 900 x 729 x 1358 mm... ");

c++; item[c]=new Array("home_dropin_countertop_display_cabinet.html","","Drop-in Countertop Display Cabinet - Hot & Cold","kt.rcd.8.di,kt.hcd.8.di,dropin,drop in,hot,cold,refrigerated,heated,food warmer,refrigerated counter,cake display,pastries,display fridge,cabinets,product,products","Koldtech Drop-in Countertop Display Cabinet. Has double glazed heated front glass for condensation free display. Supplied with two adjustable wire shelves and solid lower shelf..");
c++; item[c]=new Array("kt_hcd_8_di.html","","KT.HCD.8.DI","dropin,drop in,pastry,pastries pies and hot foods,cabinets,product,products","Koldtech Heated Drop-in Display Cabinet. Counter-top heated displays for pastries, pies and hot foods. 0șC - 90șC thermostat operation with temperature gauge..... ");
c++; item[c]=new Array("kt_rcd_8_di.html","","KT.RCD.8.DI","dropin,drop in,fridges,cabinets,products,product","Koldtech Refrigerated Drop-in Display Cabinet. Rated to operate at ambient temperatures up to 32șC. Counter top drop-in refrigerated unit for cakes, drinks, sandwiches, and other cold products....");

c++; item[c]=new Array("home_front_counter_modules.html","","Front Counter Modules","sqfc series,kt.sqfc.6,kt.sqfc.9,kt.sqfc.12,kt.sqfc.15,table,modules,products,product","Koldtech Front Counter Modules. Cash register or service counter to compliment the SQRCD range. Includes reinforced service top and lower shelf for storage....");
c++; item[c]=new Array("kt_sqfc_12.html","","KT.SQFC.12","sqfc series,table,1200mm wide or long x 290mm x 900mm high,modules,products,product","Koldtech Front Counter module.... Fitted with electrical power point for plugging in cash register and connecting to electrical outlet. Product dimension : 1200 x 729 x 900 mm......");
c++; item[c]=new Array("kt_sqfc_15.html","","KT.SQFC.15","sqfc series,table,1500mm wide or long x 290mm x 900mm high,modules,products,product","Koldtech Front Counter module.... Fitted with electrical power point for plugging in cash register and connecting to electrical outlet. Product dimension : 1500 x 729 x 900 mm......");
c++; item[c]=new Array("kt_sqfc_6.html","","KT.SQFC.6","sqfc series,table,600mm wide or long x 290mm x 900mm high,modules,products,product","Koldtech Front Counter module.... Fitted with electrical power point for plugging in cash register and connecting to electrical outlet. Product dimension : 600 x 729 x 900 mm......");
c++; item[c]=new Array("kt_sqfc_9.html","","KT.SQFC.9","sqfc series,table,900mm wide or long x 290mm x 900mm high,modules,products,product","Koldtech Front Counter module.... Fitted with electrical power point for plugging in cash register and connecting to electrical outlet. Product dimension : 900 x 729 x 900 mm......");

c++; item[c]=new Array("home_heated_display_cabinet.html","","Heated Display Cabinet","hcd,sqhcd series,kt.hcd.12,kt.hcd.15,kt.hcd.9,kt.sqhcd.12,kt.sqhcd.15,cabinets,hot food displays,display cases,deli displays,square,curved,curve glass,products,product","Koldtech Heated Display Cabinet. Available in Square and  Curved glass model. Fan forced heat circulation with humidity via concealed water well. Adjustable thermostat between 30șC - 90șC with temperature display...");
c++; item[c]=new Array("kt_hcd_12.html","","KT.HCD.12","hcd series,1200mm wide or long x 760mm x 1290mm high,cabinets,hot food displays,display cases,deli displays,curve,products,product","Koldtech Curved Glass Heated Display Cabinet. Double glazed sliding roller doors and single glazed curved front with glass top rear serving shelf. Product Dimension : 1200 x 760 x 1290 mm..... ");
c++; item[c]=new Array("kt_hcd_15.html","","KT.HCD.15","hcd series,1500mm wide or long x 760mm x 1290mm high,cabinets,hot food displays,display cases,deli displays,curve,products,product","Koldtech Curved Glass Heated Display Cabinet. Double glazed sliding roller doors and single glazed curved front with glass top rear serving shelf. Product Dimension : 1500 x 760 x 1290 mm..... ");
c++; item[c]=new Array("kt_hcd_9.html","","KT.HCD.9","hcd series,900mm wide or long x 760mm x 1290mm high,cabinets,hot food displays,display cases,deli displays,curve,products,product","Koldtech Curved Glass Heated Display Cabinet. Double glazed sliding roller doors and single glazed curved front with glass top rear serving shelf. Product Dimension : 900 x 760 x 1290 mm..... ");
c++; item[c]=new Array("kt_sqhcd_12.html","","KT.SQHCD.12","sqhcd series,1200mm wide or long x 729mm x 1358mm high,cabinets,hot food displays,display cases,deli displays,square,products,product","Koldtech Square Glass Heated Display Cabinet. Single glazed straight glass front and sides. Top section of display is made from 12mm glass. Product Dimension : 1200 x 729 x 1358 mm..... ");
c++; item[c]=new Array("kt_sqhcd_15.html","","KT.SQHCD.15","sqhcd series,1500mm wide or long x 729mm x 1358mm high,cabinets,hot food displays,display cases,deli displays,square,products,product","Koldtech Square Glass Heated Display Cabinet. Single glazed straight glass front and sides. Top section of display is made from 12mm glass. Product Dimension : 1500 x 729 x 1358 mm..... ");
c++; item[c]=new Array("kt_sqhcd_9.html","","KT.SQHCD.9","sqhcd series,900mm wide or long x 729mm x 1358mm high,cabinets,hot food displays,display cases,deli displays,square,products,product","Koldtech Square Glass Heated Display Cabinet. Single glazed straight glass front and sides. Top section of display is made from 12mm glass. Product Dimension : 900 x 729 x 1358 mm..... ");

c++; item[c]=new Array("home_refrigerated_display_cabinet.html","","Refrigerated Display Cabinet","erd,rcd,sqrcd series,kt.erd.12,kt.erd.15,kt.erd.9,kt.rdc.12,kt.rcd.15,kt.rcd.18,kt.rcd.20,kt.rcd.9,kt.sqrcd.12,kt.sqrcd.15,kt.sqrcd.15,kt.sqrcd.20,kt.sqrcd.9,refrigerated food cabinets,cold displays, display cases,cake display,euro,square,curve glass,products,product","Koldtech Refrigerated Display Cabinet. Avialable in Euro, Square Glass, and Curved Glass model. Self contained refrigeration system using environmentally friendly R134a refrigerant...");
c++; item[c]=new Array("kt_erd_12.html","","KT.ERD.12","erd series,cabinets,products,product","Koldtech Euro Refrigerated Display Cabinet. New profile curved refrigerated display in stainless steel finish with adjustable electronic thermostat....");
c++; item[c]=new Array("kt_erd_15.html","","KT.ERD.15","erd series,cabinets,products,product","Koldtech Euro Refrigerated Display Cabinet. New profile curved refrigerated display in stainless steel finish with adjustable electronic thermostat....");
c++; item[c]=new Array("kt_erd_9.html","","KT.ERD.9","erd series,cabinets,products,product","Koldtech Euro Refrigerated Display Cabinet. New profile curved refrigerated display in stainless steel finish with adjustable electronic thermostat....");
c++; item[c]=new Array("kt_sqrcd_9.html","","KT.SQRCD.9","sqrcd series,900mm wide x 729mm x 1358mm high,cabinets,refrigerated food cabinets,cold displays, display cases,cake display,products,product","Koldtech Square Glass Refrigerated Display Cabinet. Uniquely designed gentle air circulation above each shelf. Cold is ducted throughout the cabinet and falls gentle onto the product reducing potential for product dry out. Product Dimension : 900 x 729 x 1358 mm....");
c++; item[c]=new Array("kt_sqrcd_12.html","","KT.SQRCD.12","sqrcd series,1200mm wide or long x 729mm x 1358mm high,cabinets,refrigerated food cabinets,cold displays, display cases,cake display,products,product","Koldtech Square Glass Refrigerated Display Cabinet. Uniquely designed gentle air circulation above each shelf. Cold is ducted throughout the cabinet and falls gentle onto the product reducing potential for product dry out. Product Dimension : 1200 x 729 x 1358 mm....");
c++; item[c]=new Array("kt_sqrcd_15.html","","KT.SQRCD.15","sqrcd series,1500mm wide or long x 729mm x 1358mm high,cabinets,refrigerated food cabinets,cold displays, display cases,cake display,products,product","Koldtech Square Glass Refrigerated Display Cabinet. Uniquely designed gentle air circulation above each shelf. Cold is ducted throughout the cabinet and falls gentle onto the product reducing potential for product dry out. Product Dimension : 1500 x 729 x 1358 mm....");
c++; item[c]=new Array("kt_sqrcd_18.html","","KT.SQRCD.18","sqrcd series,1800mm wide or long x 729mm x 1358mm high,cabinets,refrigerated food cabinets,cold displays, display cases,cake display,products,product","Koldtech Square Glass Refrigerated Display Cabinet. Uniquely designed gentle air circulation above each shelf. Cold is ducted throughout the cabinet and falls gentle onto the product reducing potential for product dry out. Product Dimension : 1800 x 729 x 1358 mm....");
c++; item[c]=new Array("kt_sqrcd_20.html","","KT.SQRCD.20","sqrcd series,2000mm wide or long x 729mm x 1358mm high,cabinets,refrigerated food cabinets,cold displays, display cases,cake display,products,product","Koldtech Square Glass Refrigerated Display Cabinet. Uniquely designed gentle air circulation above each shelf. Cold is ducted throughout the cabinet and falls gentle onto the product reducing potential for product dry out. Product Dimension : 2000 x 729 x 1358 mm....");
c++; item[c]=new Array("kt_rcd_9.html","","KT.RCD.9","rcd series,900mm wide or long x 760mm x 1290mm high,cabinets,refrigerated food cabinets,cold displays, display cases,cake display,curve,products,product","Koldtech Curved Glass Refrigerated Display Cabinet. Rated to operate at ambient temperatures up to 32 degree Celsius. Glass is guaranteed to remain free of condensation at up tp 70% relative humidity. Product Dimension : 900 x 760 x 1290 mm....");
c++; item[c]=new Array("kt_rcd_12.html","","KT.RCD.12","rcd series,1200mm wide or long x 760mm x 1290mm high,cabinets,refrigerated food cabinets,cold displays, display cases,cake display,curve,products,product","Koldtech Curved Glass Refrigerated Display Cabinet. Rated to operate at ambient temperatures up to 32 degree Celsius. Glass is guaranteed to remain free of condensation at up tp 70% relative humidity. Product Dimension : 1200 x 760 x 1290 mm....");
c++; item[c]=new Array("kt_rcd_15.html","","KT.RCD.15","rcd series,1500mm wide or long x 760mm x 1290mm high,cabinets,refrigerated food cabinets,cold displays, display cases,cake display,curve,products,product","Koldtech Curved Glass Refrigerated Display Cabinet. Rated to operate at ambient temperatures up to 32 degree Celsius. Glass is guaranteed to remain free of condensation at up tp 70% relative humidity. Product Dimension : 1500 x 760 x 1290 mm....");
c++; item[c]=new Array("kt_rcd_18.html","","KT.RCD.18","rcd series,1800mm wide or long x 760mm x 1290mm high,cabinets,refrigerated food cabinets,cold displays, display cases,cake display,curve,products,product","Koldtech Curved Glass Refrigerated Display Cabinet. Rated to operate at ambient temperatures up to 32 degree Celsius. Glass is guaranteed to remain free of condensation at up tp 70% relative humidity. Product Dimension : 1800 x 760 x 1290 mm....");
c++; item[c]=new Array("kt_rcd_20.html","","KT.RCD.20","rcd series,2000mm wide or long x 760mm x 1290mm high,cabinets,refrigerated food cabinets,cold displays, display cases,cake display,curve,products,product","Koldtech Curved Glass Refrigerated Display Cabinet. Rated to operate at ambient temperatures up to 32 degree Celsius. Glass is guaranteed to remain free of condensation at up tp 70% relative humidity. Product Dimension : 2000 x 760 x 1290 mm....");

c++; item[c]=new Array("home_refrigerated_pizza_preparation_benches.html","","Refrigerated Pizza Preparation Bench","pm series,kt.pm.914,kt.pm.1330,kt.pm.1885,kt.pm.2286,make-up benches,makeup,make up,prep fridge,table,countertops,counter top,products,product","Koldtech Refrigerated Pizza Preparation Bench. Angled GN 1/3 sized container well with blown cold air over and under ingredient parts. Undercounter storage refrigerator with two plastic coated wire shelves per door and internal lighting....");
c++; item[c]=new Array("kt_pm_914.html","","KT.PM.914","pm series,914mm,914 mm long,make-up benches,makeup,make up,prep fridge,table,countertops,counter top,products,product","Koldtech Refrigerated Pizza Preparation Bench. 4 x GN 1/3 pans. Has 1 door - 2 fridge shelves....");
c++; item[c]=new Array("kt_pm_1330.html","","KT.PM.1330","pm series,1330mm,1330 mm long,make-up benches,makeup,make up,prep fridge,table,countertops,counter top,products,product","Koldtech Refrigerated Pizza Preparation Bench. 7 x GN 1/3 pans. Has 2 door - 4 fridge shelves....");
c++; item[c]=new Array("kt_pm_1885.html","","KT.PM.1885","pm series,1885mm,1885 mm long,make-up benches,makeup,make up,prep fridge,table,countertops,counter top,products,product","Koldtech Refrigerated Pizza Preparation Bench. 10 x GN 1/3 pans. Has 3 door - 6 fridge shelves....");
c++; item[c]=new Array("kt_pm_2286.html","","KT.PM.2286","pm series,2286mm,2286 mm long,make-up benches,makeup,make up,prep fridge,table,countertops,counter top,products,product","Koldtech Refrigerated Pizza Preparation Bench. 12 x GN 1/3 pans. Has 4 door - 8 fridge shelves....");

c++; item[c]=new Array("home_sandwich_preparation_benches.html","","Refrigerated Sandwich Preparation Bench","sqsm series,kt.sqsm.914,kt.sqsm.1330,kt.sqsm.1885,kt.sqsm.1885,kt.sqsm.2286,prep fridge,preparation table fridge,sandwiches counter,products,product","Koldtech Refrigerated Sandwich Preparation Bench. Refrigerated GN 1/3 size service well with cold air blowing above and below pans. Adjustable micro-processor control with digital temperature display. Has a unique full-length back mounted evaporator coil....");
c++; item[c]=new Array("kt_sqsm_914.html","","KT.SQSM.914","sqsm series,prep fridge,preparation table fridge,sandwiches counter,products,product","Koldtech Refrigerated Sandwich Preparation Bench. Rated to operate at ambient temperature up to 35 degree Celsius. No Drainage connection required. Supplied with 4 x 100mm deep 1/3 gastronorm pans suit and pan support bars.");
c++; item[c]=new Array("kt_sqsm_1330.html","","KT.SQSM.1330","sqsm series,prep fridge,preparation table fridge,sandwiches counter,products,product","Koldtech Refrigerated Sandwich Preparation Bench. Rated to operate at ambient temperature up to 35 degree Celsius. No Drainage connection required. Supplied with 7 x 100mm deep 1/3 gastronorm pans suit and pan support bars.");
c++; item[c]=new Array("kt_sqsm_1885.html","","KT.SQSM.1885","sqsm series,prep fridge,preparation table fridge,sandwiches counter,products,product","Koldtech Refrigerated Sandwich Preparation Bench. Rated to operate at ambient temperature up to 35 degree Celsius. No Drainage connection required. Supplied with 10 x 100mm deep 1/3 gastronorm pans suit and pan support bars.");
c++; item[c]=new Array("kt_sqsm_2286.html","","KT.SQSM.2286","sqsm series,prep fridge,preparation table fridge,sandwiches counter,products,product","Koldtech Refrigerated Sandwich Preparation Bench. Rated to operate at ambient temperature up to 35 degree Celsius. No Drainage connection required. Supplied with 12 x 100mm deep 1/3 gastronorm pans suit and pan support bars.");

//c++; item[c]=new Array("","","","","");
//this searches s in ITEM. s holds the word/s entered by the user in the search textbox

var win;
var wd="";
var num = 0;
var ctr = 0;


function searchkoldtech(s,n) {


	num=n;
	wd = s;
	win = window.open("search_koldtech.htm","_self","scrollbars,resizable,toolbar,menubar,addressbar");
	win.document.write("<html><head><title>Stoddart Metal Fabricator - Search</title><script language = javascript src='searchkoldtech.js'></script></head>");

	wrd = s;
	s = wrd.toLowerCase()

	//set up the upper part/heading of the search page
	win.document.write("<body bgcolor='#FFFFFF' text='BLACK' border='1' link='BLUE' vlink='BLUE' alink='BLUE'>");
	
	win.document.write("<div align='center'><table border='1' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='640' bordercolorlight='#808080' bordercolordark='#808080' bordercolor='#0066CC' background='12_Web%20Images/backgrnd.JPG' height='71'>");
	win.document.write("<tr><td bordercolorlight='#808080' bordercolordark='#808080' bordercolor='#0066CC'><p align='left'>&nbsp; ");
	win.document.write("<span style='letter-spacing: 1pt'>&nbsp;</span><span style='letter-spacing: 1.5pt; text-decoration:underline'><font color='#FFFFFF' size='6' face='Tahoma'>KOLDTECH</font></span><br>&nbsp;&nbsp;");
	win.document.write("<font color='#FFFFFF' size='2' face='Tahoma'>The Technology of Excellence</font></td>");

	win.document.write("<td style='font-family: Tahoma; font-size: 10pt'><br><p align='right'><form name= 'frm' method=GET action='javascript:void(0)' onsubmit='searchkoldtech(text1.value,1); return false;'>");
	temp="<input type='text' name='text1' maxlength='70' value='" + wrd + "' style='font-family: Tahoma; font-size: 9pt' size='30'>&nbsp;"
	win.document.write(temp);
	win.document.write("<input type='submit' value='Search'>&nbsp;&nbsp;</form></td></tr></table></div>");

	wrd = s;
	s = wrd.toLowerCase()
	total=0;
	
	txt1 = s.split(" "); //list all the words found in s, delimeter used was space

	txt = new Array(); //list all nonspace space words found in s
	fnd = new Array(); 
	match = new Array();
	total=0;

	//remove all space strings in txt1 and store it in txt
	var j;
	ctr = 0;
	for(j=0 ; j<txt1.length; j++)
	{
				if (txt1[j].length > 0 )
				{
					txt[ctr] = txt1[j];
					ctr = Math.abs(ctr) + 1;
				}
	}


	for (i = 0; i < item.length; i++) {
		fnd[i] = new Array();
		order = new Array(0, 4, 2, 3); //0filename, 4description, 2title, 3keywords
		for (k = 0; k < txt.length; k++)
		{
			fnd[i][k] = 0;			
			for (j = 0; j < order.length; j++)
				if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
					fnd[i][k] += (j+1);
		}
	}
	
	for (i = 0; i < fnd.length; i++) { //i is the row location in fnd array that qualifies in the search
		n = 0; 
		w = -1;
		for (j = 0;j < txt.length; j++)
			if (fnd[i][j] >= 1) 
				n++;
				
		if (n == txt.length) 
				{match[total]=i; total += 1;}
	}	
	
	var pages = Math.ceil(total/10);

	x = (num *10) - 10;

	win.document.write("<center><table border='0' cellspacing='10' width='640' bgcolor='#FFFFFF' bordercolorlight='#808080' bordercolordark='#808080' bordercolor='#808080' style='border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 0px'>");
	win.document.write("<tr><td style='font-family: Tahoma' bordercolorlight='#FFFFFF' bordercolordark='#FFFFFF' bordercolor='#FFFFFF'><font size='3'><b>");

	if (total>0)
	{

		//displays all search results
		if (num == pages)
		{
			st = x + 1;
			win.document.write("Search Result : </b><i>" + st.toString() + " to " + total.toString() + " of&nbsp;&nbsp;" + total + " for <b>" + wrd + "</i></b></font></td></tr>"); 
	
			for (i=x;i<=(total-1);i++)
				show(match[i]);
			win.document.write("</table>"); 
		}	
		else
		{
			st = x + 1;
			en = x + 10;
			win.document.write("Search Result : </b><i>" + st.toString() + " to " + en.toString() + " of&nbsp;&nbsp;" + total + " for <b>" + wrd + "</i></b></td></tr>"); 

			for (i=x;i<=(x+9);i++)
				show(match[i]);
			win.document.write("</table>"); 
		}		
	//	win.document.write("<br>");	
		var num1 = 0;
		var num2 = 0;

		//displays page number at the bottom of the page
		if (pages>1)
		{
			if (pages>15)
			{
				if (num > 7)
				{
					num1 = num - 7;
					num2 = Math.abs(num) + 7;
					if (num2 > pages)
						num2 = pages;
				}
				else
				{
					num1 = 1;
					num2 = 15;
				}
			}
			else
			{
				num1 = 1;
				num2 = pages;
			}
		
	
			win.document.write("<table border='1' cellspacing='10' width='640' bgcolor='#FFFFFF' bordercolorlight='#808080' bordercolordark='#808080' bordercolor='#808080' style='border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 0px'>");

			win.document.write("<tr><td bordercolorlight='#FFFFFF' bordercolordark='#FFFFFF' bordercolor='#FFFFFF'><center><table><tr><td style='font-family: Tahoma'><font size='3'>Page:</font>&nbsp;&nbsp;</td>");
	
			if (num > 1)
			{
				ii = num - 1;
				t = "<td style=\"cursor: 'hand';font-family: Tahoma\" onclick=\"searchkoldtech('" + wrd + "','" + ii.toString() + "');\">&nbsp;<u>" ;
				t += "<font size='3' color='#0080FF'><b>Previous</b></font></u>&nbsp;</td>";
				win.document.write(t);
			}

			for(i=num1;i<=num2;i++)
			{
				if (i==num)
				{
					t = "<td style='font-family: Tahoma'>&nbsp;" 		
					t += "<font color='BLUE' size='3'><b>"+ i.toString() + "</b></font>&nbsp;</td>";
				}
				else
				{
					t = "<td style=\"cursor: 'hand';font-family: Tahoma\" onclick=\"searchkoldtech('" + wrd + "','" + i.toString() + "');\">&nbsp;<u>" ;
					t += "<font size='3'>" +  i.toString() + "</font></u>&nbsp;</td>";
				}
				win.document.write(t);
			}

			if (num < pages)
			{
				ii = Math.abs(num) + 1;
				t = "<td style=\"cursor: 'hand';font-family: Tahoma\" onclick=\"searchkoldtech('" + wrd + "','" + ii.toString() + "');\">&nbsp;<u>" ;
				t += "<font size='3' color='#0080FF'><b>Next</b></font></u>&nbsp;</td>";
				win.document.write(t);
			}

			win.document.write("</tr></table></center></td></tr></table>");
		}
	}
	else
	{
		//will be executed if no results were found from the search operation....
		win.document.write("Search Result : </b><i>0 result found" + " for <b>" + wrd + "</i></b></font></td></tr>");
		win.document.write("<tr><td style=\"valign: 'middle'\" bgcolor='#FFFFFF' bordercolorlight='#FFFFFF' bordercolordark='#FFFFFF' bordercolor='#FFFFFF' ></td></tr>");
		win.document.write("<tr><td style=\"valign: 'middle'\" bgcolor='#FFFFFF' bordercolorlight='#FFFFFF' bordercolordark='#FFFFFF' bordercolor='#FFFFFF' ><center><h2>Sorry.. No Results found!</h2></center></td></tr>");
		win.document.write("<tr><td bgcolor='#FFFFFF' bordercolorlight='#FFFFFF' bordercolordark='#FFFFFF' bordercolor='#FFFFFF' ><center><h4>Suggestion : Please make sure that all words are spelled correctly.<h2></center></td></tr></table>")
	}		
	win.document.write("<table border='0' cellspacing='10' width='640' bgcolor='#FFFFFF' bordercolorlight='#808080' bordercolordark='#808080' bordercolor='#808080' style='border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 0px'>");
	win.document.write("<tr><td><center><form name= 'frm' method=GET action='javascript:void(0)' onsubmit='searchkoldtech(text1.value,1); return false;'>");
	temp="<input type='text' name='text1' maxlength='70' value='" + wrd + "' style='font-family: Tahoma; font-size: 10pt' size='30'>&nbsp;"
	win.document.write(temp);
	win.document.write("<input type='submit' value='Search'></form></center></td></tr></table>");

	win.document.write("<div align='center'><table border='1' cellpadding='0' style='border-collapse: collapse' width='640' bordercolorlight='#808080' bordercolordark='#808080' bordercolor='#0066CC' height='25' background='12_Web%20Images/backgrnd.JPG'>");
	win.document.write("<tr><td bordercolorlight='#808080' bordercolordark='#808080' bordercolor='#00B2AA'><p align='right'><b><font color='#000000' face='Tahoma' style='font-size: 9pt'>");
	win.document.write("<a style='color: #000000' href='index.html'><font color='#000000'>KOLDTECH</font></a></font>&nbsp;&nbsp;</b></td></tr></table></div>");

	win.document.write("<div align='center'>");
	win.document.write("<table border='1' cellpadding='0' style='border-collapse: collapse' width='640' bgcolor='#FFFFFF' bordercolorlight='#FFFFFF' bordercolordark='#FFFFFF'>");
	win.document.write("<tr height='20'><td width='102' align='center'>");
	win.document.write("<a title='woodsonsales.com.au' href='http://www.woodsonsales.com.au/'>");
	win.document.write("<img border='0' src='12_Web%20Images/s_w.gif' alt='www.woodsonsales.com.au' width='70' height='22'></a></td>");
	win.document.write("<td width='102' align='center'>");
	win.document.write("<a title='www.culinaire.net.au' href='http://www.culinaire.net.au/'>");
	win.document.write("<img border='0' src='12_Web%20Images/s_cu.gif' alt='www.culinaire.net.au' width='70' height='22'></a></td>");
	win.document.write("<td width='102' align='center'>");
	win.document.write("<a title='www.axisshelving.com' href='http://www.axisshelving.com/'>");
	win.document.write("<img border='0' src='12_Web%20Images/s_ax.gif' alt='www.axisshelving.com' width='70' height='22'></a></td>");
	win.document.write("<td width='102' align='center'>");
	win.document.write("<a title='www.redeclean.com.au' href='http://www.redeclean.com.au/'>");
	win.document.write("<img border='0' src='12_Web%20Images/s_re.gif' alt='www.redeclean.com.au' width='70' height='22'></a></td>");
	win.document.write("<td width='102' align='center'>");
	win.document.write("<a title='www.simplystainless.com' href='http://www.simplystainless.com/'>");
	win.document.write("<img border='0' src='12_Web%20Images/s_ss.gif' alt='www.simplystainless.com' width='70' height='22'></a></td>");
	win.document.write("<td width='102' align='center'");
	win.document.write("<a title='www.koldtech.com.au' href='http://www.koldtech.com.au/'>");
	win.document.write("<img border='0' src='12_Web%20Images/s_kt.gif' alt='www.koldtech.com.au' width='70' height='22'></a></td>");
	win.document.write("<td width='103' align='center'");
	win.document.write("<a title='www.stoddart.com.au/haltonventilationhoods.html' href='http://www.stoddart.com.au/haltonventilationhoods.html'>");
	win.document.write("<img border='0' src='12_Web%20Images/s_ha.gif' alt='www.stoddart.com.au/haltonventilationhoods.html' width='70' height='22'></a></td>");
	win.document.write("<td width='90' align='center'>");
	win.document.write("<a title='www.ozwinebars.com' href='http://www.ozwinebars.com/'>");
	win.document.write("<img border='0' src='12_Web%20Images/oz1.GIF' alt='www.ozwinebars.com' width='70' height='22' style='border: 1px solid #C0C0C0; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px'></a></td>");
	win.document.write("</tr></table></div>");
	win.document.write("<center><font face='Microsoft Sans Serif' style='font-size: 7pt' color='#666666'>");
	win.document.write("© Tom Stoddart Pty Ltd. 2006. All data considered correct at time of publication. Constant research and development means information may change.</font></td>");
	win.document.write("</font>&nbsp;</center>");
	win.document.close();
}

function show(lnk)
{
	link = item[lnk][1] + item[lnk][0]; //item[lnk][1] refers to the path name and item[lnk][0] is the file name
		line = "<tr><td bgcolor='#FFFFFF' bordercolorlight='#FFFFFF' bordercolordark='#FFFFFF' bordercolor='#FFFFFF' style='font-family: Tahoma'><font size='3' color='BLUE'><b><a href='"+link+"'>"+item[lnk][2]+"</a></font><br></b><font size='2'>"; 
	line += item[lnk][4] + "</font></td></tr>";
	win.document.write(line);

	return 1;
}
