
function fillCategory(){ 
 // this function is used to fill the category list on load

addOption(document.myform.DynList0,"< 50", "< 50", "");
addOption(document.myform.DynList0,"50 - 199", "50 - 199", "");
addOption(document.myform.DynList0,"200 - 499", "200 - 499", "");
addOption(document.myform.DynList0,"500 +", "500 +", "");

addOption(document.myform.DynList1,"< 50", "< 50", "");
addOption(document.myform.DynList1,"50 - 199", "50 - 199", "");
addOption(document.myform.DynList1,"200 - 499", "200 - 499", "");
addOption(document.myform.DynList1,"500 +", "500 +", "");

addOption(document.myform.DynList2,"< 50", "< 50", "");
addOption(document.myform.DynList2,"50 - 199", "50 - 199", "");
addOption(document.myform.DynList2,"200 - 499", "200 - 499", "");
addOption(document.myform.DynList2,"500 +", "500 +", "");

}


////////////////// 



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

	selectbox.options.add(optn);
}


function SelectDynList() {
// ON selection of checkbox the dynamic drop down will work


if(document.myform.select0.checked == true) {
document.myform.DynList0.style.visibility="visible";
}	
  else { 
  document.myform.DynList0.style.visibility="hidden";
  
  }
  
if(document.myform.select1.checked == true) {
document.myform.DynList1.style.visibility="visible";
}	
  else { 
  document.myform.DynList1.style.visibility="hidden";
  
  }
  
if(document.myform.select2.checked == true) {
document.myform.DynList2.style.visibility="visible";
}	
  else { 
  document.myform.DynList2.style.visibility="hidden";
  
  }
  
if(document.myform.select3.checked == true) {
document.myform.DynList3.style.visibility="visible";
}	
  else { 
  document.myform.DynList3.style.visibility="hidden";
  
  }


}