isAlien=function(b){return isObject(b)&&(typeof b.constructor!="function")};isArray=function(b){return isObject(b)&&(b.constructor==Array)};isBoolean=function(b){return(typeof b=="boolean")};isEmpty=function(c){var b,a;if(isObject(c)){for(b in c){a=c[b];if(isUndefined(a)&&isFunction(a)){return false}}}return true};isNull=function(b){return(typeof b=="object")&&!b};isNumber=function(b){return(typeof b=="number")&&isFinite(b)};isObject=function(b){return(b&&(typeof b=="object"))||isFunction(b)};isString=function(b){return(typeof b=="string")};isUndefined=function(b){return(typeof b=="undefined")};isFunction=function(b){return(typeof b=="function")};toggle_Display=function(a,c,d){var e=document.getElementById(a);var b=(c?c:"block");if(e){e.style.display=(c?(e.style.display=b):((e.style.display==b)?"none":b));if(d){return e.style.display}}};toggle_Visibility=function(a,c){var d=document.getElementById(a);var b=(c?c:"visible");if(d){d.style.visibility=((d.style.visibility==b)?"hidden":b)}};function JQModalConfirm(a,b){obj_confirm=$J("<div>"+a+"</div>");$J("body").append(obj_confirm);obj_confirm.dialog({resizable:false,height:200,modal:true,zIndex:5003,buttons:{Yes:function(){b();$J(this).dialog("close")},No:function(){$J(this).dialog("close")}}})}function CheckTextInput(c){var b=new String(c.value);var a=/\"/g;b=String(b.replace(a,""));c.value=b}function ShowThumb(e,a,c,b){if(b>450){b=450}if(c>815){c=815}remote=window.open(RootPath+"page/thumb.php?sectiondetailid="+nDetailID+"&timestamp="+timeStamp+"&thumbname="+e+"&picalt="+a+"&width="+c,"_THUMBNAIL_","resizable=yes,scrollBars=yes,location=no,directories=no,toolbar=no,status=1,menuBar=no,width="+c+",height="+b+",top=50,left=50");if(remote){var d=false}else{var d=true;alert("SchoolCenter has detected that you are using pop-up blocking software.\nPlease enable pop-ups for this site.")}if(navigator.userAgent.indexOf("MSIE 3")==-1){remote.focus()}}function ShowOnlineUsers(){remote=window.open(RootPath+"admin/users.list.php?timestamp="+timeStamp,"CurrentUsers","resizable=yes,scrollBars=yes,location=no,directories=no,toolbar=no,status=no,menuBar=no,width=300,height=275,top=150,left=150");if(remote){var a=false}else{var a=true;alert("SchoolCenter has detected that you are using pop-up blocking software.\nPlease enable pop-ups for this site.")}if(navigator.userAgent.indexOf("MSIE 3")==-1){remote.focus()}}function ShowDeleteWarning(cName,cMessage,cLink,cJS){var strError;if(cMessage){strError=cMessage+"\n\n(This Cannot Be Undone)"}else{strError="Are you sure you wish to permanently delete this item?\n\n(This Cannot Be Undone)"}if(confirm(strError)){if(cJS){eval(cJS)}else{window.location.href=cLink+"&dodelete=deletebutton&timestamp="+timeStamp}}}function ShowDeleteWarning_Dropdown(){if(confirm("Are you sure you wish to permanently delete this item?\n\n(This Cannot Be Undone)")){window.location.href="?editdelete="+nDetailID}}function AddPicLink(PicID,theURL,formName){var theURL=(theURL)?theURL:"http://";strAddPicLink=escape(prompt("Enter a web address to link this picture to:",theURL));if(strAddPicLink!=theURL&&strAddPicLink!="null"){if(formName){strFormName=eval("document."+formName);strFormName.record_piclink.value=strAddPicLink;strFormName.dosave.value="dosave";strFormName.submit()}else{strAddPicLink=(strAddPicLink)?strAddPicLink:"NULL";location.href=ThisURL+"?sectiondetailid="+nDetailID+"&timestamp="+timeStamp+"&go="+jsGo+"&pagecat="+jsCat+"&picid="+PicID+"&addPicLink="+strAddPicLink}}}function AddPicAlt(PicID,theAlt,formName){theAlt=(theAlt)?theAlt:"";strAddPicAlt=escape(prompt("Enter text to be associated with this picture to:",theAlt));if(strAddPicAlt!=theAlt&&strAddPicAlt!="null"){if(formName){strFormName=eval("document."+formName);strFormName.record_picalt.value=strAddPicAlt;strFormName.dosave.value="dosave";strFormName.submit()}else{strAddPicAlt=(strAddPicAlt)?strAddPicAlt:"NULL";var url=scLocalImage+"/includes/functions.prototype.php";var params="?action=addImageAltTag&sectiondetailid="+nDetailID+"&timestamp="+timeStamp+"&go="+jsGo+"&pagecat="+jsCat+"&picid="+PicID+"&addPicAlt="+strAddPicAlt;var ajax=new Ajax.Request(url,{method:"get",parameters:params,onSuccess:function(transport){location.href=ThisURL+"?sectiondetailid="+nDetailID+"&timestamp="+timeStamp+"&go="+jsGo+"&pagecat="+jsCat+"&picid="+PicID},onFailure:function(){alert("Failure: Unable to add image alt tag")}})}}}function ShowBuyWin(a){remote=window.open(RootPath+"page/buy.php?comid="+a+"&timestamp="+timeStamp,"BUY_COM_","resizable=yes,scrollBars=yes,location=no,directories=no,toolbar=no,status=1,menuBar=no,width=300,height=450,top=100,left=100");if(remote){var b=false}else{var b=true;alert("SchoolCenter has detected that you are using pop-up blocking software.\nPlease enable pop-ups for this site.")}if(navigator.userAgent.indexOf("MSIE 3")==-1){remote.focus()}}function PageSettings(d,c,b,a){showStatus=0;cPass=(c)?c:settingsBackURL;remote=window.open(RootPath+"page/settings.php?sectiondetailid="+d+"&windowWidth="+b+"&frompage="+cPass,"PageSettings","resizable=yes,scrollBars=yes,location=no,directories=no,toolbar=no,status="+showStatus+",menuBar=no,width="+((b&&b!=0)?b:400)+",height="+((a&&a!=0)?a:350)+",top=50,left=50");if(remote){var e=false}else{var e=true;alert("SchoolCenter has detected that you are using pop-up blocking software.\nPlease enable pop-ups for this site.")}if(navigator.userAgent.indexOf("MSIE 3")==-1){remote.focus()}}function changeImages(){if(document.images){for(var a=0;a<changeImages.arguments.length;a+=2){document[changeImages.arguments[a]].src=changeImages.arguments[a+1]}}}function submitAdminForm(thisVal){with(document.adminForm){switch(thisVal){case"viewmode":viewmode.value="viewmode";break;case"editmode":editmode.value="editmode";break;case"killadmin":killadmin.value="killadmin";break;case"siteoptions":siteoptions.value="siteoptions";break}submit()}}function rollAdmin(imgID,imgRepl){if(document.images){document.images[imgID].src=eval(imgRepl+".src")}}function showDetails(e,g,d,b){var c="";var a=d?("sectiondetailid="+d):"";var f=g?("itemID="+g):"";if(a||f){append=(e.indexOf("?")>=0)?"&":"?";c=(a)?(append+a+((f)?("&"+f):"")):(append+f)}if(b){var h=true}else{var h=false}ShowEditWin(e+c,"DetailView",700,500,null,null,null,h)}JS_showDetails=function(b,c,a){showDetails(b,c,a,1)};function loadWizard(a){wiz=window.open(RootPath+"page/wizard.php?sectiondetailid="+a+"&frameType=index&indexType=primary","Wizard","resizable=yes,scrollBars=yes,location=no,directories=no,toolbar=no,status=1,menuBar=no,width=550,height=400,top=50,left=50");if(wiz){var b=false}else{var b=true;alert("SchoolCenter has detected that you are using pop-up blocking software.\nPlease enable pop-ups for this site.")}wiz.focus()}JS_loadWizard=function(a){loadWizard(a)};function ShowChatWin(a,b){chat=window.open(RootPath+"page/chat.php?fromid="+a+"&timestamp="+timeStamp,"_CHATWIN_"+a+"_"+b+"_","resizable=yes,scrollBars=yes,location=no,directories=no,toolbar=no,status=0,menuBar=no,width=450,height=350,top=50,left=50");if(chat){var c=false}else{var c=true;alert("SchoolCenter has detected that you are using pop-up blocking software.\nPlease enable pop-ups for this site.")}if(navigator.userAgent.indexOf("MSIE 3")==-1){chat.focus()}}function DoLogOut(){var a="";if(confirm("You are currently logged out.\n\n\nClick 'OK' to log back in as another user.\n\nClick 'Cancel' to return to the website.")){a="&relog=1"}a=ThisURL+"?killadmin=1"+a;window.location=a}function feePayLogout(){window.location="../../../education/district/district.php?sectionid=10298&killadmin=1"}function ChangeDrillDown(){url=document.drillDown.urlSelect.options[document.drillDown.urlSelect.options.selectedIndex].value;location.href=url}function getPageXY(b){var a={x:0,y:0};while(b){a.x+=b.offsetLeft;a.y+=b.offsetTop;b=b.offsetParent}return a}function setPageXY(d,a,c){var b={x:0,y:0};if(d.offsetParent){b=getPageXY(d.offsetParent)}d.style.left=(a-b.x)+"px";d.style.top=(c-b.y)+"px"}function attach_addLink(a){new_fs=document.createElement("fieldset");new_legend=document.createElement("legend");new_select=document.createElement("select");new_option1=document.createElement("option");new_option2=document.createElement("option");new_option3=document.createElement("option");new_option4=document.createElement("option");new_option5=document.createElement("option");new_option6=document.createElement("option");new_input1=document.createElement("input");new_input2=document.createElement("input");new_label=document.createElement("label");new_fs.style.display="none";new_fs.className="standard-01";new_legend.innerHTML="URL&nbsp;&nbsp;";new_close=document.createElement("a");new_close.setAttribute("href","javascript://");new_close.setAttribute("onclick","JS_attach_delLink(this)");new_close.style.color="#000";new_close.style.textDecoration="none";new_close.innerHTML="[X]";new_legend.appendChild(new_close);new_input1.className="textbox";new_input1.setAttribute("type","text");new_input1.setAttribute("size","30");new_input2.setAttribute("type","checkbox");new_input2.setAttribute("value","1");new_label.innerHTML="Open link in a new window.";new_option1.setAttribute("value","http://");new_option1.innerHTML="http://";new_option2.setAttribute("value","https://");new_option2.innerHTML="https://";new_option3.setAttribute("value","mailto:");new_option3.innerHTML="mailto:";new_option4.setAttribute("value","ftp://");new_option4.innerHTML="ftp://";new_option5.setAttribute("value","/");new_option5.innerHTML="/";new_option6.setAttribute("value","\\");new_option6.innerHTML="\\";new_select.appendChild(new_option1);new_select.appendChild(new_option2);new_select.appendChild(new_option3);new_select.appendChild(new_option4);new_select.appendChild(new_option5);new_select.appendChild(new_option6);new_fs.appendChild(new_legend);new_fs.appendChild(new_select);new_fs.appendChild(new_input1);new_fs.innerHTML+="<br />";new_fs.appendChild(new_input2);new_fs.appendChild(new_label);new_fs.innerHTML+="<br />";link=document.getElementById("attach_link");link.parentNode.insertBefore(new_fs,a.parentNode);new_fs.style.display="block"}JS_attach_addLink=function(a){attach_addLink(a)};function attach_addFile(a){Element.setStyle($("edit-win-tab-attachments-container"),{overflow:"none",height:"auto"});new_fs=document.createElement("fieldset");new_legend=document.createElement("legend");new_fs.style.display="none";new_legend.innerHTML="File&nbsp;&nbsp;";new_close=document.createElement("a");new_close.setAttribute("href","javascript://");new_close.setAttribute("onclick","JS_attach_delLink(this)");new_close.innerHTML="[X]";new_close.style.color="#000";new_close.style.textDecoration="none";new_legend.appendChild(new_close);new_a=document.createElement("a");new_a.setAttribute("href","javascript: AttachFile();");new_a.innerHTML="<b>+</b> Add a File";new_fs.appendChild(new_legend);new_fs.appendChild(new_a);new_fs.innerHTML+="<br />";link=document.getElementById("attach_file");link.parentNode.insertBefore(new_fs,a.parentNode);new_fs.style.display="block";EditWin.resize()}JS_attach_addFile=function(a){attach_addFile(a)};function attach_delLink(a){if(confirm("Are you sure you wish to remove this item?\nThis can not be undone!")){fs=a.parentNode.parentNode;par=fs.parentNode;next_sib=fs.nextSibling;if(next_sib.nodeName=="BR"){par.removeChild(next_sib)}par.removeChild(fs)}}JS_attach_delLink=function(a){attach_delLink(a)};function ShowEditWin(h,c,f,d,g,b,e,a){c=(isUndefined(c)||isNull(c))?("EDIT_WINDOW_"+timeStamp):c;if(a){obj_opened_window=window.open(h,c,"width="+f+", height="+d+", scrollbars=yes, resizable=yes")}else{obj_opened_window=EditWin.create(h,c,{width:f,height:d,top:g,left:b})}if(!isObject(obj_opened_window)){alert("SchoolCenter has detected that you are using pop-up blocking software.\nPlease enable pop-ups for this site.")}}function ShowEditWin_DEPRECATED(e,f,l,j,k,g,m,c,h,a,b){f=(f)?f:"NEW_WINDOW_"+timeStamp;j=(j)?j:300;k=(k)?k:300;l=(l==0)?"no":"yes";g=(g)?g:20;m=(m)?m:20;c=(c)?c:0;nToolBar=(h)?"yes":"no";a=(a==0)?"no":"yes";sOptions="resizable="+a+",scrollbars="+l+",location=no,directories=no,toolbar="+h+",status="+c+",menuBar="+h+",width="+j+",height="+k+",top="+g+",left="+m;sOptions=sOptions+(b?","+b:"");obj=window.open(e,f,sOptions);if(obj){var d=false}else{var d=true;alert("SchoolCenter has detected that you are using pop-up blocking software.\nPlease enable pop-ups for this site.")}}var obj_mecho=new Object();var obj_mechowin;function mecho(c,a,b){if(obj_mecho[a]){if(b){alert(c)}else{if(!obj_mechowin){obj_mechowin=window.open("","mechowin","width=400,height=500,scrollbars=1");obj_mechowin.document.body.innerHTML=""}obj_mechowin.document.body.innerHTML=c+"<br/>"+obj_mechowin.document.body.innerHTML}}}function validateEmailAddress(g){for(var d=0;d<g.length;d++){g=g.replace(" ","");g=g.replace("\n","")}var b=g.indexOf("@");var e=g.lastIndexOf(".");var a=g.lastIndexOf("@");if(a!=b){return false}if(e!=-1&&b!=-1&&e>b){var c=g.split(".");var f=g.split("@");if(c[(c.length-1)].length<=4&&f[0].length>0&&f[1].length>4){return true}else{return false}}else{return false}}var modifyURL=function(d,c,a){if((c==30||c==13)&&a==1){var b=getFormValue(document.ContactForm.elements);if(a){b+='<input type="hidden" name="page_iteration" value="'+a+'" />'}document.getElementById("printpage_form_value").innerHTML+=b}str_location=location.href.toString();arr_location=str_location.split("?");str_base_url=arr_location[0];arr_location=arr_location[1].split("&");str_query_string="";for(i=0;i<arr_location.length;i++){arr_tmp=arr_location[i].split("=");if(!isUndefined(d[arr_tmp[0]])){str_query_string+=arr_tmp[0]+"="+d[arr_tmp[0]]+"&";d[arr_tmp[0]]=null}else{str_query_string+=arr_location[i]+"&"}}d=$H(d);d.each(function(e){if(e[1]!=null){str_query_string=e[0]+"="+e[1]+"&"+str_query_string}});str_query_string=str_query_string.substring(0,(str_query_string.length-1));str_location=str_base_url+"?"+str_query_string;if(navigator.appVersion.indexOf("MSIE")>-1){startplace=navigator.appVersion.indexOf("MSIE");int_version=navigator.appVersion.substring(startplace+5,startplace+8);if(int_version<=6){window.event.returnValue=false;window.location=str_location}else{location.href=str_location}}else{location.href=str_location}if(c==30||c==13){document.printpagecontactform.submit()}};var getFormValue=function(b){if(!b){return}var c="";for(var a=0;a<b.length;a++){switch(b[a].type){case"text":c+='<input type="hidden" name="'+b[a].name+'" value="'+b[a].value+'" />';break;case"textarea":c+='<input type="hidden" name="'+b[a].name+'" value="'+b[a].value+'" />';break;case"checkbox":if(b[a].checked==true){c+='<input type="hidden" name="'+b[a].name+'" value="'+b[a].value+'" />'}break;case"radio":if(b[a].checked==true){c+='<input type="hidden" name="'+b[a].name+'" value="'+b[a].value+'" />'}break;case"select-one":c+='<input type="hidden" name="'+b[a].name+'" value="'+b[a].value+'" />';break;case"select-multiple":if(b[a].checked==true){c+='<input type="hidden" name="'+b[a].name+'" value="'+b[a].value+'" />'}break}}return c};