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(append_referer(c),"newWin",b);a.focus()}function Open_WindowWithoutAddressBar(c){var b="width=620,height=480,resizable,scrollbars,toolbar,location=no";var a=window.open(append_referer(c),"newWin",b);a.focus()}function Open_HelpWindow(c){var b="width=566,height=331,resizable,scrollbars,toolbar";var a=window.open(append_referer(c),"HelpWin",b);a.focus()}function Open_NewWindow(c){var b="width=620,height=480,resizable,scrollbars,toolbar";var a=window.open(append_referer(c),"",b);a.focus()}function Open_WindowSize(e,d,a){var c="width="+d+",height="+a+",resizable,scrollbars,toolbar";var b=window.open(append_referer(e),"newWin",c);b.focus()}function Open_WindowSizeWithoutAddressBar(e,d,a){var c="width="+d+",height="+a+",resizable,scrollbars,toolbar,location=no";var b=window.open(append_referer(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(append_referer(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(append_referer(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(append_referer(f),d,c);b.focus()}function Open_WindowNoScroll(f,e,a,d){var c="width="+e+",height="+a;var b=window.open(append_referer(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(append_referer(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(append_referer(c),"newWin",b);a.focus()}function Open_WindowMenuBar(b){var a=window.open(append_referer(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(append_referer(f),d,c);b.focus()}function append_referer(d){var b=d;if(d.indexOf("referer")<0){var a=d.lastIndexOf("#");var e=(a>0)?d.substring(0,a):d;var c=(a>0)?d.substring(a):"";if(d.indexOf("?")<0){b=e+"?referer="+encodeURIComponent(window.location.href)+c}else{b=e+"&referer="+encodeURIComponent(window.location.href)+c}}return b}function enterLivePerson(a,e,d,c){window.name="lp_parent";var b="https://service.liveperson.net/hc/11354526/?cmd=file&amp;file=visitorWantsToChat&amp;site=11354526&amp;VISITORVAR!Product=MainIFP";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 enterLivePerson2(a,e,d,c){window.name="lp_parent";var b="https://service.liveperson.net/hc/11354526/?cmd=file&amp;file=visitorWantsToChat&amp;site=11354526&amp;VISITORVAR!Product=Medicare";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.getElementById("pleaseWaitImg")!=null){document.getElementById("pleaseWaitImg").style.display="none"}}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(j,g,h,d){var k=(isNN)?h.which:h.keyCode;var b=(isNN)?[0,8,9]:[0,8,9,16,17,18,37,38,39,40,46];if(j.value.length>=g&&!f(b,k)){j.value=j.value.slice(0,g);var c=j.form[d];if(c==null){j.focus()}else{j.form[d].focus()}}function f(e,n){var m=false,l=0;while(!m&&l<e.length){if(e[l]==n){m=true}else{l++}}return m}function a(e){var l=-1,m=0,n=false;while(m<e.form.length&&l==-1){if(e.form[m]==e){l=m}else{m++}}return l}return true}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+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 f=document.forms[b].elements[c];if(f.type=="button"||f.type=="submit"){f.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 f=document.forms[b].elements[c];if(f.type=="button"||f.type=="submit"){f.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}function getElementsByClassName(b,f,a){var e=(f=="*"&&b.all)?b.all:b.getElementsByTagName(f);var h=new Array();a=a.replace(/-/g,"-");var g=new RegExp("(^|s)"+a+"(s|$)");var d;for(var c=0;c<e.length;c++){d=e[c];if(g.test(d.className)){h.push(d)}}return(h)}function dropDownNav(){var c,b=0;var a=document.createElement("iframe");a.scrolling="no";a.src="about:blank";while(c=document.getElementById("dropdown").children[b++]){c.onmouseover=function(){this.appendChild(a);var d=this.children[1].offsetHeight+"px";this.children[2].style.height=d;if(this.className=="first-child"){this.className="first-child first hover"}else{this.className="hover"}};c.onmouseout=function(){if(this.className=="first-child first hover"){this.className="first-child"}else{this.className=""}}}}var quickPopup={init:function(){if(document.getElementById("liveAssistance")){this.assistance=document.getElementById("assistance");this.liveAssistance=document.getElementById("liveAssistance");this.body=document.getElementsByTagName("body")[0];if(this.assistance!=null){this.assistance.onclick=this.showAssistance;this.liveAssistance.onclick=this.onAssistance;this.body.onclick=this.allHide}}},showAssistance:function(a){var a=a||window.event;a.cancelBubble=true;if(quickPopup.assistance.className=="link-arrow on"){quickPopup.assistance.className="link-arrow";quickPopup.liveAssistance.style.display="none";if(document.getElementById("assistance-temp")){document.getElementById("assistance-temp").style.display="block"}}else{quickPopup.assistance.className="link-arrow on";quickPopup.liveAssistance.style.display="block";if(document.getElementById("assistance-temp")){document.getElementById("assistance-temp").style.display="block"}}return false},onAssistance:function(a){var a=a||window.event;a.cancelBubble=true;quickPopup.assistance.className="link-arrow on";quickPopup.liveAssistance.style.display="block"},allHide:function(){quickPopup.assistance.className="link-arrow";quickPopup.liveAssistance.style.display="none";if(document.getElementById("assistance-temp")){document.getElementById("assistance-temp").style.display="none"}}};function hideSearchText(){document.getElementById("search-text").value=""}function showSearchText(){var a=document.getElementById("search-text");if(a.value==""){a.value="Search"}}function showZipText(){var a=document.getElementById("zipCode");if(a.value==""){a.value="Zip code"}}function show_confirm(j,d){if(document.getElementById("_shield")){return}var a=document.createElement("div");var c=document.documentElement?document.documentElement:document.body;document.body.appendChild(a);a.setAttribute("id","_shield");a.style.position="absolute";a.style.left="0px";a.style.top="0px";a.style.width=c.scrollWidth+"px";a.style.height=c.scrollHeight+"px";a.style.backgroundColor="#888";a.style.filter="alpha(opacity=50)";a.style.opacity=0.5;var g=c.scrollLeft;var h=c.scrollTop;var f=c.clientWidth;var e=c.clientHeight;var b=(f-600)/2;if(f==0){b=350}var k=h+500;if(e<1000){k=h+(e+100)/2}if(e==0){k=550}$(document.body).append('<div class="clue_to" id="_confirm"><p class="color1">'+d+'</p><p><input class="btncm btnok" value="Confirm" type="button" onclick="'+j+'" />&nbsp;&nbsp;<input class="btncm btncc" value="Cancel"  type="button" onclick="hide_confirm()" /></p></div>');document.getElementById("_confirm").style.left=b+"px";document.getElementById("_confirm").style.top=k+"px"}function hide_confirm(){document.getElementById("_shield").parentNode.removeChild(document.getElementById("_shield"));document.getElementById("_confirm").parentNode.removeChild(document.getElementById("_confirm"));var a=document.getElementById("mcei.html.button.clicked:BidMethodCancel");if(a!=null){a.click()}}function show_bid_confirm(b){var a='Once a sponsorship offer type (e.g.Placement and performance fee,Placement fee only,or Performance fee only) is selected,<strong>it is locked in for the selected state and all subsequent offers for the quarter.</strong>Click "Confirm" button again to move on to place a bid,or click "Cancel" button to select a different offer type.';show_confirm(b,a)}function flexbidderConfirm(){var a=document.getElementById("mcei.html.button.clicked:BidMethodConfirm");if(a!=null){a.click()}};
