function form_doSubmit(url,validate){var fObj=document.forms["frmMain"];var errStr=validate?validate(fObj):"";if(errStr==""){fObj.action=url;fObj.onsubmit=function(){return true};fObj.submit()}else{alert(errStr)}return errStr}function loginin(){var dt=new Date();dt.setTime(dt.getTime()-1);document.cookie="ICA=;expires="+dt.toGMTString();document.cookie="TIMESTRING=;expires="+dt.toGMTString();document.cookie="REGISTERED=;expires="+dt.toGMTString();document.location="/members/log_out.asp"}var iExtendedDisplay_none=0;var iExtendedDisplay_catAffinity=1;var iExtendedDisplayMode=iExtendedDisplay_none;function setShowExtendedDisplay(iDisplayMode){iExtendedDisplayMode=iDisplayMode}function getExtendedDisplayMode(){return iExtendedDisplayMode}welcomeBackContentInf.prototype.getProduct=function(){return this.product?this.product:""};welcomeBackContentInf.prototype.useExtendedDisplay=function(){this.bRenderGuarantee=true;this.getActiveFlag=function(){return this.status};this.getMainRightContent_orig=this.getMainRightContent;this.getMainRightContentImage=function(){var sProduct=this.getProduct().toLowerCase();var sOut="";switch(sProduct){case'incorporation':sOut="welcome_back_quote_inc.jpg";break;case'trademark':sOut="welcome_back_quote_tm.jpg";break;case'last will and testament':sOut="welcome_back_quote_will.jpg";break;case'llc':sOut="welcome_back_quote_llc.jpg";break;default:sOut="welcome_back_quote_llc.jpg";break}return sOut};this.getMainRightContentImageStyle=function(){var sProduct=this.getProduct().toLowerCase();var sOut="";var alignMainRightContentImage="style='margin-top:50px;'";switch(sProduct){case'incorporation':alignMainRightContentImage="";break;case'trademark':alignMainRightContentImage="";break;case'last will and testament':alignMainRightContentImage="";break;case'llc':alignMainRightContentImage="";break}return alignMainRightContentImage};this.getMainRightContent=function(){var sRetval=this.getMainRightContent_orig();var sImage=this.getMainRightContentImage();var sStyle=this.getMainRightContentImageStyle();var sImagePath="/img/";var sQuote=sImagePath+sImage;sRetval=sImage==""||this.getActiveFlag()==1?sRetval:"<img "+sStyle+" src='"+sQuote+"' border=0>";return sRetval};this.getCenterTileContent_orig=this.getCenterTileContent;this.getCenterTileContent=function(){var sRetval=this.getCenterTileContent_orig();var iActiveFlag=this.getActiveFlag();var sImagePath="/img/";var sCenterTile="";var sCompletOrderMap_b="<area shape='rect' coords='73,190,229,212' href='"+this.url+"' alt='Complete Your Order' />";var sGetStartedMap_b="<area shape='rect' coords='104,191,203,211' href='"+this.url+"' alt='Get Started' />";var sCompletOrderMap=sCompletOrderMap_b;var sGetStartedMap=sGetStartedMap_b;var sCenterTileMap="";var sButtonMap="";var sProduct=this.getProduct().toLowerCase();switch(sProduct){case'incorporation':if(iActiveFlag==0){sCenterTile=sImagePath+"welcome_back_tile_inc_co_b.jpg";sButtonMap=sCompletOrderMap}else{sCenterTile=sImagePath+"welcome_back_tile_inc_gs_b.jpg";sButtonMap=sGetStartedMap}sButtonMap+="<area shape='rect'   coords='4,231,103,252' href='/trademarks/trademarks-overview.html' alt='Trademarks' />"+"<area shape='rect' coords='104,231,201,252' href='/limited-liability-company/limited-liability-company-overview.html' alt='LLC' />"+"<area shape='rect' coords='204,231,301,252' href='/legal-Wills/wills-overview.html' alt='Wills' />";sCenterTileMap="<map id='centerTileMap' name='centerTileMap'>"+sButtonMap+"</map>";break;case'trademark':if(iActiveFlag==0){sCenterTile=sImagePath+"welcome_back_tile_tm_co_b.jpg";sButtonMap=sCompletOrderMap}else{sCenterTile=sImagePath+"welcome_back_tile_tm_gs_b.jpg";sButtonMap=sGetStartedMap}sButtonMap+="<area shape='rect'   coords='4,231,103,252' href='/limited-liability-company/limited-liability-company-overview.html' alt='LLC' />"+"<area shape='rect' coords='104,231,201,252' href='/legal-incorporation/incorporation-overview.html' alt='Incorporation' />"+"<area shape='rect' coords='204,231,301,252' href='/legal-Wills/wills-overview.html' alt='Wills' />";sCenterTileMap="<map id='centerTileMap' name='centerTileMap'>"+sButtonMap+"</map>";break;case'last will and testament':if(iActiveFlag==0){sCenterTile=sImagePath+"welcome_back_tile_will_co_b.jpg";sButtonMap=sCompletOrderMap}else{sCenterTile=sImagePath+"welcome_back_tile_will_gs_b.jpg";sButtonMap=sGetStartedMap}sButtonMap+="<area shape='rect'   coords='4,231,103,252' href='/trademarks/trademarks-overview.html' alt='Trademarks' />"+"<area shape='rect' coords='104,231,201,252' href='/legal-incorporation/incorporation-overview.html' alt='Incorporation' />"+"<area shape='rect' coords='204,231,301,252' href='/limited-liability-company/limited-liability-company-overview.html' alt='LLC' />";sCenterTileMap="<map id='centerTileMap' name='centerTileMap'>"+sButtonMap+"</map>";break;case'llc':if(iActiveFlag==0){sCenterTile=sImagePath+"welcome_back_tile_llc_co_b.jpg";sButtonMap=sCompletOrderMap}else{sCenterTile=sImagePath+"welcome_back_tile_llc_gs_b.jpg";sButtonMap=sGetStartedMap}sButtonMap+="<area shape='rect'   coords='4,231,103,252' href='/trademarks/trademarks-overview.html' alt='Trademarks' />"+"<area shape='rect' coords='104,231,201,252' href='/legal-incorporation/incorporation-overview.html' alt='Incorporation' />"+"<area shape='rect' coords='204,231,301,252' href='/legal-Wills/wills-overview.html' alt='Wills' />";sCenterTileMap="<map id='centerTileMap' name='centerTileMap'>"+sButtonMap+"</map>";break}if(sCenterTile!=""&&iActiveFlag!=1){sRetval="<img src='"+sCenterTile+"' border=0 usemap='#centerTileMap'>"+sCenterTileMap}return sRetval};this.getContent_orig=this.getContent;this.sTopContentWidth="410px";this.sTopContentRightPad="40px";this.sTopContentSubWidth="380px";this.getContent=function(){var sRetval=this.getContent_orig();var sImg="<div style='padding: 0px 0px 5px 0px;'><img src='/img/welcome_back_02.jpg'></div>";var sAction="";var sActionButton="";var dField="";var iActiveFlag=this.getActiveFlag();var cProduct=this.getProduct();var productRegEx=/copies/gi;if(cProduct.match(productRegEx)){var sProduct=cProduct}else{var sProduct=this.getProduct().replace(/s$/gi,"")}var sRememberInterest="";var sRememberActive="";var sRemember="";var sNotYou="<div style='padding: 7px 0px 0px 0px;'>Not you? Click <a href='javascript:loginin();'>here</a>.</div>";var sBreak="<br />";var sOrderStatus="";var sDefaultActionButton="<div name='logoDiv' style='height:17px; width:31px; background: transparent url(\"/img/sprites/homeSprites.png\") 0px -317px no-repeat;}'><a style='display:block; width:100%; height:100%;' href='"+this.url+"' name='center-returning-user-go-button' ></a></div>";if(iActiveFlag==0||iActiveFlag==-1){if(iActiveFlag==0){dField=this.isDistinguished()?" for "+this.cookie.dfield.replace(/\.$/gi,"")+"":"";sAction="<br /><B><span class='BodyInText_Default' style='margin-top:10px'><img src='/img/imageArrow.gif' />We have securely saved your answers. Click here to <a href='"+this.url+"' class='BodyInText_Link' style='font-weight: bold;'>Complete your "+sProduct+dField+".</a></B></span>";sRememberActive="<div style='padding: 3px; 0px 0px 0px; font-size: 1px;'>&nbsp;</div> <b>Remember</b>: Your order comes with unlimited customer support.";sOrderStatus="<div class='BodyInText_Default' style='text-align: left; padding: 5px 0px 0px 0px; font-size: 90%;'>(If you have already placed your order, <a href='/members/my_account.asp'>click here for order status</a>.)</div>"+sNotYou;sActionButton=sDefaultActionButton}else if(iActiveFlag==-1){sAction="<br />Are you ready to <a href='"+this.url+"' name='center-returning-user-start-your' ><b>Start your "+sProduct+"</b></a>? "+"Filling out our secure questionnaire is completely free, and most people finish in 15 minutes or less.<br />";sRememberInterest="<div style='padding: 3px; 0px 0px 0px; font-size: 1px;'>&nbsp;</div> <b>Remember</b>: Your order comes with unlimited customer support."+sNotYou;sActionButton=sDefaultActionButton}sRetval="<table cellpadding=0 cellspacing=0 border=0 style='width: 100%; padding: 0px 0px 15px 0px; background-image: url( /img/welcome_back_02.jpg ); background-repeat: no-repeat;'>"+"<tr>"+"<td style='vertical-align: top; width: "+this.sTopContentWidth+";'>"+"<div style='padding: 40px 0px 3px 0px; font-size: 1px;'>&nbsp;</div>"+"<table cellpadding=0 cellspacing=0 border=0>"+"<tr>"+"<td style='vertical-align: top; width: "+this.sTopContentSubWidth+";'>"+"<div class='BodyInText_Default' style='padding: 0px 0px 0px 0px;' >"+"<table cellpadding=0 cellspacing=0 border=0 style='width: "+this.sTopContentSubWidth+";'>"+"<tr>"+"<td style='vertical-align: top;'>"+sAction+"</td>"+"<td style='vertical-align: top;'>"+sBreak+sActionButton+"</td>"+"</tr>"+"<tr>"+"<td colspan=20>"+sRememberInterest+"</td>"+"</tr>"+"</table>"+sRememberActive+sOrderStatus+"</div>"+"</td>"+"<td style='vertical-align: top; text-align: left;'>"+"</td>"+"</tr>"+"</table>"+"</td>"+"<td style='vertical-align: top; text-align: right;' class='hpguarantee'>"+this.getGuaranteeContent()+"</td>"+"</tr>"+"</table>"}return sRetval}};function setAttorneyQuoteContent(sNewColor){welcome.sColor=sNewColor;welcome.getMainRightContentImage=function(){var sProduct=this.getProduct().toLowerCase();var sOut="";switch(sProduct){case'trademark':case'incorporation':sOut="INC_TM_over_SEM_sq_"+this.sColor+"_03.gif";break;case'llc':sOut="LLC_over_SEM_sq_"+this.sColor+"_02.gif";break;default:sOut="home_sq_att_quote_"+this.sColor+"_01.gif";break}return sOut};if(getExtendedDisplayMode()!=iExtendedDisplay_catAffinity){welcome.getGuaranteeContent=function(){return this.bRenderGuarantee?"<img title='' style='border-right:0px solid;border-top:0px solid;border-left:0px solid;border-bottom:0px solid; margin-top: 15px;' alt='' src='/img/"+this.getMainRightContentImage()+"' border=0>":""}}else{welcome.sTopContentWidth="357px";welcome.sTopContentSubWidth="357px";welcome.getGuaranteeContent=function(){return this.bRenderGuarantee?"<div style='height:91px; width:160px; margin-left: 24px; margin-top: 35px; background: transparent url(\"/img/sprites/homeSprites.png\") -248px -82px no-repeat;}'><a style=\"display:block; width:100%; height:100%;\" href='/satisfaction-guarantee.html' target='_blank'></a></div>":""}}}var welcome=new welcomeBackContentInf(false);welcome.bRenderGuarantee=true;setShowExtendedDisplay(iExtendedDisplay_catAffinity);switch(getExtendedDisplayMode()){case iExtendedDisplay_catAffinity:welcome.useExtendedDisplay();break}
