﻿function affirm(){return true}function cancel(){return false}function alertMe(){alert("me")}var oldJSAction="";function resetDotsAtEndOfQueryString(){if(theForm.action!=null&&theForm.action!=""){oldJSAction=trim(theForm.action);while(theForm.action.charAt(theForm.action.length-1)=="."){theForm.action=theForm.action.substring(0,theForm.action.length-1)}if(theForm.action.length>3){while(theForm.action.substring(theForm.action.length-3,theForm.action.length)=="%2E"){theForm.action=theForm.action.substring(0,theForm.action.length-3)}}}}function restoreJSAction(){theForm.action=oldJSAction}function resetDefaultFired(){__defaultFired=false}var confWind=null;function aspnet_confirmWindow(e,Z,l,d,m,X,g,V,j,c,k,f,b,Y){l=substitute(trim(l)," ","%20");d=substitute(trim(d)," ","%20");m=substitute(trim(m)," ","%20");V=substitute(trim(V)," ","%20");j=substitute(trim(j)," ","%20");c=substitute(trim(c)," ","%20");k=substitute(trim(k)," ","%20");f=substitute(trim(f)," ","%20");Y=substitute(trim(Y)," ","%20");b=substitute(trim(b)," ","%20");var W=new String(document.URL);if(W.toLowerCase().indexOf("echalkdevel_local")!=-1||W.toLowerCase().indexOf("echalkdevel%5flocal")!=-1){var h="/echalkdevel_local"}else{var h=""}if(X==0){X=false}var a=(X?X:300);if(g==0){g=false}var i=(g?g:150);if(!V||V==""){V="Yes"}if(!j||j==""){j="No"}if(!c||c==""){c="Cancel"}if(bSafari){Z=substitute(Z,"&nbsp;"," ");e=substitute(e,"&nbsp;"," ")}e=escape(e);Z=escape(Z);if(k==""||typeof (k)=="undefined"){var n=h+"/pop_confirmWindow.aspx"}else{var n=k}n=n+"?sCancelFuncText="+c+"&sYesFunc="+l+"&sNoFunc="+d+"&sMsg="+Z+"&sTitle="+e+"&bNetscape="+bNetscape+"&bCancelButton="+m+"&sNoFuncText="+j+"&sGraphicButtonSrc="+Y+"&sYesFuncText="+V+"&popParams="+trim(f)+"&popParamsSeperator="+b;try{confWind=popCenter(n,"eChalkWindow",a,i,",hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no")}catch(U){if(confWind!=null){alert(U.description+U.number)}}}function closeConfWind(){if(confWind&&!confWind.closed){confWind.close();confWind=null}}function prepareUploadImage(J){var F=true;var H="";var G=0;J=trim(J);if(J.substr(0,7).toLowerCase()=="http://"){H=J.substring(7,J.length)}else{if(J.substr(0,8).toLowerCase()=="https://"){H=J.substring(8,J.length)}else{H=J}}G=H.lastIndexOf("/");if(G==-1){F=false}else{G=H.lastIndexOf(".");if(G!=-1){H=trim(H.substring(G+1,H.length));if(H.indexOf("#")!=-1){F=false}}}if(F){var I=substitute(J,"%25","%");I=substitute(I,"%20"," ");I=substitute(I,"%23","#");I=substitute(I,"%26","&");I=substitute(I,"%2c",",");I=substitute(I,"%21","!");I=substitute(I,"%24","$");I=substitute(I,"%27","'");I=substitute(I,"%28","(");I=substitute(I,"%29",")");I=substitute(I,"%2b","+");I=substitute(I,"%2d","-");I=substitute(I,"%40","@");I=substitute(I,"%5b","[");I=substitute(I,"%5d","]");I=substitute(I,"%5e","^");I=substitute(I,"%7b","{");I=substitute(I,"%7d","}");I=substitute(I,"%7e","~");I=substitute(I,"%","%25");return substitute(substitute(I," ","%20"),"#","%23")}else{return substitute(J," ","%20")}}function popCenter(T,S,R,V,Q,P){if(R==null){R=800}if(V==null){V=600}if(S==null){var X=Math.round(Math.random()*1000);var S=new String("Win"+X)}var W="height="+V+",innerHeight="+V+",width="+R+",innerWidth="+R;if(Q!=null){W+=","+Q+",resizable=yes"}else{W+=",hotkeys=no,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no"}if(window.screen){var M=0;if(W.indexOf("location=yes")>0){M+=30}if(W.indexOf("lmenubar=yes")>0){M+=30}if(W.indexOf("status=yes")>0){M+=30}if(W.indexOf("toolbar=yes")>0){M+=30}var U=(screen.availWidth-R)/2;var N=((screen.availHeight-V)/2)-M;var U=((U>0)?U:0);var N=((N>0)?N:0);W+=",left="+U+",screenX="+U+",top="+N+",screenY="+N}else{W+=",left=0,screenX=0,top=0,screenY=0"}var O=window.open(T,S,W);if(P){return O}}function popWin(B){return popCenter(B,null,null,null,"location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes")}function popExtWin(B){return popCenter(B,null,null,null,"location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes")}function __doPostInCurrentWindow(){__doPostToThisWindow("_self")}function __doPostInNewWindow(B){if(trim(B)==""){B="_blank"}__doPostToThisWindow(B)}function __doPostToThisWindow(B){theForm.target=B;return true}function downloadResources(L,J,O,M,N,R){if(trim(L).length>1950){alert("You may only download up to 50 files at a time.")}else{var P=new RegExp("(http|ftp|https)://([^/]+)");var Q=P.exec(document.location.href);var K=Q[0]+"/pop_fileDownload.asp?myFiles="+trim(R)+"&SFILE="+L;if(J!=null&&J!=undefined&&trim(J)!=""){K+="&folder="+J}if(O!=null&&O!=undefined&&trim(O)!=""){K+="&archive="+O}if(M!=null&&M!=undefined&&trim(M)!=""){K=trim(N)+K+"&mailfile="+M+"&bogusmail=1"}popCenter(K,"Download"+Math.round(Math.random()*1000),500,370,"status=1,scrollbars=1")}}alertClicker="";alertClickerPromptName="";alertClickerStayButtonText="";alertClickerLeaveButtonText="";function alertClick(B){if(alertClickerPromptName!=""){aspnet_confirmWindow("Page Change",alertClickerPromptName,"window.opener.cancel()",'window.opener.location.href="'+escape(B)+'";',"",350,150,alertClickerStayButtonText,alertClickerLeaveButtonText,"","","","","")}else{location.href=B}}function doAlertClick(F,E,D){alertClicker="1";alertClickerPromptName=trim(F);alertClickerStayButtonText=trim(E);alertClickerLeaveButtonText=trim(D)};
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();