function parseXMLResult(h){var g=Ext.DomQuery.selectNode("ReturnCode",h);if(g){var f=Ext.DomQuery.selectValue("ReturnCode",h);var c=Ext.DomQuery.selectValue("MessageKey",h);if(f!=0){if(f==2){var e=new Aquent.reviewpad.ErrorDialog({errorResponse:h});e.show();}else{var b=Ext.DomQuery.selectValue("DetailedMessage",h);
var d=custom_labels.ht.get(c);var a=(d!=null&&d!=""?d+"\n\n":"");a+=(b!=null&&b!=""?b:"");Ext.Msg.alert("Error",a);}return false;}else{if(f==0){return true;}}}else{return true;}}function trimText(b,a){if(b.length>a){return b.substr(0,a-3)+"...";}return b;}function filterInvalidURLChars(a,c){var d="";
for(var b=0;b<c.length;b++){if(a.test(c.charAt(b))){d+=c.charAt(b);}}return d;}function createCookie(c,d,e){var a="";if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));a="; expires="+b.toGMTString();}else{a="";}document.cookie=c+"="+d+a+"; path=/";}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");
for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length);}if(f.indexOf(e)==0){return f.substring(e.length,f.length);}}return null;}function eraseCookie(a){createCookie(a,"",-1);}function parseLicenseInfo(g,h){var e=parseInt(Ext.DomQuery.selectValue("CurrentNumUsers",g));
var f=parseInt(Ext.DomQuery.selectValue("CurrentNumPads",g));var b=parseInt(Ext.DomQuery.selectValue("CurrentUsedStorage",g));var a=parseInt(Ext.DomQuery.selectValue("LicensedNumUsers",g));var d=parseInt(Ext.DomQuery.selectValue("LicensedNumPads",g));var c=parseInt(Ext.DomQuery.selectValue("LicensedStorage",g));
if(h=="PERSON"&&a!=-1&&e>=a){showMessage(replaceText(custom_labels.AccountLicenseStatusInfo_noOfLicensedUsersMsg,"<licensedNumUsers> users",a+" user"),"new-person-tab");}if(h=="PAD"&&d!=-1&&f>=d){showMessage(replaceText(custom_labels.AccountLicenseStatusInfo_noOfLicensedPadsMsg,"<licensedNumPads>",d),"new-pad-tab");
if(userPrincipal.accountType==lookup_codes.ACCTYPE_FREE_LITE||userPrincipal.accountType==lookup_codes.ACCTYPE_PROFESSIONAL_LITE){Ext.getCmp("card-tabs-panel").activate("pads-tab");}}if(h=="FILE"&&b>c){showMessage(replaceText(custom_labels.AccountLicenseStatusInfo_noOfLicensedStorageMsg,"<currentAvailableStorage>",c-b),"new-file-tab");
}}function showMessage(b,a){Ext.onReady(function(){Ext.Msg.show({title:"Message",msg:b,buttons:{yes:"Yes",no:"No"},closable:false,fn:function(c){Ext.getCmp(a).isCancelForm=true;Ext.getCmp("card-tabs-panel").remove(a);if(c=="yes"){Ext.Msg.alert("Message",'take user to "Upgrade Account" page (not setup yet).');
}}});});}function replaceText(d,a,b){var c=d.replace(a,b);return c;}function setFieldBoxLabelTooltip(b){var a=Ext.get("x-form-el-"+b.id).child("label");Ext.QuickTips.register({target:a,text:b.tooltipText,title:b.tooltipTitle});}function getCurrentHostUrl(){var a=window.location.protocol+"//"+window.location.host;
return a;}function getReviewpadGeneralUrlWithProtocol(){var c="";var a=window.location.protocol+"//"+window.location.host;var b=getSubDomain();if(b!=""){c=replaceText(a,b,custom_labels.LoginFormPanel_accountUrlPrefix);}else{c=window.location.protocol+"//"+custom_labels.LoginFormPanel_accountUrlPrefix+"."+serverDomainUrl;
}return c;}function getReviewpadGeneralUrlWithoutProtocol(){var b="";var a=getSubDomain();if(a!=""){b=replaceText(window.location.host,a,custom_labels.LoginFormPanel_accountUrlPrefix);}else{b=custom_labels.LoginFormPanel_accountUrlPrefix+"."+serverDomainUrl;}return b;}function getSubDomain(){var e=document.location.hostname;
var b="";if(e){var d=e.split(".").length;if(d>2){var c=e.lastIndexOf(".");var a=e.lastIndexOf(".",c-1);b=e.substring(0,a);}}return b;}function reservedAccountUrl(a){var f=reservedAccountUrls.split(",");var d=false;for(var c=0;c<f.length;c++){a=a.trim();var e=f[c].trim();var b=e.length;if(e.charAt(b-1)=="*"){if(a.indexOf(e.substring(0,b-1))===0){d=true;
}}else{if(e==a){d=true;}}if(d){return d;}}return d;}function redirectToLogin(){document.location.href="login.do";}function getResponseTypeIcon(a){if(a==lookup_codes.PAD_RESPONSE_TYPE_MARKUP){return'<img src="../images/default/s.gif" class="icon-response-markup" ext:qtip="'+custom_labels.ResponseGridPanel_responseType_markupComment+'">';
}else{if(a==lookup_codes.PAD_RESPONSE_TYPE_APPROVAL){return'<img src="../images/default/s.gif" class="icon-response-approval" ext:qtip="'+custom_labels.ResponseGridPanel_responseType_approvalComment+'">';}else{if(a==lookup_codes.PAD_RESPONSE_TYPE_DOWNLOAD){return'<img src="../images/default/s.gif" class="icon-response-download" ext:qtip="'+custom_labels.ResponseGridPanel_responseType_fileDownload+'">';
}}}return'<img src="../images/default/s.gif" class="icon-response-comment" ext:qtip="'+custom_labels.ResponseGridPanel_responseType_padComment+'">';}function getApprovalStatusIcon(c,b,d,a){if(c==lookup_codes.APPROVAL_STATUS_APPROVED){return'<img src="../images/default/s.gif" class="icon-approval-status-1" ext:qtip="'+createTooltip(b,d,a)+'" />';
}else{if(c==lookup_codes.APPROVAL_STATUS_APPROVED_PENDING){return'<img src="../images/default/s.gif" class="icon-approval-status-2" ext:qtip="'+createTooltip(b,d,a)+'" />';}else{if(c==lookup_codes.APPROVAL_STATUS_PENDING){return'<img src="../images/default/s.gif" class="icon-approval-status-3" ext:qtip="'+createTooltip(b,d,a)+'" />';
}else{if(c==lookup_codes.APPROVAL_STATUS_PENDING_APPROVED_REJECTED){return'<img src="../images/default/s.gif" class="icon-approval-status-4" ext:qtip="'+createTooltip(b,d,a)+'" />';}else{if(c==lookup_codes.APPROVAL_STATUS_APPROVED_REJECTED){return'<img src="../images/default/s.gif" class="icon-approval-status-5" ext:qtip="'+createTooltip(b,d,a)+'" />';
}else{if(c==lookup_codes.APPROVAL_STATUS_PENDING_REJECTED){return'<img src="../images/default/s.gif" class="icon-approval-status-6" ext:qtip="'+createTooltip(b,d,a)+'" />';}else{if(c==lookup_codes.APPROVAL_STATUS_REJECTED){return'<img src="../images/default/s.gif" class="icon-approval-status-7" ext:qtip="'+createTooltip(b,d,a)+'" />';
}}}}}}}return"";}function checkUserEditPermissions(a,b){switch(userPrincipal.userType){case lookup_codes.ROLE_SUPERUSER:return true;break;case lookup_codes.ROLE_ADMINISTRATOR:return true;break;case lookup_codes.ROLE_USER:if((a==userPrincipal.personKey)||(b==lookup_codes.ROLE_REVIEWER)){return true;}break;
}return false;}var rhwin;window.name="reviewpad";function openRoboheadWindow(a){if(rhwin!=null&&!rhwin.closed){rhwin.focus();}if(window.opener!=null&&!window.opener.closed){window.opener.focus();window.opener.location.href=a;return;}rhwin=window.open(a,"robohead","toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable,alwaysRaised,dependent,titlebar=yes");
if(rhwin!=null){rhwin.focus();}}function setDefaultScreen(b,a){switch(b){case lookup_codes.SCREEN_PAD_ADD:newPad("CREATE-PAD");break;case lookup_codes.SCREEN_PAD_EDIT:if(a>0){editPad(null,false);}else{Ext.Msg.alert("Message",custom_labels.ht.get("error.user.padNotFound"));}break;case lookup_codes.SCREEN_PAD_VIEW:if(a>0){viewPad(null,true);
}else{Ext.Msg.alert("Message",custom_labels.ht.get("error.user.padNotFound"));}break;case lookup_codes.SCREEN_PERSON_ADD:newPerson();break;case lookup_codes.SCREEN_PERSON_EDIT:if(a>0){openPerson(null,false);}else{Ext.Msg.alert("Message",custom_labels.ht.get("error.user.userNotFound"));}break;case lookup_codes.SCREEN_PERSON_VIEW:if(a>0){openPerson(null,true);
}else{Ext.Msg.alert("Message",custom_labels.ht.get("error.user.userNotFound"));}break;}}function days_between(e){var f=1000*60*60*24;var d=new Date().getTime();var c=e.getTime();var b=Math.abs(d-c);var a=Math.round(b/f);if(new Date()>e){a=-a;}return a;}function openWindow(a){var b;window.name="reviewpad_forum";
b=window.open(a,"reviewpad","toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable,alwaysRaised,dependent,titlebar=yes");b.focus();}function getStateList(){var a=[["AL","Alabama"],["AK","Alaska"],["AZ","Arizona"],["AR","Arkansas"],["CA","California"],["CO","Colorado"],["CT","Connecticut"],["DE","Delaware"],["DC","District of Columbia"],["FL","Florida"],["GA","Georgia"],["HI","Hawaii"],["ID","Idaho"],["IL","Illinois"],["IN","Indiana"],["IA","Iowa"],["KS","Kansas"],["KY","Kentucky"],["LA","Louisiana"],["ME","Maine"],["MD","Maryland"],["MA","Massachusetts"],["MI","Michigan"],["MN","Minnesota"],["MS","Mississippi"],["MO","Missouri"],["MT","Montana"],["NE","Nebraska"],["NV","Nevada"],["NH","New Hampshire"],["NJ","New Jersey"],["NM","New Mexico"],["NY","New York"],["NC","North Carolina"],["ND","North Dakota"],["OH","Ohio"],["OK","Oklahoma"],["OR","Oregon"],["PA","Pennsylvania"],["RI","Rhode Island"],["SC","South Carolina"],["SD","South Dakota"],["TN","Tennessee"],["TX","Texas"],["UT","Utah"],["VT","Vermont"],["VA","Virginia"],["WA","Washington"],["WV","West Virginia"],["WI","Wisconsin"],["WY","Wyoming"]];
return a;}function getCountryList(){var a=[["USA"],["Canada"],["UK"]];return a;}function dateFormatting(c){var a=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var b="";var e=c.getDate();var g=c.getMonth();var h=c.getFullYear();var f=c.getHours();var i=c.getMinutes();
if(f<12){b="AM";}else{b="PM";}if(f==0){f=12;}if(f>12){f=f-12;}i=i+"";if(i.length==1){i="0"+i;}f=f+"";if(f.length==1){f="0"+f;}var d=a[g]+" "+e+", "+h+" "+f+":"+i+" "+b;return d;}Ext.namespace("Aquent.reviewpad");Aquent.reviewpad.ErrorDialog=Ext.extend(Ext.Window,{labels:null,id:"error-dialog-popup",initComponent:function(){if(!this.labels){this.labels=new Aquent.reviewpad.Properties();}var d=Ext.DomQuery.selectValue("Username",this.errorResponse);var b=Ext.DomQuery.selectValue("Userphone",this.errorResponse);
var c=Ext.DomQuery.selectValue("Useremail",this.errorResponse);var a=new Ext.FormPanel({url:"submitError.jsp",frame:false,bodyStyle:"padding:5px 5px 0",autoScroll:true,items:[{xtype:"fieldset",id:"user-info-fieldset",title:this.labels.ErrorDialog_userInfoFieldsetTitle,labelWidth:100,collapsible:false,collapsed:false,autoHeight:true,defaultType:"textfield",defaults:{width:300},items:[{fieldLabel:this.labels.ErrorDialog_username,name:"userName",id:"user-info-userName",allowBlank:false,value:d},{fieldLabel:this.labels.ErrorDialog_phone,name:"phone",id:"user-info-phone",value:b},{fieldLabel:this.labels.ErrorDialog_email,name:"email",id:"user-info-email",allowBlank:false,value:c,vtype:"email"}]},{xtype:"fieldset",id:"submit-error-form-fieldset",title:this.labels.ErrorDialog_errorInfoFieldsetTitle,labelWidth:100,collapsible:false,collapsed:false,autoHeight:true,defaultType:"textfield",defaults:{width:300},items:[{fieldLabel:this.labels.ErrorDialog_whathappened,name:"whatHappened",id:"submit-error-form-whatHappened",allowBlank:false},{fieldLabel:this.labels.ErrorDialog_details,xtype:"textarea",name:"details",id:"submit-error-form-details",allowBlank:false}]}]});
Ext.apply(this,{title:this.labels.ErrorDialog_pageTitle,closable:true,autoScroll:true,width:500,height:310,layout:"fit",resizable:false,modal:true,items:[a],buttons:[{text:this.labels.ErrorDialog_submitBtn,handler:this.submitApplicationError},{text:this.labels.ErrorDialog_dontSubmitBtn,handler:function(){Ext.getCmp("error-dialog-popup").close();
}}]});Aquent.reviewpad.ErrorDialog.superclass.initComponent.apply(this,arguments);},submitApplicationError:function(){var a={};a.action="SUBMIT-APPLICATION-ERROR";a.op=5;a.userName=Ext.getCmp("user-info-userName").getValue();a.phone=Ext.getCmp("user-info-phone").getValue();a.email=Ext.getCmp("user-info-email").getValue();
a.whatHappened=Ext.getCmp("submit-error-form-whatHappened").getValue();a.details=Ext.getCmp("submit-error-form-details").getValue();handleXHRCalls("util.do",a);},onRender:function(){Aquent.reviewpad.ErrorDialog.superclass.onRender.apply(this,arguments);}});function initExtensions(){Ext.override(Ext.form.TextArea,{listeners:{blur:function(a){if(this.readOnly){a.addClass("x-form-text-without-border");}}}});Ext.apply(Ext.form.VTypes,{"multiemail":function(a){var c=a.split(",");var b=true;Ext.each(c,function(d){if(!this.email(d)){b=false;return false;}},this);
return b;},"multiemailMask":/[a-z0-9_\.\-@,]/i,"creditCardExpDate":function(a){var b=true;if(a!=""&&!/^((0[1-9])|(1[0-2]))\/(\d{4})$/.test(a)){b=false;}return b;},"multitag":function(a){var c=a.split(",");var b=true;for(i=0;i<c.length;i++){for(j=0;j<c.length;j++){if(c[i]==c[j]&&i!=j){return false;}}}return b;
},"multitagText":"tag value should not repeat"});Ext.override(Ext.layout.FormLayout,{renderItem:function(h,a,f){if(h&&(h.isFormField||h.fieldLabel)&&h.inputType!="hidden"){if(h.allowBlank==false||h.helpMsg){var g=(h.requiredMsg?h.requiredMsg:window.custom_labels.General_RequiredFieldTooltip);var b='<img ext:qtip="'+g+'" src="../images/default/s.gif" class="icon-field-required">';
var e='<img ext:qtip="'+h.helpMsg+'" src="../images/default/s.gif" class="icon-field-help">';h.fieldLabel=h.fieldLabel+(typeof h.labelSeparator=="undefined"?this.labelSeparator:h.labelSeparator)+(h.allowBlank==false?"&nbsp;"+b:"")+(h.helpMsg?"&nbsp;"+e:"");h.labelSeparator="";}var d=this.getTemplateArgs(h);
if(Ext.isNumber(a)){a=f.dom.childNodes[a]||null;}if(a){h.itemCt=this.fieldTpl.insertBefore(a,d,true);}else{h.itemCt=this.fieldTpl.append(f,d,true);}h.actionMode="itemCt";if(!h.rendered){h.render("x-form-el-"+h.id);}else{if(!this.isValidParent(h,f)){Ext.fly("x-form-el-"+h.id).appendChild(h.getPositionEl());
}}if(!h.getItemCt){Ext.apply(h,{getItemCt:function(){return h.itemCt;},customItemCt:true});}h.container=h.itemCt;h.actionMode="container";h.label=h.getItemCt().child("label.x-form-item-label");if(this.trackLabels&&!this.isHide(h)){if(h.hidden){this.onFieldHide(h);}h.on({scope:this,show:this.onFieldShow,hide:this.onFieldHide});
}this.configureItem(h);}else{Ext.layout.FormLayout.superclass.renderItem.apply(this,arguments);}}});Ext.override(Ext.form.Field,{getItemCt:function(){return this.itemCt;}});Ext.override(Ext.tree.TreeDropZone,{isValidDropPoint:function(a,l,h,d,c){if(!a||!c){return false;}var f=a.node;var g=c.node;f.leaf=false;
if(!(f&&f.isTarget&&l)){return false;}if(l=="append"&&f.allowChildren===false){return false;}if((l=="above"||l=="below")){return false;}if(g&&(f==g||g.contains(f))){return false;}var b=this.dragOverData;b.tree=this.tree;b.target=f;b.data=c;b.point=l;b.source=h;b.rawEvent=d;b.dropNode=g;b.cancel=false;
var k=this.tree.fireEvent("nodedragover",b);return b.cancel===false&&k!==false;}});Ext.override(Ext.dd.DDProxy,{startDrag:function(b,d){var a=Ext.get(this.getDragEl());var c=Ext.get(this.getEl());a.dom.body=c.dom.body;a.applyStyles({border:"1","z-index":10000});a.update(c.dom.innerHTML);a.addClass(c.dom.className+" dd-proxy");
},onDragOver:function(c,a){if("view-markup-page-panel"===a){var b=Ext.get(a);b.addClass("dd-over");}},onDragOut:function(c,a){if("view-markup-page-panel"===a){var b=Ext.get(a);b.removeClass("dd-over");}},endDrag:function(c){var a=Ext.get(this.getDragEl());var b=Ext.get(this.getEl());addChildWindow(null,null,false,c.getPageX(),c.getPageY());
Ext.get("view-markup-page-panel").removeClass("dd-over");}});Ext.override(Ext.form.Checkbox,{getResizeEl:function(){if(!this.resizeEl){this.resizeEl=Ext.isSafari||Ext.isIE?this.wrap:(this.wrap.up(".x-form-element",5)||this.wrap);}return this.resizeEl;}});Ext.override(Ext.form.ComboBox,{setValue:function(a){if(this.store.getCount()==0){this.store.on("load",this.setValue.createDelegate(this,[a]),null,{single:true});
return;}var c=a;if(this.valueField){var b=this.findRecord(this.valueField,a);if(b){c=b.data[this.displayField];}else{if(this.valueNotFoundText!==undefined){c=this.valueNotFoundText;}}}this.lastSelectionText=c;if(this.hiddenField){this.hiddenField.value=a;}Ext.form.ComboBox.superclass.setValue.call(this,c);
this.value=a;}});Ext.apply(Ext.form.VTypes,{daterange:function(f,e){var b=e.parseDate(f);var d=function(g){var h=g.activeDate;g.activeDate=null;g.update(h);};if(e.startDateField){var c=Ext.getCmp(e.startDateField);c.maxValue=b;if(c.menu&&c.menu.picker){c.menu.picker.maxDate=b;d(c.menu.picker);}}else{if(e.endDateField){var a=Ext.getCmp(e.endDateField);
if(b<(new Date()).clearTime()){b=(new Date()).clearTime();}a.minValue=b;if(a.menu&&a.menu.picker){a.menu.picker.minDate=b;d(a.menu.picker);}}}return true;},searchdaterange:function(f,e){var b=e.parseDate(f);var d=function(g){var h=g.activeDate;g.activeDate=null;g.update(h);};if(e.startDateField){var c=Ext.getCmp(e.startDateField);
c.maxValue=b;if(c.menu&&c.menu.picker){c.menu.picker.maxDate=b;d(c.menu.picker);}}else{if(e.endDateField){var a=Ext.getCmp(e.endDateField);a.minValue=b;if(a.menu&&a.menu.picker){a.menu.picker.minDate=b;d(a.menu.picker);}}}return true;},password:function(c,b){if(b.initialPassField){var a=Ext.getCmp(b.initialPassField);
return(c==a.getValue());}return true;},passwordText:window.custom_labels.ht.get("validate.folder.passwordCrosscheck")});}Ext.namespace("Aquent.reviewpad");Aquent.reviewpad.ForgotPassword=Ext.extend(Ext.Window,{labels:null,id:"forgot-password-popup",initComponent:function(){if(!this.labels){this.labels=new Aquent.reviewpad.Properties();}var a=new Ext.FormPanel({id:"forgot-password-form",frame:false,bodyStyle:"padding:5px 5px 0",autoScroll:true,items:[{xtype:"fieldset",id:"forgot-password-fieldset",labelWidth:135,collapsible:false,collapsed:false,autoHeight:true,items:[{html:"<div>"+this.labels.ForgotPassword_messageText+"</div>",cls:"messageText",border:false},{fieldLabel:this.labels.ForgotPassword_email,xtype:"textfield",width:200,id:"forgot-password-email",name:"forgot-password-email",allowBlank:false,vtype:"email"},{layout:"column",border:false,bodyStyle:{padding:"0 0 5 0"},items:[{xtype:"label",width:140,text:this.labels.ForgotPassword_verificationImage,cls:"labelText"},{xtype:"box",id:"forgot-password-verification-image",imageSrc:"randomImage.do",autoEl:{tag:"img",height:50,width:198},refreshImage:function(c){var b;
if(b=this.el){b.dom.src=(c||this.imageSrc)+"?dc="+new Date().getTime();}},listeners:{render:function(){this.refreshImage();}}}]},{fieldLabel:this.labels.ForgotPassword_verificationImageText,id:"forgot-password-verification-image-text",xtype:"textfield",width:100,allowBlank:false}]}]});Ext.apply(this,{title:this.labels.ForgotPassword_pageTitle,closable:true,width:421,height:300,y:175,layout:"fit",draggable:false,resizable:false,modal:true,items:[a],buttonAlign:"center",buttons:[{text:this.labels.ForgotPassword_resetBtn,handler:this.checkForAccounts}]});
Aquent.reviewpad.ForgotPassword.superclass.initComponent.apply(this,arguments);},checkForAccounts:function(){var b=Ext.getCmp("forgot-password-form");var a=Ext.getCmp("forgot-password-popup");var c="."+serverDomainUrl;if(!b.getForm().isValid()){Ext.getCmp("forgot-password-verification-image").refreshImage();
Ext.Msg.alert("Error",custom_labels.ht.get("validate.validationFailure"));Ext.getCmp("forgot-password-verification-image-text").setValue("");return;}if(getSubDomain()==custom_labels.LoginFormPanel_accountUrlPrefix||getSubDomain()==""){var d=new Ext.data.Store({url:"login.do",autoLoad:true,baseParams:{op:2,email:Ext.getCmp("forgot-password-email").getValue()},reader:new Ext.data.XmlReader({record:"Account",id:"id"},[{name:"Id",mapping:">Id"},{name:"AccountUrl",type:"string"},{name:"AccountExpired",type:"string"}]),listeners:{load:function(f,e,g){var h=f.getCount();
if(h==0){document.location.href="login.do?msg=error.user.noAccount";}else{if(h==1){if(checkAccountExpired(f.getAt(0).get("AccountExpired"))){document.location.href="login.do?msg=error.user.betaCodeExpired";}else{a.submitForm(f.getAt(0).get("Id"));}}else{showAccountPopupWindow(f,c,true);}}},loadexception:function(h,g,e,f){Ext.Msg.alert("Error",custom_labels.ht.get("error.app.getAccounts"));
}}});}else{if(dbAccountExpired=="true"){document.location.href="login.do?msg=error.user.betaCodeExpired";}else{a.submitForm(dbAccountId);}}},submitForm:function(b){var a={};a.action="FORGOT-PASSWORD-ACTION";a.email=Ext.getCmp("forgot-password-email").getValue();a.accountId=b;a.dynamicText=Ext.getCmp("forgot-password-verification-image-text").getValue();
handleSignupXHRCalls("login.do?op=1",a);},onRender:function(){Aquent.reviewpad.ForgotPassword.superclass.onRender.apply(this,arguments);}});Ext.ux.Hashtable=function(){this.clear=o;this.containsKey=m;this.containsValue=i;this.get=b;this.isEmpty=e;this.keys=n;this.put=g;this.remove=l;this.size=p;this.toString=f;this.values=c;var k={};var h=0;var a={};function o(){k={};h=0;}function m(q){if(a[q]){return false;}return(k[q]!=null);}function i(s){var q=d();
for(var r=0;r<q.length;r++){if(q[r]==s){return true;}}return false;}function b(q){if(q in k){return k[q];}return undefined;}function e(){return(h==0);}function n(){return j();}function g(q,r){if(q==null||r==null){throw"NullPointerException {"+q+"},{"+r+"}";}else{var s=(q in k);k[q]=r;if(!s){h++;}}}function l(q){if(q in k&&!a[q]){delete k[q];
h--;return true;}return false;}function p(){return h;}function f(){var q="";var r=j();for(var s=0;s<r.length;s++){if(TI.Util.isNullOrUndefined(k[r[s]])){q+="{"+r[s]+"},{"+k[r[s]]+"}\n";}}return q;}function c(){return d();}function d(){var q=[];for(var r in k){if(!a[r]){q.push(k[r]);}}return q;}function j(){var q=[];
for(var r in k){if(!a[r]){q.push(r);}}return q;}};Ext.namespace("Aquent.reviewpad");Aquent.reviewpad.LoginForm=Ext.extend(Ext.FormPanel,{id:"login-form",initComponent:function(){var e;var d=readCookie("remPassword");if(readCookie("remEmailAddress")){e=readCookie("remEmailAddress");}if(d){var c={};c.action="DECRYPTED-PASS";c.password=d;c.op=4;handleSignupXHRCalls("login.do",c);
}var b=document.getElementById("loginErrorCode").value;var a="";if(b!=""){if(b=="error.user.noAccount"){a=getNoAccountFoundMessage();}else{a=this.custom_labels.ht.get(b);}}Ext.apply(this,{url:"j_spring_security_check",standardSubmit:true,bodyStyle:"padding:5px 5px 0",bodyBorder:false,hideMode:"offsets",keys:[{key:[Ext.EventObject.ENTER],fn:function(){rememberLoginDetails();
}}],items:[{xtype:"box",id:"login-form-msg-area",hidden:true,autoEl:{tag:"div",href:"#",html:a},cls:"loginMessage"},{xtype:"panel",layout:"form",border:false,bodyStyle:"padding:5px 5px 0",id:"login-form-fieldset",labelWidth:105,collapsible:false,width:400,height:162,items:[{fieldLabel:this.custom_labels.LoginFormPanel_username,name:"j_username_dummy",id:"j_username_dummy",xtype:"textfield",width:200,enableKeyEvents:true,vtype:"email",allowBlank:false,autoCreate:{tag:"input",type:"text",autocomplete:"on"},blankText:this.custom_labels.LoginFormPanel_emailEmptyValidation,value:e,listeners:{change:function(h,g,f){Ext.getCmp("j_username").setValue(g);
},keyup:function(){Ext.getCmp("account-email-address").setValue(this.getValue());}}},{hideLabel:true,name:"j_username",id:"j_username",xtype:"textfield",hidden:true,itemCls:{display:"none"},allowBlank:false,value:e},{fieldLabel:this.custom_labels.LoginFormPanel_password,name:"j_password",id:"j_password",xtype:"textfield",inputType:"password",width:200,autoCreate:{tag:"input",type:"password",autocomplete:"on"},allowBlank:false,blankText:this.custom_labels.LoginFormPanel_passwordEmptyValidation},{boxLabel:this.custom_labels.LoginFormPanel_rememberme,hideLabel:false,xtype:"checkbox",id:"_spring_security_remember_me",name:"_spring_security_remember_me",labelSeparator:"",inputValue:"yes",checked:(e)},{boxLabel:this.custom_labels.LoginFormPanel_rememberPassword,hideLabel:false,xtype:"checkbox",id:"_spring_security_remember_password",name:"_spring_security_remember_password",labelSeparator:"",inputValue:"yes",checked:(d)},new Ext.BoxComponent({bodyBorder:false,id:"forgot-pass-link",autoEl:{tag:"a",href:"#",html:this.custom_labels.LoginFormPanel_forgotPassword},cls:"forgot-pass-box",listeners:{render:function(f){f.getEl().on("click",Ext.getCmp("login-form").forgotPassword,f,{stopEvent:true});
}}})],listeners:{render:function(){if(Ext.isIE){this.getEl().addClass("ext-ie");}if(b!="null"){Ext.getCmp("login-form-msg-area").show();}}}}],buttonAlign:"center",buttons:[{text:this.custom_labels.LoginFormPanel_loginButton,handler:rememberLoginDetails}]});Aquent.reviewpad.LoginForm.superclass.initComponent.apply(this,arguments);
},forgotPassword:function(){var a=new Aquent.reviewpad.ForgotPassword();a.show();},onRender:function(){Aquent.reviewpad.LoginForm.superclass.onRender.apply(this,arguments);}});Ext.reg("loginform",Aquent.reviewpad.LoginForm);function rememberLoginDetails(){var g=Ext.getCmp("login-form").getForm();if(!g.isValid()){Ext.Msg.alert("Error",custom_labels.ht.get("validate.validationFailure"));
return false;}var f=Ext.getCmp("_spring_security_remember_me").getValue();var a=Ext.getCmp("_spring_security_remember_password").getValue();var d=Ext.getCmp("j_username").getValue();var e=Ext.getCmp("j_username_dummy").getValue();var b=Ext.getCmp("j_password").getValue();if(f){createCookie("remEmailAddress",e,lookup_codes.Application_cookieExpireDays);
}else{eraseCookie("remEmailAddress");}if(a){var c={};c.action="ENCRYPTED-PASS";c.password=b;c.op=3;handleSignupXHRCalls("login.do",c);}else{eraseCookie("remPassword");submitLoginForm();}}function submitLoginForm(){var b=Ext.getCmp("login-form").getForm();if(b.isValid()){if(getSubDomain()==custom_labels.LoginFormPanel_accountUrlPrefix||getSubDomain()==""){var a={};
a.action="GET-ACCOUNTS-FROM-EMAIL-ACTION";a.email=Ext.getCmp("j_username").getValue();a.op=2;handleSignupXHRCalls("login.do",a);}else{if(dbAccountExpired=="true"){document.location.href="login.do?msg=error.user.betaCodeExpired";}else{submitLoginFormInfo(dbAccountId,dbAccountUrl,dbEnableSSL);}}}else{Ext.Msg.alert("Error",custom_labels.ht.get("validate.validationFailure"));
return false;}}Ext.namespace("Aquent.reviewpad");Aquent.reviewpad.LookupCodes=function(a){this.labels=a;this.REVIEWPAD_SUPPORT_EMAIL_ADDRESS="reviewpad-support@aquent.com";this.LookupCodes_AccountTypePersonal="Personal Account";this.LookupCodes_AccountTypeProfessional="Professional Plus Account";this.LookupCodes_AccountTypeTeam="Team Account";
this.LookupCodes_AccountTypeCorporate="Corporate Account";this.LookupCodes_AccountTypeFreeLite="Free Account";this.LookupCodes_AccountTypeProfessionalLite="Professional Account";this.LookupCodes_ColorSchemeExtDefault="Business Blue";this.LookupCodes_ColorSchemeExtSlate="Slammin' Slate";this.LookupCodes_ColorSchemeExtGray="Mostly Gray";
this.LookupCodes_ColorSchemeRP="ReviewPad Default";this.Application_timeoutDuration=1800000;this.Application_cookieExpireDays=7;this.ReviewFile_standardSize_1000=1000;this.ReviewFile_standardSize_700=700;this.ReviewFile_displayMode_autoFit="Auto Fit";this.ReviewFile_displayMode_fullSize="Full Size";this.ReviewFile_viewFileWindowWidth=1030;
this.ReviewFile_viewFileWindowHeight=1062;this.ReviewFile_markupWindowWidth=1235;this.ReviewFile_markupWindowHeight=1062;this.ReviewFile_commentWindowWidth=250;this.ReviewFile_commentWindowHeight=100;this.Default_ScrollBarWidth=19;this.Default_SpaceWidth=100;this.ReviewFile_markupWindow_pagingBarHeight=28;
this.ReviewFile_commentButton_padding_top=10;this.ReviewFile_commentButton_padding_left=24;this.LookupCodes_textBytes=" Bytes";this.LookupCodes_textKB=" KB";this.LookupCodes_textMB=" MB";this.LookupCodes_textGB=" GB";this.HomePage_logoText="ReviewPad";this.NewFileFormPanel_maxFileUploadSize=1048576;this.AccountUpgradeForm_storageVal2GBLbl="2 GB";
this.AccountUpgradeForm_storageVal10GBLbl="10 GB";this.AccountUpgradeForm_storageVal50GBLbl="50 GB";this.Header_height_for_Free_lite="80px";this.Header_height_for_other="70px";this.HeaderLogo_top_for_Free_lite="30px";this.HeaderLogo_top_for_other="13px";this.HeaderRight_top_for_Free_lite="25px";this.HeaderRight_top_for_other="10px";
this.AvailableStorageLabel_top_for_Free_lite="54px";this.AvailableStorageLabel_top_for_other="39px";this.UploadStatusPanel_refreshInterval=1000;this.UploadStatusPanel_closeDelay=1000;this.ROLE_ADMINISTRATOR=1;this.ROLE_USER=2;this.ROLE_REVIEWER=3;this.ROLE_SUPERUSER=4;this.VIEW_DOWNLOAD_FILES_ONLY=1;
this.COMMENTS_AND_FEEDBACK=2;this.REQUEST_APPROVAL=3;this.SCREEN_PAD_ADD="Pad_add";this.SCREEN_PAD_VIEW="Pad_view";this.SCREEN_PAD_EDIT="Pad_edit";this.SCREEN_PERSON_ADD="User_add";this.SCREEN_PERSON_VIEW="User_view";this.SCREEN_PERSON_EDIT="User_edit";this.ENABLE_RH=2;this.DISABLE_RH=1;this.ENABLE_SSL=2;
this.DISABLE_SSL=1;this.ENABLE_PROMPT_CHOOSE_FOLDER=2;this.DISABLE_PROMPT_CHOOSE_FOLDER=1;this.ENABLE_KEEP_NEW_PAD_OPEN=2;this.DISABLE_KEEP_NEW_PAD_OPEN=1;this.ENABLE_BRANDING_TYPE=2;this.DISABLE_BRANDING_TYPE=1;this.ENABLE_DOWNLOAD_FILE_LINK=1;this.DISABLE_DOWNLOAD_FILE_LINK=0;this.ENABLE_EMAIL_SUPPORT=2;
this.DISABLE_EMAIL_SUPPORT=1;this.ENABLE_CUSTOM_URL=2;this.DISABLE_CUSTOM_URL=1;this.APPROVAL_STATUS_IN_PROGRESS=1;this.APPROVAL_STATUS_APPROVED=2;this.APPROVAL_STATUS_APPROVED_WITH_CHANGES=3;this.APPROVAL_STATUS_REJECTED=4;this.APPROVER_STATUS_NOT_DECIDE=0;this.APPROVER_STATUS_APPROVED=1;this.APPROVER_STATUS_REJECTED=2;
this.APPROVER_STATUS_APPROVED_WITH_CHANGES=3;this.ACCTYPE_FREE_LITE=1;this.ACCTYPE_PROFESSIONAL_LITE=2;this.ACCTYPE_TEAM=3;this.ACCTYPE_CORPORATE=4;this.ACCTYPE_AQUENT_TALENT=5;this.STORAGE_TYPE_1=1;this.STORAGE_TYPE_2=2;this.STORAGE_TYPE_3=3;this.DISPLAY_SIGNUP_NONE=0;this.DISPLAY_SIGNUP_BETA_CODE_ENTERED=1;
this.DISPLAY_SIGNUP_BETA_CODE_NOT_ENTERED=2;this.DISPLAY_SIGNUP_ALWAYS=3;this.DELETE_FILES_WITH_PAD_ALWAYS_FALSE=0;this.DELETE_FILES_WITH_PAD_ALWAYS_TRUE=1;this.DELETE_FILES_WITH_PAD_DEFAULT_TO_TRUE=2;this.DELETE_FILES_WITH_PAD_DEFAULT_TO_FALSE=3;this.ACCSTATUS_ACTIVE=1;this.ACCSTATUS_INACTIVE=2;this.ACCSTATUS_CANCELLED=3;
this.ACCSTATUS_SIGNUP_PENDING=4;this.UPLOAD_STATUS_STARTED=1;this.UPLOAD_STATUS_UPLOADED=2;this.UPLOAD_STATUS_PROCESSED=3;this.UPLOAD_STATUS_COMPLETE=4;this.UPLOAD_STATUS_FAILED=5;this.FILE_STATUS_NONE=1;this.FILE_STATUS_PENDING=2;this.FILE_STATUS_IN_PROGRESS=3;this.FILE_STATUS_FILE_RETRIEVED=4;this.FILE_STATUS_IMAGES_CREATED=5;
this.FILE_STATUS_SUCCESS=6;this.FILE_STATUS_FAILED=7;this.COLOR_SCHEME_EXT_DEFAULT=1;this.COLOR_SCHEME_EXT_SLATE=2;this.COLOR_SCHEME_EXT_GRAY=3;this.COLOR_SCHEME_RP=4;this.ALL_REVIEWERS=1;this.NEW_REVIEWERS=2;this.NO_REVIEWER=3;this.MAX_PAGESIZE_FILEGRID=100;this.MAX_PAGESIZE_PEOPLEGRID=200;this.MAX_PAGESIZE_PADGRID=5;
this.MAX_PAGESIZE_PAD_RESPONSESGRID=10;this.HEIGHT_TIPS_PANEL=180;this.HEIGHT_SETUP_PANEL=70;this.HEIGHT_UPLOAD_PROGRESS_PANEL=200;this.HEIGHT_FOLDER_TREE_PANEL=200;this.PROC_EMPTY_XML="/sampledata/xml/empty.xml";this.PROC_GET_FILES="/file.do?op=0";this.PROC_SEARCH_PEOPLE="/people.do?op=5";this.PROC_SEARCH_PADS="/pad.do?op=5";
this.PROC_GET_PAD_RESPONSES_PERSON="/pad.do";this.PROC_GET_PAD_RESPONSES_PAD="/pad.do?op=9";this.PROC_GET_FOLDERS="/folder.do?includeSubFolders=true";this.PROC_SWITCH_ACCOUNT="/account.do?op=6";this.PROC_UPLOAD_FILE="/upload.do?op=2";this.PROC_MY_PADS="/pad.do?op=7";this.PROC_REVIEW_URL="/review.do";
this.PROC_LICENSE_URL="/license.do";this.DEFAULT_HEADER_LOGO_URL="../images/rp-logo.png";this.PAD_RESPONSE_MARKUP_ICON_URL="../images/post_it3.png";this.PAD_RESPONSE_APPROVAL_ICON_URL="../images/approval-16.gif";this.PAD_RESPONSE_COMMENT_ICON_URL="../images/comment.png";this.PAD_RESPONSE_DOWNLOAD_ICON_URL="../images/download.png";
this.SIGNUP_CONFIRMATION_URL="/signup_confirmation.html";this.FORUM_REVIEWPAD_URL="http://forums.reviewpad.net";this.USER_GUIDE_URL="http://w3.reviewpad.net/docs/ReviewPad+User+Guide.pdf";this.USER_GUIDE_WITH_RH_URL=" http://w3.reviewpad.net/docs/ReviewPad%20User%20Guide%20RH.pdf";this.PAD_RESPONSE_TYPE_MARKUP=1;
this.PAD_RESPONSE_TYPE_APPROVAL=2;this.PAD_RESPONSE_TYPE_COMMENT=3;this.PAD_RESPONSE_TYPE_DOWNLOAD=4;this.NO_PAD_DEFAULT_THUMBNAIL=1;this.PAD_DEFAULT_THUMBNAIL=2;this.PAD_FILE_DEFAULT_CHAR_LENGTH=28;this.ROOT_FOLDER_ID=-1;this.getColorScheme=function(c){codes=window.lookup_codes;var b=parseInt(c);switch(b){case window.lookup_codes.COLOR_SCHEME_EXT_DEFAULT:return this.LookupCodes_ColorSchemeExtDefault;
case window.lookup_codes.COLOR_SCHEME_EXT_SLATE:return this.LookupCodes_ColorSchemeExtSlate;case window.lookup_codes.COLOR_SCHEME_EXT_GRAY:return this.LookupCodes_ColorSchemeExtGray;case window.lookup_codes.COLOR_SCHEME_RP:return this.LookupCodes_ColorSchemeRP;}};this.getColorSchemes=function(){codes=window.lookup_codes;
var b=[[codes.COLOR_SCHEME_EXT_DEFAULT,codes.getColorScheme(codes.COLOR_SCHEME_EXT_DEFAULT)],[codes.COLOR_SCHEME_EXT_SLATE,codes.getColorScheme(codes.COLOR_SCHEME_EXT_SLATE)],[codes.COLOR_SCHEME_EXT_GRAY,codes.getColorScheme(codes.COLOR_SCHEME_EXT_GRAY)],[codes.COLOR_SCHEME_RP,codes.getColorScheme(codes.COLOR_SCHEME_RP)]];
var c=new Ext.data.SimpleStore({fields:[{name:"id"},{name:"name"}],data:b});return c;};this.getAccountType=function(b){var b=parseInt(b);switch(b){case window.lookup_codes.ACCTYPE_TEAM:return window.lookup_codes.LookupCodes_AccountTypeTeam;case window.lookup_codes.ACCTYPE_CORPORATE:return window.lookup_codes.LookupCodes_AccountTypeCorporate;
case window.lookup_codes.ACCTYPE_AQUENT_TALENT:return window.lookup_codes.LookupCodes_AccountTypeProfessional;case window.lookup_codes.ACCTYPE_FREE_LITE:return window.lookup_codes.LookupCodes_AccountTypeFreeLite;case window.lookup_codes.ACCTYPE_PROFESSIONAL_LITE:return window.lookup_codes.LookupCodes_AccountTypeProfessionalLite;
}};this.getFileUploadStatus=function(b){switch(b){case 1:return a.FileUpload_statusPending;case 2:return a.FileUpload_statusUploading;case 3:return a.FileUpload_statusComplete;case 4:return a.FileUpload_statusCompleteWithErrors;case 5:return a.FileUpload_statusFailed;}};this.getRoleType=function(b){b=parseInt(b);
switch(b){case 1:return a.PersonFormPanel_userTypeAdministrator;case 2:return a.PersonFormPanel_userTypeUser;case 3:return a.PersonFormPanel_userTypeReviewer;case 4:return a.PersonFormPanel_userTypeSuperuser;}};this.getCommentApprovalStatus=function(b){b=parseInt(b);switch(b){case 1:return a.ApprovalForm_approveActionOption;
case 2:return a.ApprovalForm_denyActionOption;case 3:return a.ApprovalForm_approveWithChangesActionOption;}};this.getFileSize=function(b){if(b/1024<1){b+=window.lookup_codes.LookupCodes_textBytes;}else{if((b/(1048756))<1){b=(b/1024).toFixed(2)+window.lookup_codes.LookupCodes_textKB;}else{if(b/1073741824<1){b=(b/1048756).toFixed(2)+window.lookup_codes.LookupCodes_textMB;
}else{if(b/1099511627776){b=(b/1073741824).toFixed(2)+window.lookup_codes.LookupCodes_textGB;}}}}return b;};this.getReviewType=function(b){b=parseInt(b);switch(b){case 1:return a.PadFormPanel_reviewTypeView;case 2:return a.PadFormPanel_reviewTypeComment;case 3:return a.PadFormPanel_reviewTypeApprove;
}};this.getResponseApprovalStatus=function(b){b=parseInt(b);switch(b){case 1:return a.PadFormPanel_ApprovalStatus_Approved;case 2:return a.PadFormPanel_ApprovalStatus_Rejected;case 3:return a.PadFormPanel_ApprovalStatus_ApprovedWithChanges;}};this.getProgressWidth=function(d,f){var c=parseInt(Ext.DomQuery.selectValue("NumApproved",f));
var e=parseInt(Ext.DomQuery.selectValue("NumPending",f));var b=parseInt(Ext.DomQuery.selectValue("ApprovalStatusId",f));if(b==window.lookup_codes.APPROVAL_STATUS_IN_PROGRESS){return(c/(c+e))*100;}return 0;};this.getAccountURL=function(b){if((userPrincipal.userType==lookup_codes.ROLE_SUPERUSER)||(userPrincipal.accountType==lookup_codes.ACCTYPE_FREE_LITE)){return b+"."+serverDomainUrl;
}return b;};};Ext.namespace("Aquent.reviewpad");Aquent.reviewpad.Preferences=function(){this.dateFormat="m/d/Y";this.FilesTab_defaultView="file-small-thumb-container";this.AddReviewpadFiles_defaultView="popup-small-thumb-container";this.SignupWizard_defaultCompany="";this.SignupWizard_defaultTimezone="US/Eastern";
};Ext.namespace("Aquent.reviewpad");Aquent.reviewpad.Properties=function(){this.General_RequiredFieldTooltip="This field is required";this.copyright_footer_links='<div align=\'center\' style=\'padding-top:10px;\'><span class=\'footer-panel\'>Powered by <a href="http://www.reviewpad.net" target="_blank"><span class="footer-reviewpad-text">ReviewPad</span></a></span><Br><span class=\'footer-panel-text\'>A service of <a href="http://www.aquent.com" target="_blank"><span class="footer-aquent-text">Aquent</span></a></span></div>',this.LoginFormPanel_username="Email Address";
this.LoginFormPanel_password="Password";this.LoginFormPanel_rememberme="Remember my email address";this.LoginFormPanel_rememberPassword="Remember my password";this.LoginFormPanel_loginInformation="LOGIN INFORMATION";this.LoginFormPanel_loginButton="Login";this.LoginFormPanel_forgotPassword="Forgot your password?";
this.LoginFormPanel_emailEmptyValidation="User name should not be blank";this.LoginFormPanel_passwordEmptyValidation="Password should not be blank";this.LoginFormPanel_accountPopup="Account";this.LoginFormPanel_accountPopup_selectAccount="Select Account";this.LoginFormPanel_accountUrlPrefix="www";this.LoginFormPanel_accountUrlDDLMsg="You have multiple accounts, please select the correct account to login.";
this.LoginPanel_noAccountFoundText='There is no account associated with this url.Please check that the typed url is correct or try going to <a href="$URL$">$DISPLAY_URL$</a> and login from there.';this.LoginPanel_loginTitle="LOGIN";this.LoginPanel_signUpTitle="SIGN-UP FOR A NEW ACCOUNT";this.LoginPanel_welcomeTitle="ReviewPad";
this.ForgotPassword_pageTitle="Forgot Password";this.ForgotPassword_fieldsetTitle="User Information";this.ForgotPassword_email="Email Address";this.ForgotPassword_verificationImage="Verification Image:";this.ForgotPassword_verificationImageText="Verification Image Text";this.ForgotPassword_resetBtn="Reset Password";
this.ForgotPassword_messageText="Enter your valid login email address and click on Reset Password Button. Your password will be reset and emailed to you.";this.SignupAccount_email="Email Address";this.SignupAccount_password="Password";this.SignupAccount_confirmPassword="Confirm Password";this.SignupAccount_betaCodeText="Beta Code";
this.SignupAccount_betaCodeHelpMsg="We are accepting users with beta code right now. Please enter the beta code to signup.";this.SignupAccount_verificationImageText="Verification Text";this.SignupAccount_startNewAccountWizard="Sign-up";this.SignupAccount_minPasswordCharsValidationText="Password should be at least 5 chars long";
this.SignupAccount_invalidPasswordText="Password and Confirm Password do not match.";this.SignupAccount_company="Company";this.SignupAccount_invalidEmailText='Email address like "anything@$SERVERDOMAINURL$" is not allowed.';this.SignupWizard_accountInfoTitle="ACCOUNT INFORMATION";this.SignupWizard_firstName="First Name";
this.SignupWizard_lastName="Last Name";this.SignupWizard_accountName="Account Name";this.SignupWizard_accountUrl="Account URL";this.SignupWizard_accountUrlTip="This field will default to whatever you entered in the Account Name field but you can change it to whatever you want and create a personalized URL for your account.  For example, if you enter 'acme' in this field you will access your account using the following URL:  https://acme.reviewpad.net";
this.SignupWizard_newAccountWizard="NEW ACCOUNT WIZARD";this.SignupWizard_previousItemLink="<span style='font-weight:bold'>&laquo; Prev</span>";this.SignupWizard_nextItemLink="<span style='font-weight:bold'>Next &raquo;</span>";this.SignupWizard_completeSignup="<span style='font-weight:bold'>Complete Signup</span>";
this.SignupWizard_accountType="ACCOUNT TYPE";this.SignupWizard_accountPreferncesTitle="ACCOUNT PREFERENCES";this.SignupWizard_accountLocale="Locale";this.SignupWizard_accountTimezone="Time Zone";this.SignupWizard_billingInformation="BILLING INFORMATION";this.SignupWizard_billingFirstName="First Name";
this.SignupWizard_billingLastName="Last Name";this.SignupWizard_creditCardNumber="Credit Card Number";this.SignupWizard_securityCode="Security Code";this.SignupWizard_creditCardExpDate="Credit Card Expiration Date";this.SignupWizard_creditCardExpDateEmptyMonthText="Month";this.SignupWizard_creditCardExpDateEmptyYearText="Year";
this.SignupWizard_billingAddressInformation="BILLING ADDRESS";this.SignupWizard_billingAddress="Address";this.SignupWizard_billingAddressCity="City";this.SignupWizard_billingAddressState="State";this.SignupWizard_billingAddressStateEmptyText="Select State...";this.SignupWizard_billingAddressZip="Zip";
this.SignupWizard_validateBillingAddressZip='This field should be a zip code in the format "12345" or "12345-6789"';this.SignupWizard_billingAddressCountry="Country";this.SignupWizard_billingAddressCountryEmptyText="Select Country...";this.SignupWizard_thankYouHtmlLabel="Please click 'Complete Signup' to create your new ReviewPad account.<br /><br />You will receive an email shortly with your account information.  Please click the link in the email to confirm receipt and you are ready to begin using ReviewPad.  <span style='font-weight:bold'>NOTE:  You will not be able to use your account until clicking on this link.</span><br /><br />After activating your account, if you have any problems logging in, try using the 'Forgot your password' link on the login screen.  If you continue to have problems accessing your account please post a message in the user forum (http://forums.reviewpad.net) and we will try and help you get started. <br><br> By clicking 'Complete Signup' you are agreeing to ReviewPad's  <a href=\"license.html\" target=\"_blank\">Terms of Service</a>.";
this.SignupWizard_accountActivated='Thank you for signing up, your account has been activated.  Please click "ok" and login with the user and password you created.';this.SignupWizard_termsAndConditions='By clicking \'Complete Signup\' you are agreeing to ReviewPad\'s  <a href="license.html" target="_blank">Terms of Service</a>.';
this.SignupWizard_Help_AccountUrlTip='You can choose a personal URL by upgrading to a professional account - for more information click "Upgrade to ReviewPad Professional now" after logging into your account.';this.Signup_confirmationMessage="You will receive an email shortly with your account information.  Please click the link in the email to confirm receipt and you are ready to begin using ReviewPad.  <span style='font-weight:bold'>NOTE:  You will not be able to use your account until clicking on this link.</span><br /><br />After activating your account, if you have any problems logging in, try using the 'Forgot your password' link on the login screen.  If you continue to have problems accessing your account please post a message in the <a href=\"http://forums.reviewpad.net/register.php\" class=\"webPageContentLink\">user forum</a> and we will try and help you get started.";
this.ErrorDialog_pageTitle="Application Error";this.ErrorDialog_userInfoFieldsetTitle="User Information";this.ErrorDialog_username="Your Name";this.ErrorDialog_phone="Your Phone";this.ErrorDialog_email="Your Email";this.ErrorDialog_errorInfoFieldsetTitle="Error Information";this.ErrorDialog_whathappened="What Happened";
this.ErrorDialog_details="Details";this.ErrorDialog_submitBtn="Submit";this.ErrorDialog_dontSubmitBtn="Don't Submit";this.ErrorDialog_appErrorSubmitted="We're sorry your ran into this problem but thanks for taking the time to help us make ReviewPad better.  The error report has been sent to technical support and we will start working on a fix right away.";
this.PersonFormPanel_fieldsetTitle="Person Information";this.PersonFormPanel_firstName="First Name";this.PersonFormPanel_lastName="Last Name";this.PersonFormPanel_email="Email";this.PersonFormPanel_company="Company";this.PersonFormPanel_userType="User Type";this.PersonFormPanel_userTypeFieldset="User Type";
this.PersonFormPanel_userTypeAdministrator="Administrator";this.PersonFormPanel_userTypeUser="User";this.PersonFormPanel_userTypeReviewer="Reviewer";this.PersonFormPanel_userTypeSuperuser="Super User";this.PersonFormPanel_passwordFieldset="User Information";this.PersonFormPanel_rhUsername="RoboHead Username";
this.PersonFormPanel_password="Password";this.PersonFormPanel_minPasswordCharsValidationText="Password should be at least 5 chars long";this.PersonFormPanel_confirmPassword="Confirm Password";this.PersonFormPanel_saveBtn="Save";this.PersonFormPanel_cancelBtn="Cancel";this.PersonFormPanel_myReviewsFieldset="My Reviews";
this.PersonFormPanel_myPadsFieldset="My Pads";this.PersonFormPanel_editBtn="Edit person";this.PersonFormPanel_modifyDefaultPassword="Please modify the default password";this.PersonFormPanel_confirmUpdateUser="There is already a user with this email address, would you like to update the existing user.";
this.PersonFormPanel_defaultemailSubject="Default Email Subject";this.PersonFormPanel_defaultemailMessage="Default Email Message";this.PersonFormPanel_padsPageSize="Pads per page";this.PersonFormPanel_timezone="Time Zone";this.PersonFormPanel_locale="Locale";this.PersonFormPanel_ValidateEmailAddress="Email Address should not be empty";
this.PersonFormPanel_ValidatePassword="Password should not be empty";this.PersonFormPanel_ValidateConfirmPassword="Confirm Password should not be empty";this.PersonFormPanel_DummyPassword="*****";this.ViewPersonTab_title="VIEW PERSON";this.EditPersonTab_title="EDIT PERSON";this.PeopleGridPanel_colFirstName="First Name";
this.PeopleGridPanel_colLastName="Last Name";this.PeopleGridPanel_colEmailAddress="Email Address";this.PeopleGridPanel_colUserType="User Type";this.PeopleGridPanel_bbarEmptyText="No people matching current search criteria";this.PeopleGridPanel_bbarStatusMsg="Displaying people {0} - {1} of {2}";this.PeopleTab_title="PEOPLE";
this.PeopleTab_newPersonTabText="NEW PERSON";this.PeopleTab_newPersonButtonText="New Person";this.PeopleTab_newPersonButtonTooltip="Create a new Person";this.PeopleTab_openPersonButtonText="Open Person";this.PeopleTab_openPersonButtonTooltip="View, Edit or Delete the selected Person";this.PeopleTab_viewPersonButtonText="View Person";
this.PeopleTab_viewPersonButtonTooltip="View the selected Person";this.PeopleTab_editPersonButtonText="Edit Person";this.PeopleTab_editPersonButtonTooltip="Edit the selected Person";this.PeopleTab_deleteMenuTextSingular="Delete Person";this.PeopleTab_deleteMenuTextPlural="Delete People";this.PeopleTab_deletePersonButtonTooltip="Delete the selected Person";
this.PeopleTab_createPadButtonText="Send Pad";this.PeopleTab_createPadButtonTooltip="Create a new pad and send it to the selected people";this.PeopleSearchPanel_panelTitle="Search People";this.PeopleSearchPanel_firstName="First Name";this.PeopleSearchPanel_lastName="Last Name";this.PeopleSearchPanel_email="Email";
this.PeopleSearchPanel_userType="User Type :";this.PeopleSearchPanel_userTypeAdministrator="Administrator";this.PeopleSearchPanel_userTypeUser="User";this.PeopleSearchPanel_userTypeReviewer="Reviewer";this.PeopleSearchPanel_applyBtn="Apply";this.PeopleSearchPanel_buttonClear="Clear";this.AddReviewpadFiles_popupTitle="Add Previously Uploaded File(s)";
this.AddReviewpadFiles_treePanelTitle="Folders";this.AddReviewpadFiles_selectFilesBtn="Select File(s)";this.AddReviewpadFiles_cancelBtn="Cancel";this.AddReviewpadFiles_fileListTitle="File List";this.ResponseGridPanel_colDate="Response Date";this.ResponseGridPanel_colReviewer="Reviewer";this.ResponseGridPanel_colApproval="Approval";
this.ResponseGridPanel_colFileName="Filename";this.ResponseGridPanel_colComments="Comments";this.ResponseGridPanel_commentPopupTitle="Pad Response";this.ResponseGridPanel_colPadName="Pad Name";this.ResponseGridPanel_responseType="Type";this.ResponseGridPanel_responseType_markupComment="Markup comment";
this.ResponseGridPanel_responseType_padComment="Pad comment";this.ResponseGridPanel_responseType_approvalComment="Approval Comment";this.ResponseGridPanel_responseType_fileDownload="File Downloaded";this.ResponseGridPanel_bbarStatusMsg="Displaying pad response {0} - {1} of {2}";this.ResponseGridPanel_bbarEmptyText="No pads to display";
this.NewFileFormPanel_filesFieldset="UPLOAD FILES";this.NewFileFormPanel_keywordselectorFieldset="Select Keywords";this.NewFileFormPanel_saveBtn="Save";this.NewFileFormPanel_cancelBtn="Cancel";this.NewFileFormPanel_addBtn="Add";this.NewFileFormPanel_addButtonTooltip="Add New Keyword";this.NewFileFormPanel_newKeywordText="New Keyword";
this.NewFileFormPanel_uploadDirPath="Upload Directory";this.NewFileFormPanel_confirmCancelForm="Are you sure you want quit new file operation?";this.NewFileFormPanel_noFilesSelectedMessage="There are no files added to upload. Please add files and submit again.";this.LookupReviewers_pageTitle="Select Reviewers";
this.LookupReviewers_addBtn="Add";this.LookupReviewers_cancelBtn="Cancel";this.PadFormPanel_fieldsetTitle="PAD INFORMATION";this.PadFormPanel_padname="Pad Name";this.PadFormPanel_tagpad="Tag Pad";this.PadFormPanel_padTags="Tags";this.PadFormPanel_chooseTagsBtn="Choose Tags";this.PadFormPanel_noTagsMessage="There are no tags associated with this account. You can add tags in given text area.";
this.PadFormPanel_addTagsHelpText="Separate by commas (ex. client name, project name, keyword)";this.PadFormPanel_reviewers="Reviewers";this.PadFormPanel_reviewersEmptyText="Comma separated list of email addresses";this.PadFormPanel_emailsubject="Email Subject";this.PadFormPanel_emailmsg="Email Message";
this.PadFormPanel_dateRange="Date Range";this.PadFormPanel_dateRangeHelpMsg="These dates determine the period when your reviewers will be able to access the files in this Pad and provide feedback.  If a reviewer should attempt to access the Pad outside of the dates specified, he/she will receive a message telling them the Pad has expired.  Access to the Pad by Users and Administrators is NOT affected.";
this.PadFormPanel_startDate="Start Date";this.PadFormPanel_startDateHelpMsg="This is the date at which reviewers can access your pad and provide feedback.  Note:  the email notification will be sent right away.";this.PadFormPanel_endDate="End Date";this.PadFormPanel_receiveEmailUponResponse="Notify me on response submission";
this.PadFormPanel_showResponse="Display responses to all reviewers";this.PadFormPanel_reviewSettingFieldset="REVIEW SETTING";this.PadFormPanel_reviewTypeFieldset="Review Type";this.PadFormPanel_reviewTypeView="View/Download files only";this.PadFormPanel_reviewTypeComment="Comments & Feedback";this.PadFormPanel_reviewTypeApprove="Request Approval";
this.PadFormPanel_filesFieldset="Files";this.PadFormPanel_saveBtn="Save";this.PadFormPanel_createPadBtn="Create Pad";this.PadFormPanel_resetBtn="Reset";this.PadFormPanel_savePadBtn="Save";this.PadFormPanel_cancelBtn="Cancel";this.PadFormPanel_numResponses="Responses";this.PadFormPanel_lastResponse="Last Response";
this.PadFormPanel_status="Approval Status";this.PadFormPanel_responseGridFieldset="Pad Responses";this.PadFormPanel_loadMsg="Loading Pad Information";this.PadFormPanel_filesGridColFileId="File Id";this.PadFormPanel_filesGridColFileName="File Name";this.PadFormPanel_reviewerInfoFieldset="REVIEWER INFORMATION";
this.PadFormPanel_addFileFromComputer="Add File from Computer";this.PadFormPanel_addFileFromReviewad="Add Previously Uploaded File(s)";this.PadFormPanel_ApprovalStatus_Approved="Approved";this.PadFormPanel_ApprovalStatus_ApprovedWithChanges="Approved with changes";this.PadFormPanel_ApprovalStatus_Rejected="Rejected";
this.PadFormPanel_SelectFolderTitle="Select A Folder";this.PadFormPanel_CreateNewFolderBtn="Create New Folder";this.PadFormPanel_SelectFolderOkBtn="OK";this.PadFormPanel_lookupButtonTooltip="Reviewer Lookup";this.PadFormPanel_approvalStatusImgTooltip="There are $APPROVED$ approved, $PENDING$ pending and $REJECTED$ rejected responses.";
this.PadFormPanel_showResponsesTip="This option only applies if you are requesting feedback or approval.  Checking this box will allow all reviewers to view each other's comments - leave it unchecked if you'd like to keep the feedback to yourself";this.PadFormPanel_reviewTypeViewTip="This option will allow reviewers to view & download the files in this pad.  It is a great way to easily share your work while maintaining control of the files within ReviewPad";
this.PadFormPanel_reviewTypeCommentTip="This option will allow reviewers to look at your files and provide feedback in the form of general comments as well as markup your images.  You can keep this feedback private by unchecking the "+this.PadFormPanel_showResponse+" checkbox or keep it checked to encourage discussion among all your reviewers.";
this.PadFormPanel_reviewTypeApproveTip="This option allows reviewers to look at your files & provide feedback but also asks that they approve the files.  These approval are tracked by ReviewPad making it easy for you to see the status of your pad at any time";this.PadFormPanel_noFilesSelectedMessage="There are no files associated with this pad. Please add files to the Pad, and submit again.";
this.PadFormPanel_sendReminderButtonText="Send Reminder";this.PadFormPanel_sendReminderButtonTooltip="Send Reminder From ReviewPad or Your Email Account";this.PadFormPanel_goToRoboheadButtonText="Go to RoboHead Project";this.PadFormPanel_goToRoboheadButtonTooltip="RoboHead Project Link";this.PadFormPanel_menuSendFromReviewpadText="Send From ReviewPad";
this.PadFormPanel_menuSendFromEmailAccountText="Send From My Email Account";this.PadFormPanel_clickUrlMessage="Click here to access the files:";this.PadFormPanel_menuSaveSmallImagePDFText="Portrait";this.PadFormPanel_menuSaveLargeImagePDFText="Landscape";this.PadFormPanel_downloadFiles="Allow download of original file(s)";
this.FileUploadWindow_pagetitle="Creating Pad";this.FileUploadWindow_editingPadtitle="Editing Pad";this.FileUploadWindow_createFiletitle="Creating file";this.FileUploadWindow_defaultStatusMsg="File Upload In Progress ...";this.FileUploadWindow_newPadStatusMsg="File Upload Complete.  Creating Pad ...";
this.FileUploadWindow_editPadStatusMsg="File Upload Complete.  Saving Pad ...";this.ViewPadTab_fileTooltip="Double click on the file to open View/Markup Window";this.EditPadTab_title="EDIT PAD";this.FilesTab_title="FILES";this.FilesTab_newFileTabText="NEW FILE";this.FilesTab_newButtonText="New File";
this.FilesTab_newButtonTooltip="Add a new file";this.FilesTab_openButtonText="Open File";this.FilesTab_openButtonTooltip="View, Edit, Delete or Download a file";this.FilesTab_reviewButtonText="Add to Pad";this.FilesTab_reviewButtonTooltip="Create a review pad for the selected files";this.FilesTab_importButtonText="Import Files";
this.FilesTab_importButtonTooltip="Import files from an FTP server";this.FilesTab_listButtonText="";this.FilesTab_listButtonTooltip="List View";this.FilesTab_smallthumbButtonText="";this.FilesTab_smallthumbButtonTooltip="Small Thumbnail View";this.FilesTab_largethumbButtonText="";this.FilesTab_largethumbButtonTooltip="Large Thumbnail View";
this.FilesTab_piclensButtonText="";this.FilesTab_piclensButtonTooltip="3-D View (requires PicLens plugin)";this.FilesTab_viewMenuText="View File";this.FilesTab_editMenuText="Edit File";this.FilesTab_downloadMenuText="Download File";this.FilesTab_deleteMenuTextSingular="Delete File";this.FilesTab_deleteMenuTextPlural="Delete Files";
this.FilesTab_confirmNewPadIsActivated="The new pad screen is currently open and you must close that tab before performing this action";this.FileGridPanel_colFileName="File Name";this.FileGridPanel_colFileId="ID";this.FileGridPanel_colFileSize="Size";this.FileGridPanel_colUploadedOn="Uploaded on";this.FileGridPanel_colKeywords="Keywords";
this.FileGridPanel_colUploadedOn="Uploaded on";this.FileGridPanel_colFolderPath="Folder Path";this.FileGridPanel_bbarEmptyTextFolder="No files in selected folder";this.FileGridPanel_bbarEmptyTextSearch="No files matching your current search";this.FileGridPanel_bbarStatusMsgFolder="Displaying files {0} - {1} of {2}";
this.FileGridPanel_bbarStatusMsgSearch="Displaying files {0} - {1} of {2}";this.FilesTab_openFileSaveBtn="Save";this.FilesTab_openFileCancelBtn="Cancel";this.FilesTab_openFileEditBtn="Edit File";this.FilesTab_openFileViewTitle="VIEW FILE";this.FilesTab_openFileEditTitle="EDIT FILE";this.FilesTab_openFileInformationFieldset="File Information";
this.FilesTab_openFileKeywordInformationFieldset="Keywords Information";this.FilesTab_previewImageFieldset="Preview Image";this.FilesTab_openFileName="File Name";this.FilesTab_openFileSize="File Size";this.FilesTab_openFileMimeType="Mime Type";this.FilesTab_openFileCreateDate="Create Date";this.FilesTab_editFileConfirmCancelForm="Are you sure you want quit edit file operation?";
this.ThumbnailViewPanel_emptyText="No files to display";this.PadGridPanel_colPadName="Pad Name";this.PadGridPanel_colReviewers="Reviewers";this.PadGridPanel_colCreatedBy="Created By";this.PadGridPanel_colFiles="Files";this.PadGridPanel_colStartDate="Create Date";this.PadGridPanel_colEndDate="End Date";
this.PadGridPanel_colReviewType="Review Type";this.PadGridPanel_colResponses="Responses";this.PadGridPanel_colLastResponse="Last Response";this.PadGridPanel_colComments="Comments";this.PadGridPanel_colApprovalStatus="Approval Status";this.PadGridPanel_bbarEmptyText="No pads matching your current search options";
this.PadGridPanel_bbarStatusMsg="Displaying pads {0} - {1} of {2}";this.PadGridPanel_viewPadMenuText="View Pad";this.PadGridPanel_editPadMenuText="Edit Pad";this.PadGridPanel_deletePadMenuTextSingular="Delete Pad";this.PadGridPanel_moreActionMenuText="More Action";this.PadGridPanel_actionSplitBtn_text="Actions";
this.PadGridPanel_deletePadsConfirmationMsg="You have selected <numOfPads> Pads for deletion. Are you sure you want to continue?";this.PadGridPanel_sendReminderConfirmationMsg="You have selected <numOfPads> Pads. Are you sure you want to send reminders for all selected Pads?";this.PadListView_emptyText="No Pads to display";
this.PadListView_colPadName="Name";this.PadListView_colDate="Create Date";this.PadListView_colFiles="Files";this.PadListView_colComments="Comments";this.PadListView_colApprovalStatus="Approval Status";this.PadListView_moreActionbtntext="More Actions";this.PadsListView_searchEmptyText="Search by keyword or tag";
this.PadsListView_newPadButtonText="Create New Pad";this.PadsListView_xTemplateResponses="responses";this.PadsListView_advanceSearchButtonText="Advance Search";this.GridPanel_loadingMessage="Please Wait...";this.PadsTab_title="PADS";this.PadsTab_newPadButtonText="NEW PAD";this.PadsTab_newPadButtonTooltip="Create a new pad";
this.PadsTab_openPadButtonText="Open Pad";this.PadsTab_openPadButtonTooltip="View, Edit or Delete the selected pad";this.PadsTab_deleteMenuTextSingular="Delete Pad";this.PadsTab_deleteMenuTextPlural="Delete Pads";this.PadsTab_validateMultiEmail='This field should be an e-mail address, or a list of email addresses separated by commas(,) in the format "user@domain.com,test@test.com"';
this.PadsTab_confirmCancelNewPadForm="Are you sure you want quit new pad operation?";this.PadsTab_confirmAddToContact="Would you like to add selected reviewers to the Contacts if they do not exist in your Contacts?";this.PadsTab_editPadConfirmCancelForm="Are you sure you want quit edit pad operation?";
this.PadsTab_reviewerDialogAllReviewers="All Reviewers";this.PadsTab_reviewerDialogNewlyAddedReviewers="Newly Added Reviewers";this.PadsTab_reviewerDialogNone="None";this.PadsTab_reviewerDialogSubmit="Submit";this.PadsTab_reviewerDialog="Reviewer Dialog";this.PadsTab_reviewerNotificationMessage="Do you want to send notification to";
this.PadsTab_reviewerDialogLabelYes="Yes";this.PadsTab_reviewerDialogLabelNo="No";this.PadsTab_savePadAsPDFButtonText="Save Pad as PDF";this.PadsTab_savePadAsPDFButtonTooltip="Save selected pad as PDF document";this.PadsTab_availabelStorageMessage="<currentAvailableStorage>MB of <totalAvailableStorage>MB Used";
this.PadsTab_upgradeToSSLMessageWithAddStorageLink='|<a href="#" id="availableStorage" class="availableStorageLink" onclick="openAddStorage()">Add Storage </a>';this.PadsTab_padSummaryButtonText="View Pad Summary";this.PadsTab_padSummaryButtonTooltip="View summary of all comments and feedback";this.PadsTab_listButtonText="";
this.PadsTab_listButtonTooltip="Details View";this.PadsTab_smallthumbButtonText="";this.PadsTab_smallthumbButtonTooltip="List View";this.PadsTab_deleteButtonText="Delete";this.PadsTab_deleteButtonTooltip="delete multiple pads.";this.PadsTab_helpMenuBtnTitle="Help";this.PadsTab_helpMenu_showHelp="Show Help";
this.PadsTab_helpMenu_hideHelp="Hide Help";this.PadsTab_helpMenu_downloadUserGuide="Download User Guide";this.PadsTab_helpMenu_userForums="User Forums";this.PadsTab_helpMenu_emailSupport="Email Support";this.PadsTab_yourAccountBtnTitle="Your Account";this.PadsTab_accountSettingMenu="Account Settings";
this.PadsTab_modifyBilingInfoMenu="Modify Billing Information ";this.PadsTab_cancelAccountMenu="Cancel Account";this.PadsTab_managePeopleMenu="Manage People";this.PadsTab_editPersonMenu="Edit Person";this.PadsTab_viewPersonMenu="View Person";this.FolderTree_rootFolderText="My Files";this.FolderTree_expandAllTooltip="Expand all folders";
this.FolderTree_collapseAllTooltip="Collapse all folders";this.FolderTree_newFolderTooltip="Create a new folder underneath the currently selected folder";this.FolderTree_deleteFolderTooltip="Delete selected folder";this.FolderTree_renameFolderTooltip="Rename currently selected folder";this.FolderTree_refreshFolderTooltip="Reload Folders";
this.FolderTree_newFolderWindowTitle="Create New Folder";this.FolderTree_renameFolderWindowTitle="Rename Folder";this.FolderTree_createBtnText="Create";this.FolderTree_renameBtnText="Rename";this.FolderTree_cancelBtnText="Cancel";this.FileSearchPanel_panelTitle="Search Files";this.FileSearchPanel_fileId="File ID";
this.FileSearchPanel_filename="Filename";this.FileSearchPanel_startDate="Uploaded After";this.FileSearchPanel_endDate="Uploaded Before";this.FileSearchPanel_keyWords="Keywords";this.FileSearchPanel_select_keyWords="Select Keywords";this.FileSearchPanel_applyBtn="Apply";this.FileSearchPanel_buttonClear="Clear";
this.PadSearchPanel_panelTitle="Search Review Pads";this.PadSearchPanel_reviewer="Reviewer";this.PadSearchPanel_startDate="Start Date";this.PadSearchPanel_endDate="End Date";this.PadSearchPanel_buttonApply="Apply";this.PadSearchPanel_buttonClear="Clear";this.PadSearchPanel_padName="Pad Name";this.PadSearchPanel_reviewType="Review Type:";
this.PadSearchPanel_reviewTypeView="View / download files only";this.PadSearchPanel_reviewTypeComment="Provide comments & feedback";this.PadSearchPanel_reviewTypeApprove="Request approval";this.Help_startupTip='<div class="helpHeader">Need help getting started?</div><div class="helpBody">All you need to do to start using ReviewPad is create a new pad.  Follow these step by step directions and you\'ll be sharing your files and getting feedback before you know it.</div>';
this.TipsPanel_defaultTip="&nbsp;";this.TipsPanel_padsTabMsg='<div class="helpHeader">Pads List</div><div class="helpSectionHeader">Navigating the list</div><div class="helpBody">You can change the order in which the Pads are displayed by clicking on any of the column headers (click twice to invert the sort order).  To page through the list use the Next <img src="../images/default/s.gif" class="x-tbar-page-next" style="height:12px; width:10px" /> and Previous <img src="../images/default/s.gif" class="x-tbar-page-prev" style="height:12px; width:12px" /> buttons on then bottom of the screen.  You can change the number of Pads that display on each page in the Account Settings screen.</div><div class="helpSectionHeader">Searching for Pads</div><div class="helpBody">You may search by any of the information that you applied to your Pad(s) previously including tags, pad name, reviewers, email subject, email message, file names and file titles. To execute the search enter you search term(s) and click the search <img src="../images/default/s.gif" style="background:url(\'../images/reviewpad-sprites.png\') no-repeat scroll -2px -38px transparent !important; height:19px; width:16px; vertical-align:bottom" /> icon.  To clear your search and reload the complete list of Pads click the clear <img src=\'../images/default/s.gif\' style="background:url(\'../images/rp/form/clear-trigger.gif\') no-repeat scroll -51px 0px transparent !important; height:19px; width:16px; vertical-align:bottom" /> icon.</div><div class="helpSectionHeader">Working with Pads</div><div class="helpBody">For each Pad in the list you can choose from among the following available actions:<br /><img src="../images/default/s.gif" class="icon-pad-view" /><span style="font-weight: bold"> View Pad:</span> Will open your pad so you can see more information about it, individual comments / approval status, and to make your own comments.<br /><img src="../images/default/s.gif" class="icon-pad-edit" /><span style="font-weight: bold"> Edit Pad:</span> Will allow you to change any of the Pad information entered initially when you created the Pad.<br /><img src="../images/default/s.gif" class="icon-pad-delete" /><span style="font-weight: bold"> Delete Pad:</span> Will delete the Pad from the system.<br style="margin-bottom:7px" /><span style="font-weight: bold">More Actions:</span> Will give you options to save the entire Pad as a PDF version, and to send reminders out via email for those reviewers who have not provided feedback yet.</div>';
this.TipsPanel_newPadTabMsg='<div class="helpHeader">Creating a new Pad</div><div class="helpSectionHeader">Help with individual fields</div><div class="helpBody">Required fields are clearly indicated with the <img src="../images/default/s.gif" class="icon-field-required" /> icon.  If you see a help icon <img src="../images/default/s.gif" class="icon-field-help" /> next to a field you can move the mouse over the icon to receive a detailed explanation of how that field is used.</div><div class="helpSectionHeader">Adding Files</div><div class="helpBody">To add a file to the Pad click the "Add New File" button and select the file you want to add.  You can repeat this process for as many files as you want to send out.  The "Default thumbnail" radio button will determine which image is displayed next to the Pad on the Pads screen.</div><div class="helpSectionHeader">Saving the Pad</div><div class="helpBody">When you are done filling out the information click the "Create Pad" button on the bottom of the screen - you will see the progress bar advance as your files are uploaded.  Once all the files in your pad have finished uploading your screen will refresh and you\'ll see your new pad in the list. Your reviewer(s) will be sent an email with a link to access your file(s).  You can then monitor any feedback from your reviewer(s) by opening the "View Pad" screen.</div>';
this.TipsPanel_openPadTabMsg="Open pad page tips.";this.TipsPanel_filesTabMsg='Click the "New File" button to upload a new file.  If you want to request a review select one or more of your files (CTRL-click for multiple files) and click the "Request Review" button.';this.TipsPanel_newFileTabMsg="You can upload files from your local computer or select files that you've already uploaded to ReviewPad.";
this.TipsPanel_openFileTabMsg="Open file page tips.";this.TipsPanel_peopleTabMsg='Click the "New Peson" button to create a new person or double click on any item in the list to open a person details.  If you are having trouble finding person try entering in some search criteria to narrow down the list.';
this.TipsPanel_newPersonTabMsg="New person page tips.";this.TipsPanel_openPersonTabMsg="Open person page tips.";this.TipsPanel_accountSettingsTabMsg="Account settings screen tips";this.TipsPanel_fileUploadinProgress="Your files are now uploading in the background.  You can continue working in the application while the upload is going on and check the status of the upload in the Upload Progress component below.";
this.TipsPanel_accountUpgradeTabMsg="Account upgrade screen tips";this.TipsPanel_modifyBillingInformationTabMsg="Billing information screen tips";this.TipsPanel_addStorageInformationTabMsg="Add storage information screen tips";this.AccountSetup_panelTitle="Account Setup";this.UploadProgress_panelTitle="Upload Progress";
this.DownloadFile_link="Download File";this.AddMarkup_link="Add Markup";this.ApprovalForm_title="Approval Form";this.ApprovalForm_approveActionOption="Approve";this.ApprovalForm_denyActionOption="Deny";this.ApprovalForm_approveWithChangesActionOption="Approve with changes";this.ReviewFileForm_saveBtn="Save";
this.CommentWindow_markupCommentTitle="Markup Comment";this.ApprovalForm_validateComments="Please add the comments";this.MarkupWindow_viewMarkupNameTitle="View: ";this.MarkupWindow_notesLabelTitle="Notes";this.MarkupWindow_notesHelpText="This list shows all markup comments associated with the current image.  If this is a multi-page document, you can choose whether to see the comments for only the current page or all pages by changing the value in the select list to the right.";
this.MarkupWindow_sortByTitle="Show: ";this.MarkupWindow_addCommentTitle="Drag To Create Markup Note";this.MarkupWindow_addCommentHelpText="To add a comment to the image press & hold down the 'Drag To Create Markup Note' button and drag the pointer to the spot where you want to place your feedback.  Release the mouse button, enter your comments and click 'Save'.";
this.MarkupWindow_pagingMessage="No pages to display";this.MarkupWindow_sortBy_option_all="All";this.MarkupWindow_sortBy_option_currentPage="Current Page";this.MarkupWindow_previewGenerationMessage_failed="We're sorry but file failed for markup.";this.MarkupWindow_previewGenerationMessage_inComplete="We're sorry but it is going to take a few minutes longer to get this file ready for markup. Please come back in fifteen minutes or so and try again.";
this.ReviewPage_errorPageTitle="ReviewPad";this.ReviewFile_addCommentAction="ADD-COMMENT";this.ReviewFile_deleteCommentAction="DELETE-COMMENT";this.ReviewFile_deleteCommentConfirm="Are you sure you want to delete comment ?";this.FileUpload_statusPending="Pending";this.FileUpload_statusUploading="Uploading";
this.FileUpload_statusComplete="Complete";this.FileUpload_statusCompleteWithErrors="Complete With Errors";this.FileUpload_statusFailed="Failed";this.AccountSettingsTab_title="ACCOUNT SETTINGS";this.AccountSettingsTab_upgradeButtonText="Upgrade Account";this.AccountSettingsTab_upgradeButtonTooltip="Upgrade your ReviewPad account to take advatage of increased storage & functionality";
this.AccountSettingsTab_cancelButtonText="Cancel Account";this.AccountSettingsTab_cancelButtonTooltip="Cancel your account";this.AccountSettingsFormPanel_basicFieldsetTitle="BASIC SETTINGS";this.AccountSettingsFormPanel_accountName="Account Name";this.AccountSettingsFormPanel_accountUrl="Account URL";
this.AccountSettingsFormPanel_accountType="Account Type";this.AccountSettingsFormPanel_preferencesFieldsetTitle="ACCOUNT PREFERENCES";this.AccountSettingsFormPanel_timeZone="Default Time Zone";this.AccountSettingsFormPanel_timeZoneEmptyText="Select a time zone ...";this.AccountSettingsFormPanel_locale="Default Locale";
this.AccountSettingsFormPanel_localeEmptyText="Select a locale ...";this.AccountSettingsFormPanel_customizationFieldsetTitle="ACCOUNT CUSTOMIZATION";this.AccountSettingsFormPanel_colorScheme="Color Scheme";this.AccountSettingsFormPanel_headerBackgroundColor="Header Background Color";this.AccountSettingsFormPanel_headerTextColor="Header Text Color";
this.AccountSettingsFormPanel_headerLinkColor="Header Link Color";this.AccountSettingsFormPanel_logoUpload="Upload New Logo";this.AccountSettingsFormPanel_logoUploadEmptyText="Select image - 101 x 69 pixels";this.AccountSettingsFormPanel_customLabels="Custom Labels";this.AccountSettingsFormPanel_currentLogo="Current Logo";
this.AccountSettingsFormPanel_currentLogo_width="101px";this.AccountSettingsFormPanel_currentLogo_height="69px";this.AccountSettingsFormPanel_noLogoText="No current Logo";this.AccountSettingsFormPanel_keywordsFieldset="KEYWORD MANAGEMENT";this.AccountSettingsFormPanel_removeLogo="Remove Logo";this.AccountSettingsFormPanel_keywordsSelectLegend=" ";
this.AccountSettingsFormPanel_keywordEmptyText="";this.AccountSettingsFormPanel_newKeywordButton="Add Keyword";this.AccountSettingsFormPanel_newKeywordTooltip="Click here to add a new keyword - keywords will not be saved to your account until you click 'Save'";this.AccountSettingsFormPanel_deleteKeywordButton="Delete Selected Keyword(s)";
this.AccountSettingsFormPanel_deleteKeywordTooltip="Click here to delete the selected keyword(s) - keywords will not be removed from your account until you click 'Save'";this.AccountSettingsFormPanel_loadMsg="Please wait, loading account information";this.AccountSettingsFormPanel_RHIntegrationFieldsetTitle="ROBOHEAD INTEGRATION";
this.AccountSettingsFormPanel_enableRHIntegration="Enable RoboHead Integration";this.AccountSettingsFormPanel_rhUrl="RoboHead URL";this.AccountSettingsFormPanel_rhAccountId="RoboHead Account Id";this.AccountSettingsFormPanel_rhUrlProtocol="https";this.AccountSettingsFormPanel_deleteFilesOnPadDeletion="Delete files on pad deletion";
this.AccountSettingsFormPanel_cancelAccountLink="Cancel Account";this.AccountSettingsFormPanel_cancelAccountLinkTip="Are you no longer interested in ReviewPad?  We're sorry . . .  but click here to cancel";this.AccountSettingsFormPanel_accountUrlHelpTip='You can choose a personal URL by upgrading to a professional account - for more information click "Upgrade to ReviewPad Professional now" at the top of the screen.';
this.AccountLicenseStatusInfo_noOfLicensedUsersMsg="You have signed up for <licensedNumUsers> users. You must upgrade your account to increase the number of users. Do you want to upgrade your account now?";this.AccountLicenseStatusInfo_noOfLicensedPadsMsg="You have signed up <licensedNumPads> pads. You must upgrade your account to increase the number of pads. Do you want to upgrade your account now?";
this.AccountLicenseStatusInfo_noOfLicensedStorageMsg="You have only <currentAvailableStorage>  MB available from licensedStorage. You must upgrade your account to increase the storage. Do you want to upgrade your account now?";this.AccountUpgradeTab_title="ACCOUNT UPGRADE";this.AccountUpgradeForm_billingInformation="Billing Information";
this.AccountUpgradeForm_accountType="Account Type";this.AccountUpgradeForm_storageLbl="Storage";this.AccountUpgradeForm_billingFirstName="First Name";this.AccountUpgradeForm_billingLastName="Last Name";this.AccountUpgradeForm_creditCardNumber="Credit Card Number";this.AccountUpgradeForm_securityCode="Security Code";
this.AccountUpgradeForm_securityCodeHelpTip="The security code (or the CVV2) is a 3- or 4-digit number printed on your credit card. This number is only printed on your card, and is not stored anywhere. The only way to know the number is to physically have the card, making this a valuable security measure.";
this.AccountUpgradeForm_creditCardExpDate="Credit Card Expiration Date";this.AccountUpgradeForm_creditCardExpDateMonthEmptyText="Month";this.AccountUpgradeForm_creditCardExpDateYearEmptyText="Year";this.AccountUpgradeForm_billingAddressInformation="Billing Address";this.AccountUpgradeForm_billingAddress="Address";
this.AccountUpgradeForm_billingAddressCity="City";this.AccountUpgradeForm_billingAddressState="State";this.AccountUpgradeForm_billingAddressStateEmptyText="Select State...";this.AccountUpgradeForm_billingAddressZip="Zip";this.AccountUpgradeForm_validateBillingAddressZip='This field should be a zip code in the format "12345" or "12345-6789"';
this.AccountUpgradeForm_billingAddressCountry="Country";this.AccountUpgradeForm_billingAddressCountryEmptyText="Select Country...";this.AccountUpgradeForm_saveBtn="Submit";this.AccountUpgradeForm_cancelBtn="Cancel";this.AccountUpgradeForm_upgradeSuccessfulMsg="Account updated successfully";this.ModifyBillingInformationTab_title="BILLING INFORMATION";
this.ModifyBillingInformationFormPanel_billingInformation="Billing Information";this.ModifyBillingInformationFormPanel_billingFirstName="First Name";this.ModifyBillingInformationFormPanel_billingLastName="Last Name";this.ModifyBillingInformationFormPanel_creditCardNumber="Credit Card Number";this.ModifyBillingInformationFormPanel_securityCode="Security Code";
this.ModifyBillingInformationFormPanel_securityCodeHelpTip="The security code (or the CVV2) is a 3- or 4-digit number printed on your credit card. This number is only printed on your card, and is not stored anywhere. The only way to know the number is to physically have the card, making this a valuable security measure.";
this.ModifyBillingInformationFormPanel_creditCardExpDate="Credit Card Expiration Date";this.ModifyBillingInformationFormPanel_creditCardExpDateMonthEmptyText="Month";this.ModifyBillingInformationFormPanel_creditCardExpDateYearEmptyText="Year";this.ModifyBillingInformationFormPanel_billingAddressInformation="Billing Address";
this.ModifyBillingInformationFormPanel_billingAddress="Address";this.ModifyBillingInformationFormPanel_billingAddressCity="City";this.ModifyBillingInformationFormPanel_billingAddressState="State";this.ModifyBillingInformationFormPanel_billingAddressStateEmptyText="Select State...";this.ModifyBillingInformationFormPanel_billingAddressZip="Zip";
this.ModifyBillingInformationFormPanel_validateBillingAddressZip='This field should be a zip code in the format "12345" or "12345-6789"';this.ModifyBillingInformationFormPanel_billingAddressCountry="Country";this.ModifyBillingInformationFormPanel_billingAddressCountryEmptyText="Select Country...";this.ModifyBillingInformationFormPanel_saveBtn="Submit";
this.ModifyBillingInformationFormPanel_cancelBtn="Cancel";this.ModifyBillingInformationFormPanel_updateSuccessfulMsg="Billing Information updated successfully";this.AddStorageTab_title="ADD STORAGE";this.AddStorageForm_billingInformation="Billing Information";this.AddStorageForm_addStorageInformation="Add Storage";
this.AddStorageForm_storageLbl="<storage> GB - $<price_per_month> per month";this.AddStorageForm_billingFirstName="First Name";this.AddStorageForm_billingLastName="Last Name";this.AddStorageForm_creditCardNumber="Credit Card Number";this.AddStorageForm_securityCode="Security Code";this.AddStorageForm_securityCodeHelpTip="The security code (or the CVV2) is a 3- or 4-digit number printed on your credit card. This number is only printed on your card, and is not stored anywhere. The only way to know the number is to physically have the card, making this a valuable security measure.";
this.AddStorageForm_creditCardExpDate="Credit Card Expiration Date";this.AddStorageForm_creditCardExpDateMonthEmptyText="Month";this.AddStorageForm_creditCardExpDateYearEmptyText="Year";this.AddStorageForm_billingAddressInformation="Billing Address";this.AddStorageForm_billingAddress="Address";this.AddStorageForm_billingAddressCity="City";
this.AddStorageForm_billingAddressState="State";this.AddStorageForm_billingAddressStateEmptyText="Select State...";this.AddStorageForm_billingAddressZip="Zip";this.AddStorageForm_validateBillingAddressZip='This field should be a zip code in the format "12345" or "12345-6789"';this.AddStorageForm_billingAddressCountry="Country";
this.AddStorageForm_billingAddressCountryEmptyText="Select Country...";this.AddStorageForm_saveBtn="Submit";this.AddStorageForm_cancelBtn="Cancel";this.AddStorageForm_addSuccessfulMsg="Storage added successfully";this.CancelAccountTab_title="CANCEL ACCOUNT";this.CancelAccountForm_changeMindMsgBtn="Changed my mind, keep using ReviewPad";
this.CancelAccountForm_cancelBtn="Continue with cancelation";this.UploadStatusPanel_chooseFilebtn="Add New File";this.ViewPadFormPanel_approveRequestedHelpMsg="Approval Requested";this.ViewPadFormPanel_approvalTipMessage_helpText="You can mark the Pad approved, denied, or approved with changes by clicking the appropriate button and entering in your comments.  Please note that this decision is applied to the Pad as a whole and not to individual files within the Pad.";
this.ViewPadFormPanel_approveBtn="Approve";this.ViewPadFormPanel_denyBtn="Deny";this.ViewPadFormPanel_approvWithCommentsBtn="Approve with changes";this.ViewPadFormPanel_padExpiryMessage="expires in ";this.ViewPadFormPanel_padDay=" day.";this.ViewPadFormPanel_padDays=" days.";this.ViewPadFormPanel_padExpiredMessage="Pad expired.";
this.ViewPadFormPanel_padExpiredMessage_helpText="Reviewers are only able to view the files in this pad and enter comments during the dates entered.  If the pad has expired you can edit the start and/or end date to provide your reviewers access to the Pad.";this.PadNotePanel_panelTitle="Pad Notes";this.PadNotePanel_ReviewerTitle="Reviewers";
this.PadNotePanel_ApprovalStatus_Approved="Approved";this.PadNotePanel_ApprovalStatus_ApprovedWithChanges="Approved with changes";this.PadNotePanel_ApprovalStatus_Rejected="Rejected";this.PadNotePanel_ApprovalStatus_Not_Decision="No decision";this.PadNotePanel_Comments="Comments";this.PadCommentsPanel_panelTitle="Pad Comments";
this.PadCommentsPanel_sortBy="Sort by: ";this.PadCommentsPanel_sortBy_newest_to_oldest="Date (newest to oldest)";this.PadCommentsPanel_sortBy_oldest_to_newest="Date (oldest to newest)";this.PadCommentsPanel_addCommentBtn="Add Comments";this.PadCommentsPanel_bbarEmptyText="No pad comments matching current search criteria";
this.PadCommentsPanel_bbarStatusMsg="Displaying pad comments {0} - {1} of {2}";this.ReviewFileForm_finishButtonText="Finish";this.AppInfo_applicationStatus="Application Status";this.Status_databaseStatus="ReviewPad - Database Test";this.Status_memoryStatus="ReviewPad - Memory Test";this.Status_threadStatus="ReviewPad - Thread Test";
this.Status_tomcatStatus="ReviewPad - Tomcat Test";this.Status_ok="PASSED";this.Status_failed="FAILED";this.AppInfo_applicationStatistics="Application Statistics";this.AppInfo_applicationStatistics_numActiveAuths="Number of Active Auths";this.AppInfo_applicationStatistics_numActiveRequests="Number of Active Requests";
this.AppInfo_applicationStatistics_numTotalAuths="Number of Total Auths";this.AppInfo_applicationStatistics_numTotalRequests="Number of Total Requests";this.AppInfo_applicationStatistics_numActiveUsers="Number of Active Users";this.AppInfo_activeHttpSessions="Active Http Sessions";this.AppInfo_activeHttpSessions_accountId="Account Id";
this.AppInfo_activeHttpSessions_accountName="Account Name";this.AppInfo_activeHttpSessions_createdOn="Created On";this.AppInfo_activeHttpSessions_lastAccessedOn="Last Accessed On";this.AppInfo_activeHttpSessions_userId="User Id";this.AppInfo_activeHttpSessions_userEmail="User Email";this.AppInfo_activeHttpSessions_maxInactiveIntervalSecs="Max Inactive Interval (sec)";
this.AppInfo_activeHttpSessions_sessionId="Session Id";this.AppInfo_reloadableProperties="Reloadable Properties";this.AppInfo_reloadableProperties_appVersion="App Version";this.AppInfo_reloadableProperties_bucketAmazonS3="Bucket AmazonS3";this.AppInfo_reloadableProperties_bucketFilesystem="Bucket FileSystem";
this.AppInfo_reloadableProperties_emailErrorFrom="Email Error From";this.AppInfo_reloadableProperties_emailErrorSubject="Email Error Subject";this.AppInfo_reloadableProperties_emailErrorTo="Email Error To";this.AppInfo_reloadableProperties_emailTestFrom="Email Test From";this.AppInfo_reloadableProperties_emailTestSubject="Email Test Subject";
this.AppInfo_reloadableProperties_emailTestTo="Email Test To";this.AppInfo_reloadableProperties_emailHost="Email Host";this.AppInfo_reloadableProperties_tmpDeleteDaysOld="Temp Delete days old";this.AppInfo_reloadableProperties_tmpDir="Temp Directory";this.AppInfo_reloadableProperties_memoryThreshold="Memory Threshold";
this.AppInfo_reloadableProperties_threadThreshold="Thread Threshold";this.AppInfo_reloadableProperties_smallThumbnailWidth="Small Thumbnail Width";this.AppInfo_reloadableProperties_largeThumbnailWidth="Large Thumbnail Width";this.AppInfo_reloadableProperties_previewWidth="Preview Width";this.AppInfo_reloadableProperties_imageMagickPath="Image Magick Path";
this.AppInfo_reloadableProperties_imageMagickFormats="Image Magick Formats";this.AppInfo_reloadableProperties_imageMagickPropertiesCommand="Image Magick Properties Command";this.AppInfo_reloadableProperties_imageMagickThumbnailCommand="Image Magick Thumbnail Command";this.AppInfo_reloadableProperties_imageMagickResizeCommand="Image Magick Resize Command";
this.AppInfo_reloadableProperties_imageMagickConvertCommand="Image Magick Convert Command";this.AppInfo_reloadableProperties_openOfficePath="Open Office Path";this.AppInfo_reloadableProperties_openOfficeFormats="Open Office Formats";this.AppInfo_reloadableProperties_openOfficeRunCommand="Open Office Run Command";
this.AppInfo_reloadableProperties_privateKey="Private Key";this.AppInfo_reloadableProperties_ghostScriptPath="Ghost Script Path";this.AppInfo_reloadableProperties_ghostScriptFormats="Ghost Script Formats";this.AppInfo_reloadableProperties_ghostScriptConvertCommand="Ghost Script Convert Command";this.AppInfo_reloadableProperties_supportedLanguages="Supported Languages";
this.AppInfo_reloadableProperties_supportedCountries="Supported Countries";this.AppInfo_reloadableProperties_supportedTimezones="Supported Time Zones";this.AppInfo_reloadableProperties_timeoutRequest="Timeout Requests";this.AppInfo_reloadableProperties_timeoutJob="Timeout Job";this.AppInfo_reloadableProperties_tsupportUser="Tsupport User";
this.AppInfo_dataSourceInfo="Data Source Info";this.AppInfo_dataSourceInfo_defaultAutoCommit="Is Default Auto Commit";this.AppInfo_dataSourceInfo_defaultCatalog="Default Catalog";this.AppInfo_dataSourceInfo_defaultReadOnly="Is Default Read Only";this.AppInfo_dataSourceInfo_defaultTransactionIsolation="Dafault Transaction Isolation";
this.AppInfo_dataSourceInfo_driverClassName="Driver Class Name";this.AppInfo_dataSourceInfo_initialSize="Initial Size";this.AppInfo_dataSourceInfo_loginTimeout="Login Timeout";this.AppInfo_dataSourceInfo_maxActive="Maximum Active";this.AppInfo_dataSourceInfo_maxIdle="Maximum Idle";this.AppInfo_dataSourceInfo_maxOpenPreparedStatements="Maximum Open Prepared Statements";
this.AppInfo_dataSourceInfo_maxWait="Maximum Wait";this.AppInfo_dataSourceInfo_minEvictableIdleTimeMillis="Minimum Evictable Idle Time (ms)";this.AppInfo_dataSourceInfo_minIdle="Minimum Idle";this.AppInfo_dataSourceInfo_numActive="Number of Active";this.AppInfo_dataSourceInfo_numIdle="Number of Idle";
this.AppInfo_dataSourceInfo_numTestsPerEvictionRun="Number of Tests per Eviction run";this.AppInfo_dataSourceInfo_password="Password";this.AppInfo_dataSourceInfo_timeBetweenEvictionRunsMillis="Time Between Eviction Runs (ms)";this.AppInfo_dataSourceInfo_url="Url";this.AppInfo_dataSourceInfo_username="User Name";
this.AppInfo_dataSourceInfo_validationQuery="Is Validate Query";this.AppInfo_databaseMetaData="Database Meta Data";this.AppInfo_databaseMetaData_databaseMajorVersion="Database Major Version";this.AppInfo_databaseMetaData_databaseMinorVersion="Database Minor version";this.AppInfo_databaseMetaData_databaseProductName="Database Product Name";
this.AppInfo_databaseMetaData_databaseProductVersion="Database Product version";this.AppInfo_databaseMetaData_defaultTransactionIsolation="Default Transaction Isolation";this.AppInfo_databaseMetaData_driverMajorVersion="Driver Major Version";this.AppInfo_databaseMetaData_driverMinorVersion="Driver Minor version";
this.AppInfo_databaseMetaData_driverName="Driver Name";this.AppInfo_databaseMetaData_driverVersion="Driver Version";this.AppInfo_databaseMetaData_extraNameCharacters="Extra Name Characters";this.AppInfo_databaseMetaData_identifierQuoteString="Identifier Quote String";this.AppInfo_databaseMetaData_JDBCMajorVersion="JDBC Major version";
this.AppInfo_databaseMetaData_JDBCMinorVersion="JDBC Minor version";this.AppInfo_databaseMetaData_maxBinaryLiteralLength="Max Binary Literal length";this.AppInfo_databaseMetaData_maxCatalogNameLength="Max Catalog name length";this.AppInfo_databaseMetaData_maxCharLiteralLength="Max Chars Literal length";
this.AppInfo_databaseMetaData_maxColumnNameLength="Max Columns name length";this.AppInfo_databaseMetaData_maxColumnsInGroupBy="Max Column In Group By";this.AppInfo_databaseMetaData_maxColumnsInIndex="Max Columns In Index";this.AppInfo_databaseMetaData_maxColumnsInOrderBy="Max Columns In Order By";this.AppInfo_databaseMetaData_maxColumnsInSelect="Max Columns In Select";
this.AppInfo_databaseMetaData_maxColumnsInTable="Max Columns in Table";this.AppInfo_databaseMetaData_maxConnections="Max Connections";this.AppInfo_databaseMetaData_maxCursorNameLength="Max Cursor Name length";this.AppInfo_databaseMetaData_maxIndexLength="Max Index length";this.AppInfo_databaseMetaData_maxProcedureNameLength="Max Procedure Name length";
this.AppInfo_databaseMetaData_maxRowSize="Max Row size";this.AppInfo_databaseMetaData_maxSchemaNameLength="Max Schema Name length";this.AppInfo_databaseMetaData_maxStatementLength="Max Statement length";this.AppInfo_databaseMetaData_maxStatements="Max Statements";this.AppInfo_databaseMetaData_maxTableNameLength="Max Table Name length";
this.AppInfo_databaseMetaData_maxTablesInSelect="Max Tables in Select";this.AppInfo_databaseMetaData_maxUserNameLength="Max UserName length";this.AppInfo_databaseMetaData_numericFunctions="Numeric Functions";this.AppInfo_databaseMetaData_procedureTerm="Procedure Term";this.AppInfo_databaseMetaData_schemaTerm="Schema Term";
this.AppInfo_databaseMetaData_searchStringEscape="Search String Escape";this.AppInfo_databaseMetaData_SQLKeywords="SQL Keywords";this.AppInfo_databaseMetaData_SQLStateType="SQL State Type";this.AppInfo_databaseMetaData_stringFunctions="String Functions";this.AppInfo_databaseMetaData_systemFunctions="System Functions";
this.AppInfo_databaseMetaData_timeDateFunctions="Timedate Functions";this.AppInfo_databaseMetaData_URL="Url";this.AppInfo_databaseMetaData_userName="User Name";this.AppInfo_applicationFiles="Application Files";this.AppInfo_applicationFiles_logFile="Log File";this.AppInfo_applicationFiles_log4jPropertiesFile="Log4j Properties File";
this.AppInfo_applicationFiles_reviewpadPropertiesFile="ReviewPad Properties File";this.AppInfo_memoryInfo="Memory Info";this.AppInfo_memoryInfo_heapMemoryInit="Heap Memory Initialized";this.AppInfo_memoryInfo_heapMemoryUsed="Heap Memory Used";this.AppInfo_memoryInfo_heapMemoryFree="Heap Memory Free";
this.AppInfo_memoryInfo_heapMemoryCommitted="Heap Memory Committed";this.AppInfo_memoryInfo_heapMemoryMax="Heap Memory - Max";this.AppInfo_memoryInfo_nonHeapMemoryInit="Non Heap Memory Initialized";this.AppInfo_memoryInfo_nonHeapMemoryUsed="Non Heap Memory Used";this.AppInfo_memoryInfo_nonHeapMemoryFree="Non Heap Memory Free";
this.AppInfo_memoryInfo_nonHeapMemoryCommitted="Non Heap Memory Committed";this.AppInfo_memoryInfo_nonHeapMemoryMax="Non Heap Memory Max";this.AppInfo_threadInfo="Thread Info";this.AppInfo_threadInfo_totalThreadCount="Total Thread Count";this.AppInfo_threadInfo_totalStartedThreadCount="Total Started Thread Count";
this.AppInfo_threadInfo_totalPeakThreadCount="Total Peak Thread Count";this.AppInfo_threadInfo_totalDaemonThreadCount="Total Daemon Thread Count";this.AppInfo_threadInfo_appThreadCount="Application Thread Count";this.AppInfo_threadInfo_appActiveRequestsThreadCount="Application Active Requests Thread Count";
this.AppInfo_threadInfo_appDeamonThreadCount="Application Ceamon Thread Count";this.AppInfo_threadInfo_appDeadThreadCount="Application Dead Thread Count";this.AppInfo_threadInfo_appInterruptedThreadCount="Application Interrupted Thread Count";this.AppInfo_systemInfo="System Info";this.AppInfo_systemInfo_loadedClassCount="Loaded Class Count";
this.AppInfo_systemInfo_unloadedClassCount="Unloaded Class Count";this.AppInfo_systemInfo_totalLoadedClassCount="Total Loaded Class Count";this.AppInfo_systemInfo_osName="OS Name";this.AppInfo_systemInfo_arch="System Architecture";this.AppInfo_systemInfo_availableProcessors="Available Processors";this.AppInfo_systemInfo_osVersion="OS Version";
this.AppInfo_systemInfo_managementSpecVersion="Management Interface Specification Version";this.AppInfo_systemInfo_specName="JVM Specification Name";this.AppInfo_systemInfo_specVendor="JVM Specification Vendor";this.AppInfo_systemInfo_specVersion="JVM Specification Version";this.AppInfo_systemInfo_vmStartTime="JVM Start Time";
this.AppInfo_systemInfo_vmUptime="JVM Uptime";this.AppInfo_systemInfo_vmName="JVM Implementation name";this.AppInfo_systemInfo_vmVendor="JVM Vendor";this.AppInfo_systemInfo_vmVersion="JVM Version";this.AppInfo_systemInfo_rtName="JVM Name";this.AppInfo_systemInfo_bootClassPath="Boot Classpath";this.AppInfo_systemInfo_classPath="Classpath";
this.AppInfo_systemInfo_vmArguments="VM Arguments";this.AppInfo_systemInfo_libraryPath="Library Path";this.AppInfo_systemInfo_systemProperties="System Properties";this.APPSession_timeoutMessage="Your session is expired. Please login again.";this.LoadingMessage="Please Wait...";this.ht=new Ext.ux.Hashtable();
this.ht.put("success.folderAddSuccess","Folder added successfully.");this.ht.put("success.folderDeleteSuccess","Folder deleted successfully.");this.ht.put("user.success.folderRenameSuccess","Folder renamed successfully.");this.ht.put("success.folderMoveSuccess","Folder moved successfully.");this.ht.put("user.success.personAddSuccess","Person added successfully.");
this.ht.put("success.personDeleteSuccess","Person deleted successfully.");this.ht.put("success.peopleDeleteSuccess","People deleted successfully.");this.ht.put("success.noPeopleFound","No results found for the requested search criteria.");this.ht.put("success.tagDeleteSuccess","Tag deleted successfully.");
this.ht.put("success.fileUpdateSuccess","File updated successfully.");this.ht.put("success.fileDeleteSuccess","Files deleted successfully.");this.ht.put("success.fileMoveSuccess","File moved successfully");this.ht.put("user.success.noFilesFound","Files not found for given search criteria.");this.ht.put("success.padDeleteSuccess","Pad(s) deleted successfully.");
this.ht.put("success.padAddSuccess","Pad added successfully.");this.ht.put("success.padUpdateSuccess","Pad updated successfully.");this.ht.put("user.success.noPadsFound","Pads not found.");this.ht.put("success.resetPassword","Password reset successfully.");this.ht.put("user.success.accountUpdateSuccess","Account updated successfully.");
this.ht.put("success.loggedOutSuccessful","Logged out successfully.");this.ht.put("success.emailToAllReviewersSuccess","Sent email to all reviewers successfully.");this.ht.put("error.user.folderNotFound","Folder not found.");this.ht.put("error.user.folderExists","Folder already exists.");this.ht.put("error.user.personExists","The user with this email address already exists in the database.");
this.ht.put("error.user.personNotExists","The user with this email address not exists in the database.");this.ht.put("error.user.fileExists","File with this name already exists.");this.ht.put("error.user.tagNotFound","Tag not found.");this.ht.put("error.user.filesNotReady","Files are being uploaded. Are you sure you want to cancel?");
this.ht.put("error.user.filesReady","Files are uploaded.");this.ht.put("error.user.fileNotFound","File not found.");this.ht.put("error.user.padExists","Pad already exists with this Pad name.");this.ht.put("error.user.padNotFound","Pad not found.");this.ht.put("error.user.userNotFound","User not found.");
this.ht.put("error.user.accountExists","This url is already in use for another account, please choose a new url.");this.ht.put("error.user.dynamicTextMismatch","Dynamic text does not match.");this.ht.put("error.user.emailExists","Email address already exists");this.ht.put("error.user.loginFailed","Failed to login.");
this.ht.put("error.user.permissionDenied","You do not have permissions to perform this operation.");this.ht.put("error.user.logoutUnsuccessful","Logout unsuccessful.");this.ht.put("error.user.padNotFoundForReviewer","Pad not found for reviewer.");this.ht.put("error.user.personNotFound","Email address does not exists.");
this.ht.put("error.user.loginFailed.badCredentials","Invalid Login Name or Password.");this.ht.put("error.user.noAccount","There is no account associated with this URL. Please check the URL again or go to http://www.reviewpad.net/login.do.");this.ht.put("error.user.reviewError","Error occured while loading the review page. Please make sure that the link sent in an email is not cut-off.");
this.ht.put("error.user.reviewCurrentDateIsLower","The files will be ready for review on $START_DATE$. Please return at that time and leave feedback.");this.ht.put("error.user.reviewCurrentDateIsGreater","The deadline for providing feedback has passed.");this.ht.put("error.user.betaCodeNotFound","Beta code is not valid.");
this.ht.put("error.user.betaCodeExpired","Beta code expired.");this.ht.put("error.user.betaCodeAccountsInUsed","All beta accounts are in use");this.ht.put("error.user.accountUrlExists","This url is already in use for another account, please choose a new url.");this.ht.put("error.app.addComment","Failed to add comments.");
this.ht.put("error.app.addAccount","Failed to create account.");this.ht.put("error.app.addFolder","Failed to add folder.");this.ht.put("error.app.renameFolder","Failed to rename folder.");this.ht.put("error.app.deleteFolder","Failed to delete folder.");this.ht.put("error.app.getFolders","Failed to load the folders.");
this.ht.put("error.app.moveFolder","Failed to move folder tree.");this.ht.put("error.app.serverConnectionFailure","Failed to connect to the server.");this.ht.put("error.app.addPerson","Failed to add person");this.ht.put("error.app.getPeople","Failed to load the people");this.ht.put("error.app.deletePerson","Failed to delete the person");
this.ht.put("error.app.editPerson","Failed to edit the person");this.ht.put("error.app.getReviews","Failed to load Reviews.");this.ht.put("error.app.getPads","Failed to load Pads");this.ht.put("error.app.searchPeople","Failed to search people");this.ht.put("error.app.getFiles","Failed to load files for the folder");
this.ht.put("error.app.addFile","Failed to add file.");this.ht.put("error.app.getAllTags","Failed to load tags.");this.ht.put("error.app.addTag","Failed to add tag.");this.ht.put("error.app.deleteTag","Failed to delete tag.");this.ht.put("error.app.deleteFile","Failed to delete the file.");this.ht.put("error.app.moveFile","Failed to move file.");
this.ht.put("error.app.addPad","Failed to add pad.");this.ht.put("error.app.deletePad","Failed to delete pad.");this.ht.put("error.app.searchFiles","Failed to search files");this.ht.put("error.app.updatePad","Failed to update pad.");this.ht.put("error.app.signupFailed","Failed to sign up.");this.ht.put("error.app.addCommentFailed","Add comment failed.");
this.ht.put("error.app.deleteCommentFailed","Delete comment failed.");this.ht.put("error.app.getMultipageFilesFailed","Get multipage files failed.");this.ht.put("error.app.loginFailed.badCredentials","Your login was unsuccessful. Please try again.");this.ht.put("error.app.editAccount","There was a problem updating your account.");
this.ht.put("error.app.upgradeAccount","There was a problem upgrade your account.");this.ht.put("error.app.accountNotFound","There was a problem updating your account (account not found)");this.ht.put("error.app.getAccounts","Get accounts failed.");this.ht.put("error.app.forgetPassword","Forgot your password failed.");
this.ht.put("error.app.getAccountPrices","Get account prices failed.");this.ht.put("error.app.getLicenseStatusInfo","Get license status information failed.");this.ht.put("error.app.encryptPassword","Failed to encrypt.");this.ht.put("error.app.decryptPassword","Failed to decrypt.");this.ht.put("error.user.accountNotFound","There was a problem updating your account settings (account not found)");
this.ht.put("validate.folder.confirmDelete","Are you sure you want to delete this folder?");this.ht.put("validate.people.confirmDelete","Are you sure you want to delete this user?");this.ht.put("validate.file.confirmDelete","Are you sure you want to delete this file?");this.ht.put("validate.pad.confirmDelete","Are you sure you want to delete this pad?");
this.ht.put("validate.folder.select","Please select folder to delete.");this.ht.put("validate.rootfolder.delete","Root folder can not be deleted.");this.ht.put("validate.folder.selectForRaname","Please select folder to rename.");this.ht.put("validate.folder.selectForAdd","Please select folder to add new folder.");
this.ht.put("validate.folder.nameBlank","Folder Name should be non blank.");this.ht.put("validate.folder.alreadyExist","This destination already contains folder with this name.");this.ht.put("validate.folder.passwordCrosscheck","Password does not match.");this.ht.put("validate.file.validateFolderSelect","You must select a folder to add files.");
this.ht.put("validate.file.validateDuplicateKeyword","This keyword already exists - no need to create it again.");this.ht.put("validate.file.validateEmptyKeyword","Please enter keyword.");this.ht.put("validate.account.validateDuplicateKeyword","This keyword already exists - no need to create it again.");
this.ht.put("validate.account.validateEmptyKeyword","It looks like you didn't enter any text in the new keyword field.  We'll go ahead and place the cursor where it needs to be so just start typing after you click 'OK'");this.ht.put("validate.account.validateNoKeywordSelected","You didn't have any keywords selected.  Just click on the keyword you want to delete and then press the button.  If you want to select multiple keywords hold down the CTRL key (Windows) or Command Key (Mac) and then click on the files you want to delete.");
this.ht.put("validate.account.roboheadUrl","Please enter valid RoboHead Url.");this.ht.put("validate.account.confirmCancel","Are you sure you want to cancel your account? All files will be lost and cannot be recovered.");this.ht.put("validate.validationFailure","Either there's some information missing or perhaps the information you entered needs to be tweaked but we'll help you get it fixed. The fields that are causing the problem are highlighted with red squiggly lines - if you move your mouse over the highlighted fields you can see an explanation of what went wrong and how to correct it.");
this.ht.put("validate.validationFailure.MsgBoxTitle","A Little Help");this.ht.put("validate.people.deleteNoPermission","You do not have permission to delete the selected person.");this.ht.put("validate.people.canNotDelete","You can not delete the selected person.");this.ht.put("validate.people.editAdmin","Please assign Administrator role to another user, before you perform this operation as you are the only administrator for this account.");
this.ht.put("validate.people.deleteAdmin","Please assign Administrator role to another user, before you perform this operation as you are trying to delete only administrator for this account.");this.ht.put("validate.review.confirmFinish","You are about to leave the review screen. Are you sure you want exit?");
this.ht.put("error.user.addToPDFFailed","Failed to add Pad contents in PDF.");this.ht.put("error.app.pdf.document.failed","Failed to generate PDF.");this.ht.put("validate.pad.validateEmptyPad","You didn't have any pad selected.  Just check the pad you want to delete and then press the Archive button.");
this.ht.put("HomePage_adv_upgradeText_1",'Send files securely with 128-bit SSL encryption -<a href="javascript:openAccountUpgrade()" class="headerLink">Upgrade to ReviewPad Professional now</a>');this.ht.put("HomePage_adv_upgradeText_2",'Running tight on space?  Quadruple your storage to 2 GB -<a href="javascript:openAccountUpgrade()" class="headerLink">Upgrade to ReviewPad Professional now</a>');
this.ht.put("HomePage_adv_upgradeText_3",'Make ReviewPad your own - use a custom URL and brand the app with your company colors & logo -<a href="javascript:openAccountUpgrade()" class="headerLink">Upgrade to ReviewPad Professional now</a>');this.ht.put("HomePage_adv_upgradeText_4",'Need help?  Get answers to your questions quickly with direct email support  -<a href="javascript:openAccountUpgrade()" class="headerLink">Upgrade to ReviewPad Professional now</a>');
};Ext.namespace("Aquent.reviewpad");Aquent.reviewpad.SignupStart=Ext.extend(Ext.FormPanel,{initComponent:function(){Ext.apply(this,{bodyStyle:"padding:5px 5px 0",bodyBorder:false,keys:[{key:[Ext.EventObject.ENTER],fn:this.startNewAccount}],items:[{xtype:"panel",layout:"form",border:false,bodyStyle:"padding:5px 5px 0",id:"signup-start-fieldset",labelWidth:135,collapsible:false,frame:false,autoHeight:true,width:400,items:[{fieldLabel:this.custom_labels.SignupAccount_email,id:"account-email-address",name:"email-address",xtype:"textfield",vtype:"email",allowBlank:false,width:200,listeners:{render:function(){var a=Ext.getCmp("j_username").getValue();
if(a!=""){this.setValue(a);}}}},{fieldLabel:this.custom_labels.SignupAccount_password,id:"account-password",inputType:"password",name:"password",xtype:"textfield",allowBlank:false,vtype:"password",minLength:5,minLengthText:this.custom_labels.SignupAccount_minPasswordCharsValidationText,width:200},{fieldLabel:this.custom_labels.SignupAccount_confirmPassword,id:"account-confirm-password",inputType:"password",name:"confirm-password",initialPassField:"account-password",xtype:"textfield",allowBlank:false,vtype:"password",minLength:5,minLengthText:this.custom_labels.SignupAccount_minPasswordCharsValidationText,invalidText:this.custom_labels.SignupAccount_invalidPasswordText,width:200},{fieldLabel:this.custom_labels.SignupAccount_betaCodeText,id:"account-beta-code",xtype:"textfield",width:200,helpMsg:this.custom_labels.SignupAccount_betaCodeHelpMsg},{layout:"column",id:"verification-column",cls:"verification-column",border:false,bodyStyle:{padding:"0 0 5 0"},items:[{xtype:"label",text:".",width:140,cls:"image-verification-label"},{xtype:"box",id:"verification-image",imageSrc:"randomImage.do",autoEl:{tag:"img",height:50,width:200},refreshImage:function(b){var a;
if(a=this.el){a.dom.src=(b||this.imageSrc)+"?dc="+new Date().getTime();}},listeners:{render:function(){this.refreshImage();}}}]},{fieldLabel:this.custom_labels.SignupAccount_verificationImageText,id:"account-verification-image-text",xtype:"textfield",width:100,allowBlank:false}],listeners:{render:function(){if(Ext.isIE){this.getEl().addClass("ext-ie");
}}}}],buttonAlign:"center",buttons:[{text:this.custom_labels.SignupAccount_startNewAccountWizard,id:"signup-button",handler:this.startNewAccount}]});Aquent.reviewpad.SignupStart.superclass.initComponent.apply(this,arguments);},onRender:function(){Aquent.reviewpad.SignupStart.superclass.onRender.apply(this,arguments);
},startNewAccount:function(){var a=Ext.getCmp("signup-start");var b=Ext.getCmp("account-email-address").getValue();if(a.getForm().isValid()){Ext.getCmp("signup-button").disable();if(b.split("@")[1]==serverDomainUrl){Ext.Msg.alert("Message",replaceText(custom_labels.SignupAccount_invalidEmailText,"$SERVERDOMAINURL$",serverDomainUrl),function(){Ext.getCmp("account-email-address").focus(true);
Ext.getCmp("verification-image").refreshImage();Ext.getCmp("account-verification-image-text").reset();});return;}var c={};c.action="SIGN-UP-ACCOUNT-ACTION";c.email=b;c.password=Ext.getCmp("account-password").getValue();c.confirmPassword=Ext.getCmp("account-confirm-password").getValue();c.betaCode=Ext.getCmp("account-beta-code").getValue();
c.dynamicText=Ext.getCmp("account-verification-image-text").getValue();handleSignupXHRCalls("signup.do?op=1",c);}else{Ext.Msg.alert("Error",custom_labels.ht.get("validate.validationFailure"),function(){Ext.getCmp("verification-image").refreshImage();Ext.getCmp("account-verification-image-text").reset();
Ext.getCmp("account-email-address").focus();});}}});Ext.reg("signupstart",Aquent.reviewpad.SignupStart);Ext.namespace("Aquent.reviewpad");Aquent.reviewpad.SignupWizard=Ext.extend(Ext.Panel,{id:"signup-wizard",monthStore:null,yearStore:null,accountUrl:null,initComponent:function(){var b=Ext.data.Record.create([{name:"Name"},{name:"Value"}]);var a=new Ext.data.XmlReader({record:"NameValuePair"},b);this.monthStore=new Ext.data.Store({reader:a,url:"signup.do?op=3",listeners:{load:function(){parseXMLResult(this.reader.xmlData);
}}});this.yearStore=new Ext.data.Store({reader:a,url:"signup.do?op=8",listeners:{load:function(){parseXMLResult(this.reader.xmlData);}}});var d=new Ext.ToolTip({closable:false,draggable:false,resizable:false,shadow:"frame",autowidth:false,width:290,anchor:"top",dismissDelay:0,anchorOffset:80,html:custom_labels.SignupWizard_Help_AccountUrlTip});
var f=new Ext.form.RadioGroup({fieldLabel:"Radiogroup",hideLabel:true,columns:1,defaults:{name:"account-type"},items:[{inputValue:"hidden",id:"hid-radio",hidden:true,hideLabel:true,hideMode:"offsets"}]});var c=new Ext.ToolTip({closable:false,draggable:false,resizable:false,shadow:"frame",autowidth:false,width:290,anchor:"top",dismissDelay:0,anchorOffset:80,html:custom_labels.AccountUpgradeForm_securityCodeHelpTip});
var h=new Ext.data.Store({reader:new Ext.data.XmlReader({record:"AccountPrice"},[{name:"Id"},{name:"ShortDesc"},{name:"Description"},{name:"MaxStorage"},{name:"PricePerMonth"},{name:"BetaCodeRequired"},{name:"BrandingType"},{name:"DeleteFilesWithPad"},{name:"DisplaySignup"},{name:"EnableSSL"},{name:"CustomUrl"}]),url:"signup.do?op=7",autoLoad:true,listeners:{load:function(){parseXMLResult(this.reader.xmlData);
var s="";var i=0;var k=0;var l=false;var r=false;var m=f.panel.items;var n=Ext.getCmp("signup-wizard").isAquentTalent;var q=Ext.getCmp("signup-wizard").isEmptyBetaCode;var p=Ext.getCmp("signup-wizard").betaCodeAccountType;for(var i=1;i<=this.getCount();i++){if(n=="true"&&i==lookup_codes.ACCTYPE_AQUENT_TALENT){k=lookup_codes.ACCTYPE_AQUENT_TALENT-1;
}else{if(i==lookup_codes.ACCTYPE_AQUENT_TALENT){continue;}else{k=i-1;}}var j=this.getAt(k).get("Id");var o=this.getAt(k).get("DisplaySignup");if(!q){l=(this.getAt(k).get("Id")==p);r=(j!=p);Ext.getCmp("account-url-help-text").hide();Ext.getCmp("card-finish").enable();Ext.getCmp("account-termsAndConditions").show();
}else{l=(this.getAt(k).get("Id")==lookup_codes.ACCTYPE_FREE_LITE);Ext.getCmp("card-finish").enable();Ext.getCmp("card-next").hide();Ext.getCmp("account-url-help-text").show();Ext.getCmp("account-termsAndConditions").show();Ext.getCmp("account-url").setValue(Ext.getCmp("signup-wizard").accountUrl);Ext.getCmp("account-name").setValue(Ext.getCmp("signup-wizard").accountUrl);
}if(l&&this.getAt(k).get("CustomUrl")!=lookup_codes.ENABLE_CUSTOM_URL){Ext.getCmp("account-url").disable();Ext.getCmp("account-name").disable();}s=m.get(0).add({boxLabel:this.getAt(k).get("ShortDesc"),inputValue:j,checked:l,disabled:r,id:"account-type-"+j,tooltipText:this.getAt(k).get("Description"),accountStorage:this.getAt(k).get("MaxStorage"),pricePerMonth:this.getAt(k).get("PricePerMonth"),hidden:((o==lookup_codes.DISPLAY_SIGNUP_NONE||(o==lookup_codes.DISPLAY_SIGNUP_BETA_CODE_ENTERED&&q)||(o==lookup_codes.DISPLAY_SIGNUP_BETA_CODE_NOT_ENTERED&&!q))||(j==lookup_codes.ACCTYPE_CORPORATE&&j!=p)),listeners:{render:setFieldBoxLabelTooltip,check:function(v,u){var t=h.getAt(h.find("Id",v.getGroupValue()));
if(t.get("CustomUrl")!=lookup_codes.ENABLE_CUSTOM_URL){Ext.getCmp("account-name").disable();Ext.getCmp("account-url").disable();}else{Ext.getCmp("account-name").enable();Ext.getCmp("account-url").enable();}if(!q&&(t.get("Id")==p)){Ext.getCmp("card-next").hide();Ext.getCmp("card-finish").enable();Ext.getCmp("account-termsAndConditions").show();
}else{Ext.getCmp("card-finish").disable();Ext.getCmp("card-next").show();Ext.getCmp("account-termsAndConditions").hide();}if(v.getGroupValue()==lookup_codes.ACCTYPE_FREE_LITE){Ext.getCmp("account-url").setValue(Ext.getCmp("signup-wizard").accountUrl);Ext.getCmp("account-name").setValue(Ext.getCmp("signup-wizard").accountUrl);
Ext.getCmp("card-next").hide();Ext.getCmp("card-finish").enable();Ext.getCmp("account-termsAndConditions").show();}else{Ext.getCmp("account-url").setValue("");Ext.getCmp("account-name").setValue("");}}}});}f.items.add(s);f.panel.doLayout();}}});var e=new Ext.data.SimpleStore({fields:["abbr","state"],data:getStateList()});
var g=new Ext.data.SimpleStore({fields:["country"],data:getCountryList()});Ext.apply(this,{title:this.custom_labels.SignupWizard_newAccountWizard,id:"new-account-wizard-window",layout:"card",activeItem:0,bbar:["->",{id:"card-prev",text:this.custom_labels.SignupWizard_previousItemLink,handler:cardNav.createDelegate(this,[-1]),hidden:true},{id:"card-next",text:this.custom_labels.SignupWizard_nextItemLink,handler:cardNav.createDelegate(this,[1]),hidden:true},{id:"card-finish",labelStyle:"font-weight:bold;",text:this.custom_labels.SignupWizard_completeSignup,disabled:true,handler:winClose.createDelegate(this)}],items:[{id:"card-0",xtype:"form",bodyStyle:"padding:5px 5px 5px 5px",border:false,autoScroll:true,items:[{xtype:"panel",layout:"form",border:false,bodyStyle:"padding:5px 5px 0",id:"account-info-fieldset",title:this.custom_labels.SignupWizard_accountInfoTitle,labelWidth:110,collapsible:false,autoHeight:true,width:600,items:[{fieldLabel:this.custom_labels.SignupWizard_firstName,id:"account-first-name",name:"first-name",xtype:"textfield",allowBlank:false,width:200},{fieldLabel:this.custom_labels.SignupWizard_lastName,id:"account-last-name",name:"last-name",xtype:"textfield",allowBlank:false,width:200},{fieldLabel:this.custom_labels.SignupAccount_company,id:"account-company",name:"company",xtype:"textfield",hideLabel:true,hidden:true,value:custom_prefs.SignupWizard_defaultCompany,width:200},{fieldLabel:this.custom_labels.SignupWizard_accountName,id:"account-name",name:"account-name",xtype:"textfield",allowBlank:false,width:200,listeners:{blur:function(j){if(!Ext.getCmp("account-url").getEl().dom.disabled){if(!Ext.getCmp("account-url").getValue()){var i=/[a-zA-Z0-9\-]/;
var k=filterInvalidURLChars(i,j.getValue());Ext.getCmp("account-url").setValue(k);}}},disable:function(){Ext.getCmp("account-url-help-text").show();this.setValue(Ext.getCmp("signup-wizard").accountUrl);},enable:function(){Ext.getCmp("account-url-help-text").hide();this.setValue("");}}},{layout:"table",anchor:"0",border:false,items:[{width:320,layout:"form",border:false,items:{fieldLabel:this.custom_labels.SignupWizard_accountUrl,id:"account-url",name:"account-url",xtype:"textfield",requiredMsg:this.custom_labels.SignupWizard_accountUrlTip,allowBlank:false,maskRe:/[a-zA-Z0-9\-]/,width:200,listeners:{disable:function(){this.setValue(Ext.getCmp("signup-wizard").accountUrl);
},enable:function(){Ext.getCmp("account-url-help-text").hide();this.setValue(Ext.getCmp("account-name").getValue());}}}},{layout:"form",bodyStyle:"margin-top: 1px;",border:false,items:{xtype:"label",ctCls:"acct-url-suffix",text:"."+serverDomainUrl}},{xtype:"panel",border:false,bodyStyle:"padding-top:3px;padding-left:3px;",items:[new Ext.BoxComponent({id:"account-url-help-text",autoEl:{tag:"img",src:"../images/default/s.gif"},listeners:{render:function(i){i.getEl().addClass("icon-field-help");
i.getEl().on("mouseover",function(){var j=this.getEl().getAnchorXY("bl");j[0]=j[0]-90;j[1]=j[1]+8;d.showAt(j);},i,{stopEvent:true});i.getEl().on("mouseout",function(){d.hide();},i,{stopEvent:true});}}})]}]}]},{xtype:"panel",layout:"form",border:false,bodyStyle:"padding:5px 5px 0",id:"account-type-fieldset",title:this.custom_labels.SignupWizard_accountType,labelWidth:110,collapsible:false,autoHeight:true,width:600,items:[f]},{xtype:"panel",layout:"form",border:false,bodyStyle:"padding:5px 5px 0",id:"account-preferences-fieldset",title:this.custom_labels.SignupWizard_accountPreferncesTitle,labelWidth:110,collapsible:false,autoHeight:true,width:600,items:[{fieldLabel:this.custom_labels.SignupWizard_accountLocale,store:new Ext.data.Store({reader:new Ext.data.XmlReader({record:"NameValuePair"},[{name:"Name"},{name:"Value"}]),url:"signup.do?op=5",autoLoad:true,listeners:{load:function(){parseXMLResult(this.reader.xmlData);
if(this.getCount()==1){Ext.getCmp("account-locale-id").setValue(this.getAt(0).get("Name"));Ext.getCmp("account-locale-id").hide();}}}}),displayField:"Value",valueField:"Name",triggerAction:"all",hiddenName:"account-locale",id:"account-locale-id",xtype:"combo",mode:"local",hideLabel:true,forceSelection:true,allowBlank:false,width:200},{fieldLabel:this.custom_labels.SignupWizard_accountTimezone,store:new Ext.data.Store({reader:new Ext.data.XmlReader({record:"NameValuePair"},[{name:"Name"},{name:"Value"}]),url:"signup.do?op=6",autoLoad:true,listeners:{load:function(){parseXMLResult(this.reader.xmlData);
}}}),displayField:"Value",valueField:"Name",triggerAction:"all",hiddenName:"account-timezone",id:"account-timezone-id",xtype:"combo",mode:"local",forceSelection:true,allowBlank:false,width:200}]},{id:"account-termsAndConditions",border:false,cls:"messageText",hidden:true,html:this.custom_labels.SignupWizard_termsAndConditions}]},{id:"card-1",xtype:"form",bodyStyle:"padding:5px 5px 0",bodyBorder:false,items:[{xtype:"panel",layout:"form",border:false,bodyStyle:"padding:5px 5px 0",id:"account-billing-information-fieldset",title:this.custom_labels.SignupWizard_billingInformation,labelWidth:135,collapsible:false,autoHeight:true,width:600,items:[{id:"billing-first-name",fieldLabel:this.custom_labels.SignupWizard_billingFirstName,name:"firstname",xtype:"textfield",allowBlank:false,width:200},{id:"billing-last-name",fieldLabel:this.custom_labels.SignupWizard_billingLastName,name:"lastname",xtype:"textfield",allowBlank:false,width:200},{xtype:"panel",fieldLabel:this.custom_labels.SignupWizard_creditCardNumber,allowBlank:false,border:false,layout:"table",layoutConfig:{columns:2,tableAttrs:{align:"left",width:"92%"}},items:[{id:"billing-creditcard-number",name:"ccnum",xtype:"textfield",maskRe:/[0-9]/,minLength:11,maxLength:16,allowBlank:false,width:200},new Ext.BoxComponent({id:"billing-creditcard-icon",style:"padding-left: 5px;",autoEl:{tag:"img",src:"../images/cc_accept.gif"}})]},{allowBlank:false,anchor:"0",layout:"table",border:false,layoutConfig:{columns:2},items:[{layout:"form",border:false,items:[{fieldLabel:this.custom_labels.SignupWizard_securityCode,id:"billing-security-code",name:"security-code",xtype:"textfield",maskRe:/[0-9]/,height:20,minLength:3,maxLength:4,allowBlank:false,width:40}]},{xtype:"panel",border:false,bodyStyle:"padding-bottom:5px;padding-left:3px;",items:[new Ext.BoxComponent({id:"security-code-help-text",autoEl:{tag:"img",src:"../images/default/s.gif"},listeners:{render:function(i){i.getEl().addClass("icon-field-help");
i.getEl().on("mouseover",function(){var j=this.getEl().getAnchorXY("bl");j[0]=j[0]-90;j[1]=j[1]+8;c.showAt(j);},i,{stopEvent:true});i.getEl().on("mouseout",function(){c.hide();},i,{stopEvent:true});}}})]}]},{layout:"column",border:false,items:[{width:240,layout:"form",border:false,items:[{id:"billing-creditcard-expdate-month",xtype:"combo",mode:"local",fieldLabel:this.custom_labels.SignupWizard_creditCardExpDate,store:this.monthStore,displayField:"Name",valueField:"Value",forceSelection:true,triggerAction:"all",emptyText:this.custom_labels.SignupWizard_creditCardExpDateEmptyMonthText,allowBlank:false,width:90,listWidth:90}]},{width:200,layout:"form",border:false,items:[{id:"billing-creditcard-expdate-year",xtype:"combo",mode:"local",hideLabel:true,store:this.yearStore,displayField:"Value",valueField:"Name",forceSelection:true,triggerAction:"all",emptyText:this.custom_labels.SignupWizard_creditCardExpDateEmptyYearText,allowBlank:false,width:55,listWidth:55}]}]}]},{xtype:"panel",layout:"form",border:false,bodyStyle:"padding:5px 5px 0",id:"account-billing-address-fieldset",title:this.custom_labels.SignupWizard_billingAddressInformation,labelWidth:135,collapsible:false,autoHeight:true,width:600,items:[{id:"billing-address",fieldLabel:this.custom_labels.SignupWizard_billingAddress,name:"address",xtype:"textfield",allowBlank:false,width:200},{id:"billing-address-city",fieldLabel:this.custom_labels.SignupWizard_billingAddressCity,name:"city",xtype:"textfield",allowBlank:false,width:200},{id:"billing-address-state-list",fieldLabel:this.custom_labels.SignupWizard_billingAddressState,name:"state",xtype:"combo",mode:"local",store:e,displayField:"state",forceSelection:true,triggerAction:"all",emptyText:this.custom_labels.SignupWizard_billingAddressStateEmptyText,allowBlank:false,width:200,listeners:{select:function(k,i,j){Ext.getCmp("billing-address-state-text").setValue(i.data.state);
}}},{id:"billing-address-state-text",fieldLabel:this.custom_labels.AccountUpgradeForm_billingAddressState,name:"state",xtype:"textfield",hidden:true,allowBlank:false,width:200,listeners:{change:function(k,i,j){Ext.getCmp("billing-address-state-list").setValue(this.getValue());}}},{id:"billing-address-zip",fieldLabel:this.custom_labels.SignupWizard_billingAddressZip,name:"zip",xtype:"textfield",regex:/^\d{5}(-\d{4})?$/,invalidText:this.custom_labels.SignupWizard_validateBillingAddressZip,allowBlank:false,width:200},{id:"billing-address-country",fieldLabel:this.custom_labels.SignupWizard_billingAddressCountry,name:"country",xtype:"combo",mode:"local",store:g,displayField:"country",forceSelection:true,triggerAction:"all",emptyText:this.custom_labels.SignupWizard_billingAddressCountryEmptyText,allowBlank:false,value:"USA",width:200,listeners:{select:function(k,i,j){if(i.data.country!="USA"){Ext.getCmp("billing-address-state-list").hide();
Ext.getCmp("billing-address-state-text").show();}else{Ext.getCmp("billing-address-state-list").show();Ext.getCmp("billing-address-state-text").hide();}}}}]},{id:"billing-termsAndConditions",border:false,cls:"messageText",html:this.custom_labels.SignupWizard_termsAndConditions}]},{id:"card-2",bodyStyle:"padding:5px 5px 5px 5px",border:false,autoScroll:true,cls:"messageText",html:this.custom_labels.SignupWizard_thankYouHtmlLabel}]});
Aquent.reviewpad.SignupWizard.superclass.initComponent.apply(this,arguments);},onRender:function(){Aquent.reviewpad.SignupWizard.superclass.onRender.apply(this,arguments);}});Ext.reg("signupwizard",Aquent.reviewpad.SignupWizard);Ext.namespace("Aquent.reviewpad");Ext.BLANK_IMAGE_URL="../../images/default/s.gif";var custom_labels;var custom_prefs;var lookup_codes;Ext.onReady(function(){Ext.QuickTips.init();custom_labels=new Aquent.reviewpad.Properties();custom_prefs=new Aquent.reviewpad.Preferences();lookup_codes=new Aquent.reviewpad.LookupCodes(custom_labels);
initExtensions();loginInit(custom_labels);var g=new Ext.TabPanel({id:"login-tabs-panel",activeItem:0,layoutOnTabChange:true,region:"center",items:[{title:custom_labels.LoginPanel_loginTitle,layout:"fit",id:"login-tab",items:[{xtype:"loginform",custom_labels:window.custom_labels,id:"login-form"}]},{title:custom_labels.LoginPanel_signUpTitle,layout:"fit",id:"new-account-tab",items:[{xtype:"signupstart",id:"signup-start",custom_labels:window.custom_labels}],listeners:{activate:function(){Ext.getCmp("account-email-address").focus();
}}}]});var b=" ";if(dbLogoUrl==""&&dbColorScheme!=lookup_codes.COLOR_SCHEME_RP&&dbColorScheme!=0){b="<span style='color:"+dbHeaderTextColor+";'>"+custom_labels.LoginPanel_welcomeTitle+"</span>";}var a=new Ext.Panel({layout:"border",title:b,id:"tab-container",width:416,height:330,x:"50%",y:"40%",cls:"loginPanel",items:[g]});
if(dbLogoUrl){Ext.getCmp("tab-container").setIconClass("headerlogo");}var d=new Ext.Panel({title:custom_labels.LoginPanel_welcomeTitle,id:"no-account-panel",width:416,height:300,x:"30%",y:"30%",items:[{bodyStyle:"padding: 5 5 5 5",html:"<div>"+getNoAccountFoundMessage()+"</div>",cls:"messageText",border:false}]});
var c=null;if(isAccountFound=="true"||getSubDomain()==custom_labels.LoginFormPanel_accountUrlPrefix||getSubDomain()==""){c=a;}else{c=d;}var f=new Ext.BoxComponent({id:"login-header-logo",hidden:(dbLogoUrl==""||dbLogoUrl==null)?true:false,autoEl:{tag:"img",src:dbLogoUrl},width:custom_labels.AccountSettingsFormPanel_currentLogo_width,height:custom_labels.AccountSettingsFormPanel_currentLogo_height,cls:"login-header-logo"});
var e=new Ext.Viewport({layout:"absolute",id:"page-container",frame:false,items:[c,f],listeners:{afterrender:function(){if(dbLogoUrl!=""||dbLogoUrl!=null){f.setPosition((c.getPosition()[0]+2),(c.getPosition()[1]+2));}}},renderTo:Ext.getBody()});Ext.getCmp("j_username_dummy").focus();});function launchWizard(c){var a=false;
if(!Ext.getCmp("account-beta-code").getValue().trim()){a=true;}var b=new Ext.Window({id:"signup-wizard-window",closable:true,modal:true,resizable:false,width:640,height:505,draggable:false,plain:false,items:[{xtype:"signupwizard",isAquentTalent:Ext.DomQuery.selectValue("AquentTalent",c),isEmptyBetaCode:a,betaCodeAccountType:Ext.DomQuery.selectValue("AccountType",c),custom_labels:window.custom_labels,width:630,height:475}],listeners:{close:function(){Ext.getCmp("account-verification-image-text").reset();
Ext.getCmp("signup-button").enable();},show:function(){Ext.getCmp("account-first-name").focus(false,100);}}});b.show();Ext.getCmp("signup-wizard").accountUrl=Ext.DomQuery.selectValue("AccountUrl",c);}function setFieldLabelTooltip(b){var a=Ext.get("x-form-el-"+b.id).prev("label");Ext.QuickTips.register({target:a,text:b.tooltipText,title:b.tooltipTitle});
}var cardNav=function(h){var b=this.getLayout();var c=b.activeItem.id.split("card-")[1];if(c==0&&h==1){var a=Ext.getCmp("card-0");if(a.getForm().isValid()){if(reservedAccountUrl(Ext.getCmp("account-url").getValue())){Ext.Msg.alert("Error",custom_labels.ht.get("error.user.accountExists"));return;}var g={};
var e=Ext.getCmp("account-type-"+lookup_codes.ACCTYPE_FREE_LITE).getGroupValue();var f=Ext.getCmp("account-type-"+e).accountStorage;g.action="SUBMIT-ACCOUNT-INFO-ACTION";g.firstName=Ext.getCmp("account-first-name").getValue();g.lastName=Ext.getCmp("account-last-name").getValue();g.accountName=Ext.getCmp("account-name").getValue();
g.accountURLPrefix=Ext.getCmp("account-url").getValue();g.accountType=e;g.accountStorage=f;g.accountLocale=Ext.getCmp("account-locale-id").getValue();g.accountTimezone=Ext.getCmp("account-timezone-id").getValue();g.company=Ext.getCmp("account-company").getValue();handleSignupXHRCalls("signup.do?op=2",g);
}else{Ext.Msg.alert("Error",custom_labels.ht.get("validate.validationFailure"));}return;}var d=parseInt(c)+h;b.setActiveItem(d);if(d==0){Ext.getCmp("card-prev").hide();Ext.getCmp("card-next").show();Ext.getCmp("card-finish").disable();}else{if(d==1){Ext.getCmp("card-prev").show();Ext.getCmp("card-next").hide();
Ext.getCmp("card-finish").enable();}}};var winClose=function(){var a=this.getLayout();var c=a.activeItem.id.split("card-")[1];var h=Ext.getCmp("card-"+c);var f={};f.action="COMPLETE-SIGNUP-ACTION";if(h.getForm().isValid()){if(c==0){if(reservedAccountUrl(Ext.getCmp("account-url").getValue())){Ext.Msg.alert("Error",custom_labels.ht.get("error.user.accountExists"));
return;}var d=Ext.getCmp("account-type-"+lookup_codes.ACCTYPE_FREE_LITE).getGroupValue();var e=Ext.getCmp("account-type-"+d).accountStorage;f.firstName=Ext.getCmp("account-first-name").getValue();f.lastName=Ext.getCmp("account-last-name").getValue();f.accountName=Ext.getCmp("account-name").getValue();
f.accountURLPrefix=Ext.getCmp("account-url").getValue();f.accountType=d;f.accountStorage=e;f.accountLocale=Ext.getCmp("account-locale-id").getValue();f.accountTimezone=Ext.getCmp("account-timezone-id").getValue();f.company=Ext.getCmp("account-company").getValue();f.next=false;}else{if(c==1){var d=Ext.getCmp("account-type-"+lookup_codes.ACCTYPE_FREE_LITE).getGroupValue();
var b=Ext.getCmp("account-type-"+d).pricePerMonth;var g=Ext.getCmp("billing-creditcard-expdate-year").getValue()+"-"+Ext.getCmp("billing-creditcard-expdate-month").getValue();f.firstName=Ext.getCmp("billing-first-name").getValue();f.lastName=Ext.getCmp("billing-last-name").getValue();f.creditCardNumber=Ext.getCmp("billing-creditcard-number").getValue();
f.expDate=g;f.pricePerMonth=b;f.securityCode=Ext.getCmp("billing-security-code").getValue();f.address=Ext.getCmp("billing-address").getValue();f.country=Ext.getCmp("billing-address-country").getValue();if(f.country=="USA"){f.state=Ext.getCmp("billing-address-state-list").getValue();}else{f.state=Ext.getCmp("billing-address-state-text").getValue();
}f.city=Ext.getCmp("billing-address-city").getValue();f.zip=Ext.getCmp("billing-address-zip").getValue();f.next=true;}}if(d!=lookup_codes.ACCTYPE_FREE_LITE){handleSignupXHRCalls("signup.do?op=4",f);}else{handleSignupXHRCalls("signup.do?op=9",f);}}else{Ext.Msg.alert("Error",custom_labels.ht.get("validate.validationFailure"));
}};Ext.apply(Ext.form.VTypes,{password:function(c,b){if(b.initialPassField){var a=Ext.getCmp(b.initialPassField);return(c==a.getValue());}return true;}});function showAccountPopupWindow(e,a,b){var d=new Ext.FormPanel({frame:false,items:[{xtype:"fieldset",id:"account-url-popup-fieldset",labelWidth:100,collapsible:false,collapsed:false,autoHeight:true,bodyStyle:"padding:5px 5px 0",cls:"labelText",items:[{xtype:"box",id:"account-popup-msg",hidden:false,autoEl:{tag:"div",href:"#",html:this.custom_labels.LoginFormPanel_accountUrlDDLMsg},cls:"messageText"},{layout:"column",anchor:"0",border:false,items:[{text:this.custom_labels.LoginFormPanel_accountPopup_selectAccount,xtype:"label",width:90},{id:"account-urls-id",store:e,displayField:"AccountUrl",valueField:"AccountUrl",mode:"local",xtype:"combo",allowBlank:false,width:200,height:100,triggerAction:"all",forceSelection:true,listeners:{select:function(h,f,g){if(checkAccountExpired(f.data.AccountExpired)){if(b){Ext.getCmp("forgot-password-popup").submitForm(f.data.Id);
}else{submitLoginFormInfo(f.data.Id,f.data.AccountUrl,f.data.EnableSSL==lookup_codes.DISABLE_SSL?false:true);}}}}},{width:100,layout:"form",border:false,items:{xtype:"label",ctCls:"acct-url-suffix",text:a}}]}]}]});var c=new Ext.Window({title:custom_labels.LoginFormPanel_accountPopup,closable:true,modal:true,width:450,height:130,resizable:false,draggable:false,items:[d]});
c.show();}function submitLoginFormInfo(e,a,b){var d=Ext.getCmp("login-form").getForm();var c=getHomeUrl(a,b);Ext.getCmp("j_username").setValue(Ext.getCmp("j_username").getValue()+":"+e);d.getEl().dom.action=c+"/j_spring_security_check";d.getEl().dom.method="POST";d.getEl().dom.submit();}function getHomeUrl(a,c){var b=getSubDomain();
var e=urlProtocolHttps;var f=urlHttpsPort;if(dbEnableSSL==lookup_codes.DISABLE_SSL||!c){e=urlProtocolHttp;f=urlHttpPort;}else{e=urlProtocolHttps;f=urlHttpsPort;}var d=e+"://"+window.location.host;if(urlHttpsPort!=80&&urlHttpsPort!=443&&urlHttpPort!=80&&urlHttpPort!=443){d=replaceText(d,window.location.port,f);
}if(b==custom_labels.LoginFormPanel_accountUrlPrefix){d=replaceText(d,custom_labels.LoginFormPanel_accountUrlPrefix,a);}if(b==""){d=e+"://"+a+"."+window.location.host;d=replaceText(d,window.location.port,f);}return d;}function checkAccountExpired(a){if(a=="true"){document.location.href="login.do?msg=error.user.betaCodeExpired";
}else{return true;}}function getNoAccountFoundMessage(){var a=custom_labels.LoginPanel_noAccountFoundText;a=replaceText(a,"$URL$",getReviewpadGeneralUrlWithProtocol());a=replaceText(a,"$DISPLAY_URL$",getReviewpadGeneralUrlWithoutProtocol());return a;}function handleSignupXHRCalls(a,d,c){var b=new Ext.data.Connection();
b.timeout=lookup_codes.Application_timeoutDuration;b.request({url:a,params:d,callback:function(m,l,g){if(l){switch(d.action){case"SIGN-UP-ACCOUNT-ACTION":Ext.getCmp("verification-image").refreshImage();if(parseXMLResult(g.responseXML)){launchWizard(g.responseXML);}else{Ext.getCmp("account-verification-image-text").reset();
Ext.getCmp("signup-button").enable();}break;case"SUBMIT-ACCOUNT-INFO-ACTION":if(parseXMLResult(g.responseXML)){Ext.getCmp("billing-first-name").setValue(Ext.getCmp("account-first-name").getValue());Ext.getCmp("billing-last-name").setValue(Ext.getCmp("account-last-name").getValue());Ext.getCmp("signup-wizard").getLayout().setActiveItem(1);
Ext.getCmp("card-next").hide();Ext.getCmp("card-prev").show();Ext.getCmp("card-finish").enable();Ext.getCmp("billing-creditcard-number").focus();Ext.getCmp("signup-wizard").monthStore.load();Ext.getCmp("signup-wizard").yearStore.load();}break;case"COMPLETE-SIGNUP-ACTION":Ext.getCmp("verification-image").refreshImage();
var j=Ext.DomQuery.selectNode("Id",g.responseXML);if(j){Ext.getCmp("signup-start").getForm().reset();document.location.href=lookup_codes.SIGNUP_CONFIRMATION_URL;}else{parseXMLResult(g.responseXML);}break;case"FORGOT-PASSWORD-ACTION":if(parseXMLResult(g.responseXML)){var k=Ext.DomQuery.selectValue("MessageKey",g.responseXML);
document.location.href="login.do?msg="+k;}else{Ext.getCmp("forgot-password-verification-image").refreshImage();Ext.getCmp("forgot-password-verification-image-text").setValue("");}break;case"GET-ACCOUNTS-FROM-EMAIL-ACTION":if(parseXMLResult(g.responseXML)){var h="."+serverDomainUrl;var e=new Ext.data.Store({data:g.responseXML,autoLoad:true,reader:new Ext.data.XmlReader({record:"Account",id:"id"},[{name:"Id",mapping:">Id"},{name:"AccountUrl",type:"string"},{name:"AccountExpired"},{name:"EnableSSL"}]),listeners:{load:function(o,n,p){var q=o.getCount();
if(q==0){document.location.href="login.do?msg=error.user.loginFailed.badCredentials";}else{if(q==1){if(checkAccountExpired(o.getAt(0).get("AccountExpired"))){submitLoginFormInfo(o.getAt(0).get("Id"),o.getAt(0).get("AccountUrl"),o.getAt(0).get("EnableSSL")==lookup_codes.DISABLE_SSL?false:true);}}else{if(q>1){showAccountPopupWindow(o,h,false);
}}}},loadexception:function(q,p,n,o){Ext.Msg.alert("Error",custom_labels.ht.get("error.app.getAccounts"));}}});}break;case"ENCRYPTED-PASS":if(parseXMLResult(g.responseXML)){var i=g.responseXML.getElementsByTagName("Root")[0].firstChild.nodeValue;createCookie("remPassword",i,lookup_codes.Application_cookieExpireDays);
submitLoginForm();}break;case"DECRYPTED-PASS":if(parseXMLResult(g.responseXML)){var f=g.responseXML.getElementsByTagName("Root")[0].firstChild.nodeValue;Ext.getCmp("j_password").setValue(f);break;}}}}});}