function init(){framework.util.hideElement("rate_helpmenu");framework.util.hideElement("rate_menu");document.getElementById("appTitle").innerHTML="Open an Account";framework.widget.module.init("open_acct_resp_module",showHelp,"","afterModuleInit");populateLabels("asStateLabel","asZipLabel","US");populateLabels("asStateLabelBilling","asZipLabelBilling","US");
populateCountryDropDown("as_country");populateStateDropDown("as_state","US");populateStateDropDown("as_stateBilling","US");if(document.getElementById("phoneCountryCode").value=="001"){document.getElementById("usPhoneFormat").style.display="inline";document.getElementById("intlPhoneFormat").style.display="none";
}else{document.getElementById("usPhoneFormat").style.display="none";document.getElementById("intlPhoneFormat").style.display="inline";}if(document.getElementById("phoneCountryCodeShipping").value=="001"){document.getElementById("usPhoneFormatShipping").style.display="inline";document.getElementById("intlPhoneFormatShipping").style.display="none";
}else{document.getElementById("usPhoneFormatShipping").style.display="none";document.getElementById("intlPhoneFormatShipping").style.display="inline";}if(document.getElementById("phoneCountryCodeBilling").value=="001"){document.getElementById("usPhoneFormatBilling").style.display="inline";document.getElementById("intlPhoneFormatBilling").style.display="none";
}else{document.getElementById("usPhoneFormatBilling").style.display="none";document.getElementById("intlPhoneFormatBilling").style.display="inline";}if(document.getElementById("faxCountryCode").value=="001"){document.getElementById("usFaxFormat").style.display="inline";document.getElementById("intlFaxFormat").style.display="none";
}else{document.getElementById("usFaxFormat").style.display="none";document.getElementById("intlFaxFormat").style.display="inline";}if(document.getElementById("faxCountryCodeBilling").value=="001"){document.getElementById("usFaxFormatBilling").style.display="inline";document.getElementById("intlFaxFormatBilling").style.display="none";
}else{document.getElementById("usFaxFormatBilling").style.display="none";document.getElementById("intlFaxFormatBilling").style.display="inline";}bodyLoad();copyShipToBill(document.openAcctForm.sameAddresses);}function copyShipToBill(a){if(a.checked==true){document.openAcctForm.billaddress.value=document.openAcctForm.address.value;
document.openAcctForm.billcity.value=document.openAcctForm.city.value;document.openAcctForm.billstate.value=document.openAcctForm.state.value;document.openAcctForm.billzipCode.value=document.openAcctForm.zipCode.value;document.openAcctForm.billphoneCountryCode.value=document.openAcctForm.shipphoneCountryCode.value;
document.openAcctForm.billphoneAreaCode.value=document.openAcctForm.shipphoneAreaCode.value;document.openAcctForm.billphonePrefix.value=document.openAcctForm.shipphonePrefix.value;document.openAcctForm.billphoneLineNbr.value=document.openAcctForm.shipphoneLineNbr.value;document.openAcctForm.billphoneExt.value=document.openAcctForm.shipphoneExt.value;
document.openAcctForm.billfaxCountryCode.value=document.openAcctForm.faxCountryCode.value;document.openAcctForm.billfaxAreaCode.value=document.openAcctForm.faxAreaCode.value;document.openAcctForm.billfaxPrefix.value=document.openAcctForm.faxPrefix.value;document.openAcctForm.billfaxLineNbr.value=document.openAcctForm.faxLineNbr.value;
document.openAcctForm.billaddress.disabled=true;document.openAcctForm.billcity.disabled=true;document.openAcctForm.billstate.disabled=true;document.openAcctForm.billzipCode.disabled=true;document.openAcctForm.billphoneCountryCode.disabled=true;document.openAcctForm.billphoneAreaCode.disabled=true;document.openAcctForm.billphonePrefix.disabled=true;
document.openAcctForm.billphoneLineNbr.disabled=true;document.openAcctForm.billphoneExt.disabled=true;document.openAcctForm.billfaxCountryCode.disabled=true;document.openAcctForm.billfaxAreaCode.disabled=true;document.openAcctForm.billfaxPrefix.disabled=true;document.openAcctForm.billfaxLineNbr.disabled=true;
}else{document.openAcctForm.billaddress.disabled=false;document.openAcctForm.billcity.disabled=false;document.openAcctForm.billstate.disabled=false;document.openAcctForm.billzipCode.disabled=false;document.openAcctForm.billphoneCountryCode.disabled=false;document.openAcctForm.billphoneAreaCode.disabled=false;
document.openAcctForm.billphonePrefix.disabled=false;document.openAcctForm.billphoneLineNbr.disabled=false;document.openAcctForm.billphoneExt.disabled=false;document.openAcctForm.billfaxCountryCode.disabled=false;document.openAcctForm.billfaxAreaCode.disabled=false;document.openAcctForm.billfaxPrefix.disabled=false;
document.openAcctForm.billfaxLineNbr.disabled=false;}}function preSubmitTasks(a){if(a.checked==true){a.checked=false;copyShipToBill(a);a.checked=true;}}
