var MasterDetailHandler = { all : {}, DefaultEntryText : "- Please Select an Interest-", DefaultEntryValue : "", GetDetail : function (intMasterID) { return this.all[intMasterID];}, Detail_Change : function (objDetail, strGuidCtlName, strIndexCtlName) { var objGuid = document.getElementById(strGuidCtlName); var objIndex = document.getElementById(strIndexCtlName); objGuid.value = objDetail.options[objDetail.selectedIndex].value; objIndex.value = objDetail.selectedIndex; }, Master_Change : function (objMasterDropdown, strDetailCtlName) { try { var objOption = objMasterDropdown.options[objMasterDropdown.selectedIndex]; //Get the Master we are working with var objMaster = this.all[objOption.value]; if (objMaster == null) return; //Get the target dropdown var objCatDropDown = document.getElementById(strDetailCtlName); if (objCatDropDown != null) { //Clear the dropdown and populate the default entry for(var j=objCatDropDown.length-1;j>=0;j--) { objCatDropDown.remove(j); } var objCatOption = new Option(this.DefaultEntryText, this.DefaultEntryValue); try { objCatDropDown.add(objCatOption, null); } catch(ex) { objCatDropDown.add(objCatOption); } var objDetail; for(var i=0;i