function SelectSubCat(){
	removeAllOptions(document.drop_list.SubCat);

	if(document.drop_list.Category.value == ''){
		addOption(document.drop_list.SubCat, "", "Product Name", "");
	}

	if(document.drop_list.Category.value == 'VoIP'){
		addOption(document.drop_list.SubCat,"VoiceXchange", "VoiceXchange");
		addOption(document.drop_list.SubCat,"VoiceXchange Pro", "VoiceXchange Pro");
	}

	if(document.drop_list.Category.value == 'UTM'){
		addOption(document.drop_list.SubCat,"i1000", "i1000");
		addOption(document.drop_list.SubCat,"i1250", "i1250");
		addOption(document.drop_list.SubCat,"i1250e", "i1250e");
		addOption(document.drop_list.SubCat,"i1500", "i1500");
		addOption(document.drop_list.SubCat,"i1500e", "i1500e");
		addOption(document.drop_list.SubCat,"i5000", "i5000");
		addOption(document.drop_list.SubCat,"i5000e", "i5000e");
		addOption(document.drop_list.SubCat,"i5400", "i5400");
	}
}

function Selecthelpcat(){
	removeAllOptions(document.menu_list.helpcat1);
	removeAllOptions(document.menu_list.helpcat2);

	if(document.menu_list.help_Category.value == ''){
		addOption(document.menu_list.helpcat1, "", "Product Name", "");
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
	}

	if(document.menu_list.help_Category.value == 'VoIP'){
		addOption(document.menu_list.helpcat1,"", "-- No. of users/phones --");
		addOption(document.menu_list.helpcat1,"< 8", "< 8 ");
		addOption(document.menu_list.helpcat1,"8 to 16", "8 to 16");
		addOption(document.menu_list.helpcat1,"16 to 32", "16 to 32");
		addOption(document.menu_list.helpcat1,"32 to 64", "32 to 64");
		addOption(document.menu_list.helpcat1,"64 to 128", "64 to 128");
		addOption(document.menu_list.helpcat1,"128 to 256", "128 to 256");
		addOption(document.menu_list.helpcat1,"256 to 512", "256 to 512");
		addOption(document.menu_list.helpcat1,"512 to 1024", "512 to 1024");
		addOption(document.menu_list.helpcat1,"1024", "> 1024");
	}

	if(document.menu_list.help_Category.value == 'VPN'){
		addOption(document.menu_list.helpcat1, "", "------- Requirement Size -------", "");
		addOption(document.menu_list.helpcat1,"Small Business", "Small Business");
		addOption(document.menu_list.helpcat1,"Medium Business", "Medium Business");
		addOption(document.menu_list.helpcat1,"Large Enterprize", "Large Enterprize");
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
	}
}

