var MyUtils={isNumber:function(a){a=$(a);return/^\d+$/.test(a.value)},check:function(a){a=$(a);a.checked=true;return a}};Element.addMethods(MyUtils);Event.observe(document,"dom:loaded",function(){$$("input.is, img.is").each(function(a){a.observe("mouseover",swapSrc);a.observe("mouseout",swapSrc)});$$("a.nw").each(function(a){a.onclick=function(){return(window.open(this.href,"childWindow"))?false:false};a.onkeypress=function(){return(window.open(this.href,"childWindow"))?false:false}})});document.observe("lightview:loaded",function(){if($("ScreenMessages")){$("ScreenMessages").insert({bottom:'<a href="#" id="cvs" onclick="Lightview.hide();return false;"><img src="/img/css/calendar.gif" alt=""/></a>'});Lightview.show({rel:"inline",href:"#ScreenMessages",options:{autosize:true,keyboard:true,overlayClose:true,menubar:false}})}});function confirmDelete(){return confirm("Are you sure you wish to delete this document?")}var PageReload=false;var PageRedirect=false;var URL;Event.observe(document,"lightview:hidden",function(a){if(PageReload){window.location.href=window.location.href}if(PageRedirect){window.location.href=URL}});function showValidationErrors(a,b){if(!a){Lightview.show({rel:"inline",href:"#ValidationErrors",options:{autosize:true,keyboard:true,overlayClose:true,menubar:false}})}}function showModal(e,c,a){var e=$(e);var b=500;var d=350;if(e.href.include("group_edit.aspx")){b=550;d=500}Lightview.show({href:e.href,rel:"iframe",title:c,caption:a,options:{autosize:true,width:b,height:d}});return false}function oUrl(){var b,d,a,c;this.baseURL=null;b=document.URL;d=b.indexOf("://",4);serverIndex=b.indexOf("/",d+3);c=b.indexOf("#",1)+1;this.baseURL=b.substring(c,serverIndex)+"/"}var current=null;function swapSrc(c){var e=c.element();var b=e.src.substring(e.src.lastIndexOf("."),e.src.length);var d=e.src.substring(0,e.src.lastIndexOf("/")+1);var a=e.src.substring(e.src.lastIndexOf("/")+1,e.src.lastIndexOf("."));if(e!=current){e.src=(((i=a.indexOf(".ovr"))>=0)||((i=a.indexOf(".on"))>=0))?d+a.substring(0,a.lastIndexOf("."))+b:d+a+".ovr"+b}};