//IncludeJavaScript('Category.js');
document.write('<script type="text/javascript" src="/catsubcatjs/Category.js"></script>');
document.write('<script type="text/javascript" src="/catsubcatjs/SubCategory.js"></script>');
//document.write('<script type="text/javascript" src="SubCategory1.js"></script>');
document.write('<script type="text/javascript" src="/catsubcatjs/Specs.js"></script>');
function init(fname) {
//	var theform = document.f1;
	var theform = fname;
	//var theform2 = document.f2;
	listSubCategory.init(theform);
	listSubCategory1.init(theform);
	}
function printCategory(Category,selected){
	var ret = "";
	for(description in Category) {  // print out the bands with descriptions
		if (description == selected){
			ret += "<OPTION value='"+description+"' selected>"+Category[description]+"</OPTION>\n";
		}
		else {
			ret += "<OPTION value='"+description+"'>"+Category[description]+"</OPTION>\n";
		}
	}
	document.writeln(ret);
}
function showSelected(frm,selVal){
	alert(document.f1.E1.options.length);
	for(i=0; i<frm.length; i++){
		//alert(i);
		//alert(frm.options[i].value);
	}
	//frm.options[1].selected = true;
}