
function fillCategory(){ 
addOption(document.myform.Type_of_Industry, "--Select--", "--Select--", "");
addOption(document.myform.Type_of_Industry, "Banking/Finance", "Banking/Finance", "");
addOption(document.myform.Type_of_Industry, "Manufacturing", "Manufacturing", "");
addOption(document.myform.Type_of_Industry, "Telecommunications", "Telecommunications", "");
addOption(document.myform.Type_of_Industry, "Government", "Government", "");
addOption(document.myform.Type_of_Industry, "Education", "Education", "");
addOption(document.myform.Type_of_Industry, "IT/ITES", "IT/ITES", "");
addOption(document.myform.Type_of_Industry, "Others", "Others", "");
}

function SelectSubCat(){


if(document.myform.Type_of_Industry.value == 'Others'){
	document.getElementById("Others").disabled = false;

}

else
{document.getElementById("Others").disabled = true;
}
}
///////////////// 

function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		//selectbox.options.remove(i);
		selectbox.remove(i);
	}
}


function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;

	selectbox.options.add(optn);
}


