category= new Array(); 
category[0]= "SELECT CATEGORY";
category[1]= "LAUNDERETTE APPLICATION PRODUCTS";
category[2]= "TEXTILE AUXILLARIES";
category[3]= "ANCILLARY PRODUCTS";


product= new Array(); 
product[0]= new Array();
product[0][0]= "KETSOL-SR      (High pH Detergent)";
product[0][1]= "KETSOL-KR      (Low pH Detergent)";
product[0][2]= "KETSOL-DG      (Degrayer cum Whitener)";
product[0][3]= "EMULSIFIER      (Wetting Agent)";
product[0][4]= "ANTIBACT      (Disinfectant)";
product[0][5]= "BACTINOL      (Disinfectant for Dry Cleaning Process)";
product[0][6]= "ULTRASOFT      (Catonic Non Yellowing Softner)";
product[0][7]= "SCOUREX";
product[0][8]= "SWELLO";

product[1]= new Array();
product[1][0]= "SOILO&KETANOL";
product[1][1]= "SWELLO-SK";
product[1][2]= "MICRO AMINO SILICON";
product[1][3]= "WR-2000";
product[1][4]= "WHITE-R";
product[1][5]= "KETSOL-AN";
product[1][6]= "KETSOL ACC RED&BLUE";
product[1][7]= "KETSOL-OL";
product[1][8]= "SCOUREX-SPL";
product[1][9]= "SCOUREX-SR";
product[1][10]= "BRITEX";
product[1][11]= "CS-100";
product[1][12]= "DYE-O-FIX";
product[1][13]= "ECO ELVEE";
product[1][14]= "SILICON DEFOAMER";
product[1][15]= "ECO-LX";
product[1][16]= "ECO-RE";
product[1][17]= "DYE-O-FIX-NF";
product[1][18]= "SOAPEX";
product[1][19]= "LX-1000";
product[1][20]= "CS-LIQUID";

product[2]= new Array();
product[2][0]= "JOJO GREASE CLEANER";


function f_Category()
{
	li_CatRecCount = (category.length);  
	if(li_CatRecCount<1){li_CatRecCount = 0;}   
	document.Frm_Search.Category.options.length=0;  
	for(li_CatIndex=0;li_CatIndex<li_CatRecCount;li_CatIndex++)  
	{  
	document.Frm_Search.Category.options[li_CatIndex] = new Option(category[li_CatIndex],category[li_CatIndex]);  
	}  
}


function f_ListCat()  
{  
li_Index = document.Frm_Search.Category.selectedIndex;  
if(li_Index==0)  
{  
	document.Frm_Search.Product.options.length=0;  
	document.Frm_Search.Product.options[0] = new Option("SELECT PRODUCT" , ""); 
	document.Frm_Search.Product.options[0].selected = true; 
}  
else  
{  
	li_CatRecCount = (product[li_Index-1].length);  
	if(li_CatRecCount<1){li_CatRecCount = 0;}   
	document.Frm_Search.Product.options.length=0;  
	document.Frm_Search.Product.options[0] = new Option("SELECT PRODUCT" , ""); 
	document.Frm_Search.Product.options[0].selected = true; 

	for(li_CatIndex=0;li_CatIndex<li_CatRecCount;li_CatIndex++)  
	{  
	document.Frm_Search.Product.options[li_CatIndex+1] = new Option(product[li_Index-1][li_CatIndex],product[li_Index-1][li_CatIndex]);  
	}  
}  
} 

function f_Search(ls_Path)
{
	li_CatIndex = document.Frm_Search.Category.selectedIndex;
	li_ProdIndex = document.Frm_Search.Product.selectedIndex;
		if (li_CatIndex==0 || li_ProdIndex==0)
		{		
		alert("Please Select the Category and the Product");	
		}
		else		
		{
			
			var ls_strPage=""			
			if(li_CatIndex==1)
			{
				ls_strPage = ls_Path + "products/launderette/" ;
			}else if(li_CatIndex==2)
			{
				ls_strPage = ls_Path + "products/textiles/" ;
			}else if(li_CatIndex==3)
			{
				ls_strPage = ls_Path + "products/ancillary/" ;
			}
			var ls_Product = document.Frm_Search.Product.options[li_ProdIndex].value.toLowerCase().split("      ("); 
			ls_strPage = ls_strPage + ls_Product[0];
			ls_strPage = ls_strPage + ".htm";
			window.location.href = ls_strPage;
		}
}
