var authBox; var auth=false; function initialize(){ var _1=new CookieManager(); var _2=unescape(_1.getCookie("eidm_user")); if(_2!="null"){ if(!auth){ auth=true; authenticated(); } } } function authenticated(){ if(!auth){ var _3=CL_URL; window.location=_3; }else{ return; } } function checkAuthenticated(_4){ var _5=_4.responseText; if(_5&&_5.indexOf("TRUE")>=0){ auth=true; window.location="page2.jsp"; }else{ auth=false; window.location="index.jsp"; } } function newAuth(){ var _6=new CookieManager(); var _7=unescape(_6.getCookie("eidm_user")); if(_7==null||_7=="null"||_7==""){ return; }else{ } var _8="AUTHENTICATED"; var _9="SecurityManager"; var _a={REQUEST_TYPE:_8,CL_COOKIE:_7}; var _b=new Ajax.Request(_9,{method:"post",parameters:_a,onComplete:checkAuthenticated}); } function forwardToCL(){ var _c=new CookieManager(); var _d=escape(DEBUG_EIDM_COOKIE_VALUE); if(USE_DEBUG_COOKIE){ _c.setCookie("eidm_user",_d); } var _e=CL_URL; window.location=_e; } function clearForm(){ document.api_registration_form.firstName.value=""; document.api_registration_form.lastName.value=""; document.api_registration_form.email.value=""; } var USE_DEBUG_COOKIE=false; var DEBUG_CSP_COOKIE_VALUE="TOY7gL7jsE9ELX+wqWLI+lxSGJY3Z0VDqbuG8otvG/yOIGlrwlEV/cFoGjjMzk7yl7sFoIji6UXaqxTLVZL+gCtTFtJ4WVMqq1tdpxhaz4H8J8rtqjPK0Q=="; var DEBUG_EIDM_COOKIE_VALUE="ZcsemdibK9CeiDzldNfVxGefFfc7D37gfjRfUhrWleayRSzPWeeR1ttqfpp7g8EZHiNDMFEPHXOsxI9cOQtCxXGpIsLtldOEiJDCPo7zLAKbY9dvw15mEBSjc6UPyVsqoHeIa9sx2tlVUzL+R4KaLvxMsHhk3hZhPdZXM6d8Nib1VK17YmZk71YUIYwndqL9NaD4UaCAlCWf7ZJSpIT1VA==M7nSpGom0Bg0SpZXFXjOwyV2Ep1RHNIg05ZCvp7QDgML3ipBiyHI9AleyAPiFbR4RNWXbbgmeqovcI0P7I4bZfJyXkzG/OSIWTSjryXW8i8wsEffm6BfxQYgAEfP2MT0EnlgdkCYzWpl8knOutE2JkwDQN2u3giKMwRqDSLaA1k==ac"; var CL_URL="http://labs.autodesk.com/ConsolidatedLogin/html/login.action?handoffURL=http://draw.labs.autodesk.com/labsapi/index.jsp"; CookieManager=Class.create(); CookieManager.prototype={BROWSER_IS_IE:(document.all&&window.ActiveXObject&&navigator.userAgent.toLowerCase().indexOf("msie")>-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1),BROWSER_IS_OPERA:(navigator.userAgent.toLowerCase().indexOf("opera")!=-1),initialize:function(_f){ },getCookie:function(_10){ var dc=document.cookie; var _12=_10+"="; var _13=dc.indexOf("; "+_12); if(_13==-1){ _13=dc.indexOf(_12); if(_13!=0){ return null; } }else{ _13+=2; } var end=document.cookie.indexOf(";",_13); if(end==-1){ end=dc.length; } return unescape(dc.substring(_13+_12.length,end)); },setCookie:function(_15,_16){ if(this.BROWSER_IS_IE&&this.userDataForIE){ this.store.setAttribute(_15,_16); this.store.save(this.IE_CACHE_NAME); }else{ if(this.BROWSER_IS_OPERA){ _16=_16.replace(/"/g,"%22"); } var _17=new Date(); _17.setTime(_17.getTime()+(this.cookieShelfLife*24*60*60*1000)); var _18="; expires="+_17.toGMTString(); document.cookie=_15+"="+_16; } },clearCookie:function(_19){ if(this.BROWSER_IS_IE&&this.userDataForIE){ this.store.load(this.IE_CACHE_NAME); this.store.removeAttribute(_19); this.store.save(this.IE_CACHE_NAME); }else{ document.cookie=_19+"=;expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/"; } }};    			/*Copyright 2007-2008 Autodesk, Inc. All Rights Reserved.*/ 		  