function Selecthelpcat1(){
	removeAllOptions(document.menu_list.helpcat2);

	if(document.menu_list.helpcat1.value == ''){
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
	}

	if(document.menu_list.helpcat1.value == 'Small Business'){
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
		addOption(document.menu_list.helpcat2,"Basic VPN", "Basic VPN ");
		addOption(document.menu_list.helpcat2,"Feature Rich VPN with distributed firewall", "Feature Rich VPN with distributed firewall");
	}

	if(document.menu_list.helpcat1.value == 'Medium Business'){
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
		addOption(document.menu_list.helpcat2,"Basic VPN", "Basic VPN ");
		addOption(document.menu_list.helpcat2,"Feature Rich VPN with distributed firewall", "Feature Rich VPN with distributed firewall");
	}

	if(document.menu_list.helpcat1.value == 'Large Enterprize'){
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
		addOption(document.menu_list.helpcat2,"Basic VPN", "Basic VPN ");
		addOption(document.menu_list.helpcat2,"Feature Rich VPN with distributed firewall", "Feature Rich VPN with distributed firewall");
	}

	if(document.menu_list.helpcat1.value == '< 8'){
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
		addOption(document.menu_list.helpcat2,"Basic VoIP with one voice conference room", "Basic VoIP with one voice conference room");
		addOption(document.menu_list.helpcat2,"Basic VoIP with Video Calling", "Basic VoIP with Video Calling");
		addOption(document.menu_list.helpcat2,"Feature Rich VoIP", "Feature Rich VoIP (eg: VoiceMail, Multiple Voice Conference Room)");
		addOption(document.menu_list.helpcat2,"Enterprize Edition with redundancy", "Enterprize Edition with redundancy");
	}

	if(document.menu_list.helpcat1.value == '8 to 16'){
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
		addOption(document.menu_list.helpcat2,"Basic VoIP with one voice conference room", "Basic VoIP with one voice conference room");
		addOption(document.menu_list.helpcat2,"Basic VoIP with Video Calling", "Basic VoIP with Video Calling");
		addOption(document.menu_list.helpcat2,"Feature Rich VoIP", "Feature Rich VoIP (eg: VoiceMail, Multiple Voice Conference Room)");
		addOption(document.menu_list.helpcat2,"Enterprize Edition with redundancy", "Enterprize Edition with redundancy");
	}

	if(document.menu_list.helpcat1.value == '16 to 32'){
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
		addOption(document.menu_list.helpcat2,"Basic VoIP with one voice conference room", "Basic VoIP with one voice conference room");
		addOption(document.menu_list.helpcat2,"Basic VoIP with Video Calling", "Basic VoIP with Video Calling");
		addOption(document.menu_list.helpcat2,"Feature Rich VoIP", "Feature Rich VoIP (eg: VoiceMail, Multiple Voice Conference Room)");
		addOption(document.menu_list.helpcat2,"Enterprize Edition with redundancy", "Enterprize Edition with redundancy");
	}

	if(document.menu_list.helpcat1.value == '32 to 64'){
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
		addOption(document.menu_list.helpcat2,"Basic VoIP with one voice conference room", "Basic VoIP with one voice conference room");
		addOption(document.menu_list.helpcat2,"Basic VoIP with Video Calling", "Basic VoIP with Video Calling");
		addOption(document.menu_list.helpcat2,"Feature Rich VoIP", "Feature Rich VoIP (eg: VoiceMail, Multiple Voice Conference Room)");
		addOption(document.menu_list.helpcat2,"Enterprize Edition with redundancy", "Enterprize Edition with redundancy");
	}

	if(document.menu_list.helpcat1.value == '64 to 128'){
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
		addOption(document.menu_list.helpcat2,"Basic VoIP with one voice conference room", "Basic VoIP with one voice conference room");
		addOption(document.menu_list.helpcat2,"Basic VoIP with Video Calling", "Basic VoIP with Video Calling");
		addOption(document.menu_list.helpcat2,"Feature Rich VoIP", "Feature Rich VoIP (eg: VoiceMail, Multiple Voice Conference Room)");
		addOption(document.menu_list.helpcat2,"Enterprize Edition with redundancy", "Enterprize Edition with redundancy");
	}

	if(document.menu_list.helpcat1.value == '128 to 256'){
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
		addOption(document.menu_list.helpcat2,"Basic VoIP with one voice conference room", "Basic VoIP with one voice conference room");
		addOption(document.menu_list.helpcat2,"Basic VoIP with Video Calling", "Basic VoIP with Video Calling");
		addOption(document.menu_list.helpcat2,"Feature Rich VoIP", "Feature Rich VoIP (eg: VoiceMail, Multiple Voice Conference Room)");
		addOption(document.menu_list.helpcat2,"Enterprize Edition with redundancy", "Enterprize Edition with redundancy");
	}

	if(document.menu_list.helpcat1.value == '256 to 512'){
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
		addOption(document.menu_list.helpcat2,"Basic VoIP with one voice conference room", "Basic VoIP with one voice conference room");
		addOption(document.menu_list.helpcat2,"Basic VoIP with Video Calling", "Basic VoIP with Video Calling");
		addOption(document.menu_list.helpcat2,"Feature Rich VoIP", "Feature Rich VoIP (eg: VoiceMail, Multiple Voice Conference Room)");
		addOption(document.menu_list.helpcat2,"Enterprize Edition with redundancy", "Enterprize Edition with redundancy");
	}

	if(document.menu_list.helpcat1.value == '512 to 1024'){
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
		addOption(document.menu_list.helpcat2,"Basic VoIP with one voice conference room", "Basic VoIP with one voice conference room");
		addOption(document.menu_list.helpcat2,"Basic VoIP with Video Calling", "Basic VoIP with Video Calling");
		addOption(document.menu_list.helpcat2,"Feature Rich VoIP", "Feature Rich VoIP (eg: VoiceMail, Multiple Voice Conference Room)");
		addOption(document.menu_list.helpcat2,"Enterprize Edition with redundancy", "Enterprize Edition with redundancy");
	}

	if(document.menu_list.helpcat1.value == '1024'){
		addOption(document.menu_list.helpcat2, "", "Product Features", "");
		addOption(document.menu_list.helpcat2,"Basic VoIP with one voice conference room", "Basic VoIP with one voice conference room");
		addOption(document.menu_list.helpcat2,"Basic VoIP with Video Calling", "Basic VoIP with Video Calling");
		addOption(document.menu_list.helpcat2,"Feature Rich VoIP", "Feature Rich VoIP (eg: VoiceMail, Multiple Voice Conference Room)");
		addOption(document.menu_list.helpcat2,"Enterprize Edition with redundancy", "Enterprize Edition with redundancy");
	}
}

function removeAllOptions(selectbox) {
	var i;
	for(i=selectbox.options.length-1;i>=0;i--) {
		selectbox.remove(i);
	}
}

function addOption(selectbox, value, text ) {
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;
	selectbox.options.add(optn);
}
