/******************* File Comments **************************
Filename:		combo.js
************************************************************/

function Fillcat1(cbocat1, cbocat2)
{
	var def_cat1;
	var def_cat1_temp;
	cbocat1.options.length=0;
	
	for(i=0;i<cat1String.split("|").length;i++)
	{
		cat1_temp = cat1String.split("|")[i];
		cat1=cat1_temp.split('#');
		def_cat1=cat1String.split("|")[i];
		def_cat1_temp=def_cat1.split("#");
		cbocat1.options[i+1]=new Option(def_cat1_temp[0],def_cat1_temp[1],false,false);
		cbocat1.options[0]=new Option("Select Category","-1",true,true);
	}	
}


function Fillcat2(cbocat1, cbocat2)
{
	cbocat2.options.length=0;
	cbocat2.options[0]=new Option("Select","-1",true,true);
	
	if (cbocat1.selectedIndex != 0)
	{
		for(i=0;i<cat2Array[cbocat1.selectedIndex-1].split("|").length;i++)
		{
			cat2 = cat2Array[cbocat1.selectedIndex-1].split("|")[i];
			cat2=cat2.split("#");
			cbocat2.options[i+1]=new Option(cat2[0],cat2[2],false,false);
		}
	}
}
