	function BuildChildList(formName, parentCatLst, childCatLst)
	{
		var parentControl = eval('document.'+formName+'.'+parentCatLst);
		var childControl = eval('document.'+formName+'.'+childCatLst);
		Category = new Array('- Category -', 'API', 'Bulk Pellets', 'Formulations');
		Category[0] = new Array('- Sub Category -');
		Category[1] = new Array('- Sub Category -');
		Category[2] = new Array('- Sub Category -', 'Bulk Pellets');
		Category[3] = new Array('- Sub Category -', '2nd generation cephalosporin', 'Alpha1A-antagonist', 'Angiotensin II antagonist', 'Anthelmintic', 'Anti-Histamine', 'Anti-tussive', 'Antibacterials', 'Antibiotics', 'Antidepressant & Anxiolytic', 'Antidiabetic', 'Antifungal', 'Antimicrobial agent', 'Antiprotozoal', 'Antiscabies', 'Antispasmodic', 'Antiulcerants', 'Bronchodilator', 'Calcium channel antagonist (Combination)', 'Calcium Channel Antagonist (Plain)', 'Cardiovascular drug', 'Cephalosporin', 'Clobetasol, antibiotic and antifungal', 'CNS Drugs', 'Corticosteroid', 'CVS', 'Drugs used in osteopho', 'Electrolyte Replenisher', 'Elemental Zinc', 'Expectorant', 'Fluoroquinolone', 'Gastroprokinetic', 'GI Product', 'H2 receptor antagonist', 'Hematinic Combinations', 'Lipid lowering agent', 'Macrolide Antibiotic', 'Misc.', 'Mucolytic Expectorant', 'Non-steroidal anti-inflammatory agent', 'Opioid analgesics', 'Parenterals', 'Platelet Aggregation Inhibitor', 'Potassium-sparing diuretics with other diuretics', 'Proton Pump Inhibitor', 'Second Generation Cephalosporin', 'Third Generation antibiotic', 'Third Generation Cephalosporin', 'Topical preparation of antibiotic and steroid', 'Topical preparations of  antifungal with corticosteroids', 'Vitamins', 'Vitamins & Minerals');
		CategoryVal = new Array('', 'API', 'Bulk Pellets', 'Formulations');
		CategoryVal[0] = new Array('');
		CategoryVal[1] = new Array('');
		CategoryVal[2] = new Array('', '15');
		CategoryVal[3] = new Array('', '79', '85', '58', '78', '21', '56', '42', '22', '43', '23', '73', '76', '44', '71', '45', '46', '57', '62', '61', '47', '80', '83', '20', '70', '26', '29', '48', '59', '27', '69', '49', '24', '64', '18', '50', '65', '28', '51', '63', '84', '52', '53', '75', '54', '60', '55', '66', '74', '81', '68', '16');
		for(i=childControl.length;i>=1;i--)
		{
			childControl.options[i] = null;
		}
		
		if(parentControl.selectedIndex != null)
		{
			for(i=0 ; i < Category[parentControl.selectedIndex].length;i++)
			{
				var key = Category[parentControl.selectedIndex][i];
				var value = CategoryVal[parentControl.selectedIndex][i];
				if(i==0)
				{
					value = '';
				}
				childControl.options[i] = new Option(key,value);
			}
		}
	}