
function fillCategory(){ 
 // this function is used to fill the category list on load
addOption(document.frmUser.Category, "Internet", "Internet", "");
addOption(document.frmUser.Category, "News Media", "News Media", "");
addOption(document.frmUser.Category, "Search Engine", "Search Engine", "");
addOption(document.frmUser.Category, "Others", "Others", "");
addOption(document.frmUser.Category, "Tradewize Subscribers", "Tradewize Subscribers", "");
}

function SelectSubCat(){
// ON selection of category this function will work

if(document.frmUser.Category.value == 'Tradewize Subscribers'){
	(document.frmUser.SubCat.disabled=false);
}
else (document.frmUser.SubCat.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);
}
