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"; allowSubmit=false; } else { //document.getElementById('group2Content').style.display="block"; allowSubmit=true; } } function AddToOptionList(OptionList, OptionValue, OptionText) { OptionList[OptionList.length] = new Option(OptionText, OptionValue); } hasLists=10; allowSubmit = true; function populateLists() { hasLists=999;} window.onload = populateLists; function transfer_shipping(obj) { if(obj.checked==true) { document.main_form.x_ship_to_first_name.value = document.main_form.x_first_name.value;document.main_form.x_ship_to_last_name.value = document.main_form.x_last_name.value;document.main_form.x_ship_to_address.value = document.main_form.x_address.value;document.main_form.x_ship_to_address_2.value = document.main_form.x_address_2.value;document.main_form.x_ship_to_city.value = document.main_form.x_city.value;document.main_form.x_ship_to_zip.value = document.main_form.x_zip.value;document.main_form.x_ship_to_phone.value = document.main_form.x_phone.value; document.main_form.x_ship_to_state.selectedIndex = document.main_form.x_state.selectedIndex; document.main_form.x_ship_to_country.selectedIndex = document.main_form.x_country.selectedIndex; } else { document.main_form.x_ship_to_first_name.value = '';document.main_form.x_ship_to_last_name.value = '';document.main_form.x_ship_to_address.value = '';document.main_form.x_ship_to_address_2.value = '';document.main_form.x_ship_to_city.value = '';document.main_form.x_ship_to_zip.value = '';document.main_form.x_ship_to_phone.value = ''; } }