var CONFIRM_APP_CANCEL="By pressing OK, you will cancel your Online Lease application, and the apartment you selected will be returned to our available inventory. If you choose to use Online Lease in the future, you will need to select a new apartment. Press Cancel to return to your application.";var CONFIRM_APP_LOGOUT="If you log out now, your lease information will be saved, but the apartment you selected may not be available when you return. Select OK to log out. Select Cancel to return to your online lease application.";var CONFIRM_SEC_APP_LOGOUT="You have not completed your lease application.  You will need to log back in to pay your application charges and sign your lease.  Select OK to log out.  Select Cancel to return to your online lease application.";var TEST_MESSAGE="This is a test and only a test.  Please do not change your channel.";var PARAMETER_MISSING="The parameter {0} is missing and is required.";function addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){if(b){b()}a()}}}function addUnloadEvent(b){var a=window.onunload;if(typeof window.onunload!="function"){window.onunload=b}else{window.onunload=function(){if(a){a()}b()}}}function setFocus(b){try{var d=ConvertDotNetId(b);var c=document.getElementById(d);if(c){c.focus()}}catch(a){}return}function ConvertDotNetId(b){var a=b.indexOf(":");while(a!=-1){b=b.replace(":","_");a=b.indexOf(":")}return b}function openDialog(c,f,r,b,p){var d=false;var q="archstoneDlg";var a="";if(openDialog.arguments.length<3){f=550;r=400}if(openDialog.arguments.length>3){d=b}if(openDialog.arguments.length>4){q=p}if(f==0){f=550}if(r==0){r=400}var h="";try{var o=getScreenLeftX();var n=getScreenTopY();var l=document.getElementById("vBody");if(l){o+=getElementX(l)+22;n+=getElementY(l)+2}else{o+=20;n+=20}h="left="+o+",top="+n;var k=c.indexOf("?");if(k>-1){a=c.substring(0,k+1);a+=c.substring(k+1,c.length).replace(/[\/]/g,"%2f")}else{a=c}}catch(m){}var g=new String();g+="channelmode=no,";g+="directories=no,";g+="fullscreen=no,";g+="location=no,";g+="menubar=no,";g+="resizable="+(d?"yes":"no")+",";g+="scrollbars="+(d?"yes":"no")+",";g+="status=no,";g+="titlebar=yes,";g+="toolbar=no,";g+="width="+f+"px,";g+="height="+r+"px";g+=","+h;var j=window.open(a,q,g);if(j==null){alert("You must enable popup windows to continue.")}else{j.focus()}}function openDialogUncentered(c,f,q,b,o){var d=false;var p="archstoneDlg";var a="";if(openDialogUncentered.arguments.length<3){f=550;q=400}if(openDialogUncentered.arguments.length>3){d=b}if(openDialogUncentered.arguments.length>4){p=o}if(f==0){f=550}if(q==0){q=400}var h="";try{var n=getScreenLeftX();var m=getScreenTopY();h="left="+n+",top="+m;var k=c.indexOf("?");if(k>-1){a=c.substring(0,k+1);a+=c.substring(k+1,c.length).replace("/","%2f")}else{a=c}}catch(l){}var g=new String();g+="channelmode=no,";g+="directories=no,";g+="fullscreen=no,";g+="location=no,";g+="menubar=no,";g+="resizable="+(d?"yes":"no")+",";g+="scrollbars="+(d?"yes":"no")+",";g+="status=no,";g+="titlebar=yes,";g+="toolbar=no,";g+="width="+f+"px,";g+="height="+q+"px";g+=","+h;var j=window.open(a,p,g);if(j==null){alert("You must enable popup windows to continue.")}else{j.focus()}}function getElementX(b){var a=0;try{for(var c=b;c;c=c.offsetParent){a+=c.offsetLeft}for(c=b.parentNode;c&&c!=document.body;c=c.parentNode){if(c.scrollLeft){a-=c.scrollLeft}}}catch(c){}return a}function getElementY(a){var c=0;try{for(var b=a;b;b=b.offsetParent){c+=b.offsetTop}for(b=a.parentNode;b&&b!=document.body;b=b.parentNode){if(b.scrollTop){c-=b.scrollTop}}}catch(b){}return c}function getScreenLeftX(){var a;try{a=parseInt(window.screenX);if(isNaN(a)){a=parseInt(window.screenLeft);if(isNaN(a)){a=0}}}catch(b){a=0}return a}function getScreenTopY(){var b;try{b=parseInt(window.screenY);if(isNaN(b)){b=parseInt(window.screenTop);if(isNaN(b)){b=0}}}catch(a){b=0}return b};