function ClearOptions(OptionList) { //Always clear an option list from the last entry to the first for (x = OptionList.length; x >= 0; x = x - 1) { OptionList[x] = null; } } function showSecondOption() { //document.write(""); if(document.attForm.group1.options[document.attForm.group1.selectedIndex].value=="") { document.getElementById('group2Content').style.display="none"; } else { document.getElementById('group2Content').style.display="block"; } } function AddToOptionList(OptionList, OptionValue, OptionText) { OptionList[OptionList.length] = new Option(OptionText, OptionValue); } hasLists=10; function populateLists() { hasLists=999;} window.onload = populateLists;