/* (C) Copyright 2011 Agentquote.com */ function encp(zsPackage) { var work = zsPackage; var adj = work.length % 3; if (adj != 0) { for (var indx = 0; indx < (3 - adj); indx++) { work = work + ' '; } } var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; var out = "", c1, c2, c3, e1, e2, e3, e4; for (var i = 0; i < work.length; ) { c1 = work.charCodeAt(i++); c2 = work.charCodeAt(i++); c3 = work.charCodeAt(i++); e1 = c1 >> 2; e2 = ((c1 & 3) << 4) + (c2 >> 4); e3 = ((c2 & 15) << 2) + (c3 >> 6); e4 = c3 & 63; if (isNaN(c2)) { e3 = e4 = 64; } else if (isNaN(c3)) { e4 = 64; } out += tab.charAt(e1) + tab.charAt(e2) + tab.charAt(e3) + tab.charAt(e4); } return out; } function aq2eSendRequestInfo(zsaq2ePath, zsrequestinfo) { location.href = zsaq2ePath + '?aq2eT=' + zsrequestinfo; } function aq2ePackageRequest(zsaq2ePath) { var Work = location.href.toLowerCase(); Work = Work.replace('http://', ''); Work = Work.replace('https://', ''); Work = Work.replace('www.', ''); var indx = Work.indexOf('/'); if (indx > 0) { Work = Work.substr(0, indx); } var oform = document.forms[0]; var package = Work + '|' + oform.aq2eCoverage.options[oform.aq2eCoverage.selectedIndex].value + '|' + oform.aq2eTerm.options[oform.aq2eTerm.selectedIndex].value + '|' + oform.aq2eDbMonth.options[oform.aq2eDbMonth.selectedIndex].value + '|' + oform.aq2eDbDom.options[oform.aq2eDbDom.selectedIndex].value + '|' + oform.aq2eDbYr.options[oform.aq2eDbYr.selectedIndex].value + '|' + oform.aq2eState.options[oform.aq2eState.selectedIndex].value + '|' + oform.aq2ePremiumPeriod.options[oform.aq2ePremiumPeriod.selectedIndex].value + '|'; if (oform.aq2eGender[0].checked) { package = package + 'M|'; } else { package = package + 'F|'; } if (oform.aq2eSmoker[0].checked) { package = package + 'N|'; } else { package = package + 'Y|'; } / } function aq2eOnSelectBlur(zoselect, zonext) { if (zoselect.length == 1) { return; } if (zonext != null) { zonext.focus(); } } function aq2eOnSelectChange(zoselect, zonext) { if (zonext != null) { zonext.focus(); } }  /* (C) Copyright 2011 Agentquote.com */

