var agt=navigator.userAgent.toLowerCase();var is_ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));function checkForJavaScript(){if(document.forms[0]!=null&&document.forms[0].elements[0]!=null&&document.forms[0].elements[0].name=="ehi.JAVASCRIPT_ENABLED"){document.forms[0].elements[0].value="TRUE"}}var submitted=0;function submitOnce(){if(submitted==0){submitted++;return true}return false}var requested=0;function requestQuoteOnce(){if(requested==0){requested++;return true}return false}function detectFlash(){var A=navigator.mimeTypes["application/x-shockwave-flash"]["enabledPlugin"];if(A!=null){return true}else{return false}}var MM_contentVersion=6;var plugin=(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"])?navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin:0;function detectFlasForAll(){if(plugin){var D=navigator.plugins["Shockwave Flash"].description.split(" ");for(var C=0;C<D.length;++C){if(isNaN(parseInt(D[C]))){continue}var B=D[C]}var A=B>=MM_contentVersion}else{if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.appVersion.indexOf("Win")!=-1)){document.write("<SCRIPT LANGUAGE=VBScript> \n");document.write("on error resume next \n");document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');document.write("</SCRIPT> \n")}}if(A){return true}else{return false}}var hasFlash=false;function detectFlashForAll(){if(navigator.appName=="Netscape"){for(i=0;i<navigator.plugins.length;i++){if(navigator.plugins[i].name=="Shockwave Flash"){hasFlash=true}}}else{if(navigator.appName=="Microsoft Internet Explorer"){document.writeln("<script language='VBscript'>");document.writeln("'Test to see if VBScripting works");document.writeln("detectableWithVB = False");document.writeln("If ScriptEngineMajorVersion >= 2 then");document.writeln("   detectableWithVB = True");document.writeln("End If");document.writeln("'This will check for the plugin");document.writeln("Function detectActiveXControl(activeXControlName)");document.writeln("   on error resume next");document.writeln("   detectActiveXControl = False");document.writeln("   If detectableWithVB Then");document.writeln("      detectActiveXControl = IsObject(CreateObject(activeXControlName))");document.writeln("   End If");document.writeln("End Function");document.writeln("<\/script>");hasFlash=detectActiveXControl("ShockwaveFlash.ShockwaveFlash.1")}}if(hasFlash){return true}else{return false}}function resetPageVariables(){submitted=0}function resetCensusPageVariables(){requested=0}function instantQuotePressed(){return submitOnce()}function getQuotePressed(){return requestQuoteOnce()}function Open_Window(C){var B="width=620,height=480,resizable,scrollbars,toolbar";var A=window.open(C,"newWin",B);A.focus()}function Open_HelpWindow(C){var B="width=566,height=331,resizable,scrollbars,toolbar";var A=window.open(C,"HelpWin",B);A.focus()}function Open_NewWindow(C){var B="width=620,height=480,resizable,scrollbars,toolbar";var A=window.open(C,"",B);A.focus()}function Open_WindowSize(E,D,A){var C="width="+D+",height="+A+",resizable,scrollbars,toolbar";var B=window.open(E,"newWin",C);B.focus()}function Open_WindowNameSize(D,F,E,A){var C="width="+E+",height="+A+",resizable,scrollbars,toolbar";var B=window.open(F,D,C);B.focus()}function Open_WindowPositionSize(E,G,F,D,A){var C="left="+G+",top="+F+",width="+D+",height="+A+",resizable,scrollbars,toolbar";var B=window.open(E,"newWin",C);B.focus()}function Open_WindowNamePositionSize(D,F,H,G,E,A){var C="left="+H+",top="+G+",width="+E+",height="+A+",resizable,scrollbars,toolbar";var B=window.open(F,D,C);B.focus()}function Open_WindowNoScroll(F,E,A,D){var C="width="+E+",height="+A;var B=window.open(F,D,C);B.focus()}function Open_WindowPositionSizeNameNoToolbar(F,H,G,E,A,D){var C="width="+E+",height="+A+",left="+H+",top="+G;var B=window.open(F,D,C);B.focus()}function Plan_window2(C){var B="width=420,height=580";while(C.indexOf(" ")>-1){C=C.replace(" ","%20")}var A=window.open(C,"newWin",B);A.focus()}function Open_WindowMenuBar(B){var A=window.open(B);A.focus()}function Open_WindowNameMenuSize(D,F,E,A){var C="width="+E+",height="+A+",resizable,scrollbars,toolbar,menubar,location,directories";var B=window.open(F,D,C);B.focus()}function enterLivePerson(A,E,D,C){window.name="lp_parent";var B="http://server.iad.liveperson.net/hc/11354526/?cmd=file&file=visitorWantsToChat&site=11354526&byhref=1";var F=window.open(B,"chat11354526","width=472,height=320,resizable=yes,scrollbars=yes");if(F!=null){if(F.opener==null){F.opener=self;window.name="home";F.location.href=B}}}function resetWaitMsg(){if(document.PleaseWait!=null){if(document.PleaseWait.src!=null){document.PleaseWait.src="/ehealthinsurance/images/PleaseWaitBlank.gif"}}if(document.PageLoading!=null){document.PageLoading.src="/ehealthinsurance/images/PleaseWaitBlank.gif"}if(document.title=="Small Group Employee Census"){setFocus()}}function stopEnterKey(A){return(A!=null&&A.keyCode=="13"?false:true)}var isNN=(navigator.appName.indexOf("Netscape")!=-1);if(isNN){document.captureEvents(Event.KEYPRESS)}function autoTab(H,F,G,D){var I=(isNN)?G.which:G.keyCode;var B=(isNN)?[0,8,9]:[0,8,9,16,17,18,37,38,39,40,46];if(H.value.length>=F&&!E(B,I)){H.value=H.value.slice(0,F);var C=H.form[D];if(C==null){H.focus()}else{H.form[D].focus()}}function E(J,M){var L=false,K=0;while(!L&&K<J.length){if(J[K]==M){L=true}else{K++}}return L}function A(J){var K=-1,L=0,M=false;while(L<J.form.length&&K==-1){if(J.form[L]==J){K=L}else{L++}}return K}return true}function MM_preloadImages(){var D=document;if(D.images){if(!D.MM_p){D.MM_p=new Array()}var C,B=D.MM_p.length,A=MM_preloadImages.arguments;for(C=0;C<A.length;C++){if(A[C].indexOf("#")!=0){D.MM_p[B]=new Image;D.MM_p[B++].src=A[C]}}}}function MM_swapImgRestore(){var C,A,B=document.MM_sr;for(C=0;B&&C<B.length&&(A=B[C])&&A.oSrc;C++){A.src=A.oSrc}}function MM_findObj(E,D){var C,B,A;if(!D){D=document}if((C=E.indexOf("?"))>0&&parent.frames.length){D=parent.frames[E.substring(C+1)].document;E=E.substring(0,C)}if(!(A=D[E])&&D.all){A=D.all[E]}for(B=0;!A&&B<D.forms.length;B++){A=D.forms[B][E]}for(B=0;!A&&D.layers&&B<D.layers.length;B++){A=MM_findObj(E,D.layers[B].document)}if(!A&&D.getElementById){A=D.getElementById(E)}return A}function MM_swapImage(){var D,C=0,A,B=MM_swapImage.arguments;document.MM_sr=new Array;for(D=0;D<(B.length-2);D+=3){if((A=MM_findObj(B[D]))!=null){document.MM_sr[C++]=A;if(!A.oSrc){A.oSrc=A.src}A.src=B[D+2]}}}function disableAllFormsButtons(){var D=document.forms.length;for(var B=0;B<D;B++){var A=document.forms[B].elements.length;for(var C=0;C<A;C++){var E=document.forms[B].elements[C];if(E.type=="button"||E.type=="submit"){E.disabled=true}}}}function enableAllFormsButtons(){var A=document.getElementsByTagName("input");for(var B=0;B<A.length;B++){var C=A[B];if(C.type=="button"||C.type=="submit"||C.type=="image"){C.disabled=false}}}function disableAllFormsButtons(){var D=document.forms.length;for(var B=0;B<D;B++){var A=document.forms[B].elements.length;for(var C=0;C<A;C++){var E=document.forms[B].elements[C];if(E.type=="button"||E.type=="submit"){E.disabled=true}}}}function takeYear(A){x=A.getYear();var B=x%100;B+=(B<38)?2000:1900;return B}function closeWindow(){window.open("","_parent","");window.close()}function setFocus(A){var B=document.getElementsByName(A);if(B&&B[0]){B[0].focus()}return true};