function fillItemType() { } // end of JS function function SelectSubType(){// ON or after selection of itemType this function will workremoveAllOptions(document.frm_item.itemSubtypeId); addOption(document.frm_item.itemSubtypeId, '', 'No SubitemType Selected', '0');}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,selected ){ var optn = document.createElement("OPTION"); optn.text = text; optn.value = value; if (selected==1) { optn.selected = true; } selectbox.options.add(optn);}