var dragging=!1,Drag={obj:null,init:function(a,b,d,c,f,h,k,l,m,n,o,p){a.onmousedown=Drag.start;a.customoffsetY=null!=d?a.offsetHeight:0;a.customoffsetX=null!=c?a.offsetWidth:0;a.hmode=m?!1:!0;a.vmode=n?!1:!0;a.root=b&&null!=b?b:a;a.hmode&&isNaN(parseInt(a.root.style.left))&&(a.root.style.left="0px");a.vmode&&isNaN(parseInt(a.root.style.top))&&(a.root.style.top="0px");!a.hmode&&isNaN(parseInt(a.root.style.right))&&(a.root.style.right="0px");!a.vmode&&isNaN(parseInt(a.root.style.bottom))&&(a.root.style.bottom= "0px");a.minX="undefined"!=typeof f?f:null;a.minY="undefined"!=typeof k?k:null;a.maxX="undefined"!=typeof h?h:null;a.maxY="undefined"!=typeof l?l:null;a.xMapper=o?o:null;a.yMapper=p?p:null;a.root.onDragStart=new Function;a.root.onDragEnd=new Function;a.root.onDrag=new Function},start:function(a){var b=Drag.obj=this;dragging=!1;b.root.style.filter="alpha(opacity=80)";b.root.style.opacity="0.8";var a=Drag.fixE(a),d=parseInt(b.vmode?b.root.style.top:b.root.style.bottom),c=parseInt(b.hmode?b.root.style.left: b.root.style.right);b.root.onDragStart(c,d);b.lastMouseX=a.clientX;b.lastMouseY=a.clientY;if(b.hmode){if(null!=b.minX&&(b.minMouseX=a.clientX-c+b.minX),null!=b.maxX)b.maxMouseX=b.minMouseX+b.maxX-b.minX}else if(null!=b.minX&&(b.maxMouseX=-b.minX+a.clientX+c),null!=b.maxX)b.minMouseX=-b.maxX+a.clientX+c;if(b.vmode){if(null!=b.minY&&(b.minMouseY=a.clientY-d+b.minY),null!=b.maxY)b.maxMouseY=b.minMouseY+b.maxY-b.minY}else if(null!=b.minY&&(b.maxMouseY=-b.minY+a.clientY+d),null!=b.maxY)b.minMouseY=-b.maxY+ a.clientY+d;document.onmousemove=Drag.drag;document.onmouseup=Drag.end;return!1},drag:function(a){var a=Drag.fixE(a),b=Drag.obj,d=a.clientY+b.customoffsetY,a=a.clientX+b.customoffsetX,c=parseInt(b.vmode?b.root.style.top:b.root.style.bottom),f=parseInt(b.hmode?b.root.style.left:b.root.style.right),h,k;if(0
':!olNs4&&b?' style="'+setCellPadStr(o3_cellpad)+ '">':">")+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+a+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"
";set_background("");return a} function ol_content_caption(a,b,d){var c,f=/,/.test(o3_cellpad),h,k;h="";k="onmouseover";1==o3_closeclick&&(k=(o3_closetitle?"title='"+o3_closetitle+"'":"")+" onclick");""!=o3_capicon&&(c=' hspace = "5" align = "middle" alt = ""',"undefined"!=typeof o3_dragimg&&o3_dragimg&&(c=' hspace="5" name="'+o3_dragimg+'" id="'+o3_dragimg+'" align="middle" alt="Drag Enabled" title="Drag Enabled"'),o3_capicon='");""!=d&&(h="'+(o3_closefontclass?"":wrapStr(0,o3_closesize,"close"))+d+(o3_closefontclass?"":wrapStr(1,o3_closesize,"close"))+"");a='
':">")+(o3_captionfontclass?"":""+wrapStr(0,o3_captionsize,"caption"))+o3_capicon+b+(o3_captionfontclass?"":wrapStr(1,o3_captionsize)+"")+""+h+'
':!olNs4&&f?' style="'+ setCellPadStr(o3_cellpad)+'">':">")+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+a+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"
";set_background("");return a} function ol_content_background(a,b,d){txt=d?a:'
'+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+a+(o3_textfontclass?"":wrapStr(1,o3_textsize))+'
';set_background(b);return txt}function set_background(a){""==a?olNs4?over.background.src=null:over.style&&(over.style.backgroundImage="none"):olNs4?over.background.src=a:over.style&&(over.style.width=o3_width+"px",over.style.backgroundImage="url("+a+")")}var olShowId=-1; function disp(a){runHook("disp",FBEFORE);0==o3_allowmove&&(runHook("placeLayer",FREPLACE),olNs6&&0>olShowId?olShowId=setTimeout("runHook('showObject', FREPLACE, over)",1):runHook("showObject",FREPLACE,over),o3_allowmove=o3_sticky||0==o3_followmouse?0:1);runHook("disp",FAFTER);""!=a&&(self.status=a)} function createPopup(a){runHook("createPopup",FBEFORE);if(o3_wrap){var b;b=olNs4?over:over.style;b.top=b.left=(olIe4&&!olOp?0:-1E4)+(!olNs4?NaN:0);layerWrite(a);if((olNs4?over.clip.width:over.offsetWidth)>(b=windowWidth()))a=a.replace(/\ /g," "),o3_width=b,o3_wrap=0}layerWrite(a);o3_wrap&&(o3_width=olNs4?over.clip.width:over.offsetWidth);runHook("createPopup",FAFTER,a);return!0} function placeLayer(){var a,b;a=0;o3_frame.innerWidth&&(a=18);iwidth=windowWidth();winoffset=olIe4?eval("o3_frame."+docRoot+".scrollLeft"):o3_frame.pageXOffset;a=runHook("horizontalPlacement",FCHAIN,iwidth,winoffset,a);o3_frame.innerHeight?iheight=o3_frame.innerHeight:eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientHeight=='number'")&&eval("o3_frame."+docRoot+".clientHeight")&&(iheight=eval("o3_frame."+docRoot+".clientHeight"));scrolloffset=olIe4?eval("o3_frame."+docRoot+".scrollTop"): o3_frame.pageYOffset;b=runHook("verticalPlacement",FCHAIN,iheight,scrolloffset);repositionTo(over,a,b)}function olMouseMove(a){a=a?a:event;a.pageX?(o3_x=a.pageX,o3_y=a.pageY):a.clientX&&(o3_x=eval("e.clientX+o3_frame."+docRoot+".scrollLeft"),o3_y=eval("e.clientY+o3_frame."+docRoot+".scrollTop"));1==o3_allowmove&&runHook("placeLayer",FREPLACE);hoveringSwitch&&!olNs4&&runHook("cursorOff",FREPLACE)&&(olHideDelay?hideDelay(olHideDelay):cClick(),hoveringSwitch=!hoveringSwitch)} function no_overlib(){return ver3fix} function olMouseCapture(){capExtent=document;var a,b="",d,c;c=olMouseMove;a=/function[ ]*(\w*)\(/;d=!olIe4&&window.onmousemove;if(document.onmousemove||d){d&&(capExtent=window);c=capExtent.onmousemove.toString();a=c.match(a);if(null==a)b=c+"(e); ";else if("anonymous"==a[1]||"olMouseMove"==a[1]||d&&"onmousemove"==a[1]){if(!olOp&&d&&(d=c.indexOf("{")+1,a=c.lastIndexOf("}"),c=c.substring(d,a),-1!=(d=c.indexOf("("))))c=c.substring(0,d).replace(/^\s+/,"").replace(/\s+$/,""),eval("typeof "+c+" == 'undefined'")? window.onmousemove=null:b=c+"(e);";if(!b){olCheckMouseCapture=!1;return}}else a[1]?b=a[1]+"(e); ":(d=c.indexOf("{")+1,a=c.lastIndexOf("}"),b=c.substring(d,a)+"\n");c=new Function("e",b+"olMouseMove(e); ")}capExtent.onmousemove=c;olNs4&&capExtent.captureEvents(Event.MOUSEMOVE)} function parseTokens(a,b){var d,c,f=-1,h="ol_"!=a,k=h&&!b.length?1:0;for(c=0;cf){if("number"==typeof b[c]&&b[c]>pmStart&&b[c]=pmCount||b[c]==DONOTHING))if(b[c]==INARRAY)k=0,eval(a+"text=ol_texts["+b[++c]+"].toString()");else if(b[c]==CAPARRAY)eval(a+"cap=ol_caps["+b[++c]+"].toString()");else if(b[c]==STICKY)"ol_"!=a&&eval(a+"sticky=1");else if(b[c]==BACKGROUND)eval(a+ 'background="'+b[++c]+'"');else if(b[c]==NOCLOSE)"ol_"!=a&&opt_NOCLOSE();else if(b[c]==CAPTION)eval(a+"cap='"+escSglQuote(b[++c])+"'");else if(b[c]==CENTER||b[c]==LEFT||b[c]==RIGHT)eval(a+"hpos="+b[c]),"ol_"!=a&&(olHautoFlag=1);else if(b[c]==OFFSETX)eval(a+"offsetx="+b[++c]);else if(b[c]==OFFSETY)eval(a+"offsety="+b[++c]);else if(b[c]==FGCOLOR)eval(a+'fgcolor="'+b[++c]+'"');else if(b[c]==BGCOLOR)eval(a+'bgcolor="'+b[++c]+'"');else if(b[c]==TEXTCOLOR)eval(a+'textcolor="'+b[++c]+'"');else if(b[c]== CAPCOLOR)eval(a+'capcolor="'+b[++c]+'"');else if(b[c]==CLOSECOLOR)eval(a+'closecolor="'+b[++c]+'"');else if(b[c]==WIDTH)eval(a+"width="+b[++c]);else if(b[c]==BORDER)eval(a+"border="+b[++c]);else if(b[c]==CELLPAD)c=opt_MULTIPLEARGS(++c,b,a+"cellpad");else if(b[c]==STATUS)eval(a+"status='"+escSglQuote(b[++c])+"'");else if(b[c]==AUTOSTATUS)eval(a+"autostatus=("+a+"autostatus == 1) ? 0 : 1");else if(b[c]==AUTOSTATUSCAP)eval(a+"autostatus=("+a+"autostatus == 2) ? 0 : 2");else if(b[c]==HEIGHT)eval(a+"height="+ a+"aboveheight="+b[++c]);else if(b[c]==CLOSETEXT)eval(a+"close='"+escSglQuote(b[++c])+"'");else if(b[c]==SNAPX)eval(a+"snapx="+b[++c]);else if(b[c]==SNAPY)eval(a+"snapy="+b[++c]);else if(b[c]==FIXX)eval(a+"fixx="+b[++c]);else if(b[c]==FIXY)eval(a+"fixy="+b[++c]);else if(b[c]==RELX)eval(a+"relx="+b[++c]);else if(b[c]==RELY)eval(a+"rely="+b[++c]);else if(b[c]==FGBACKGROUND)eval(a+'fgbackground="'+b[++c]+'"');else if(b[c]==BGBACKGROUND)eval(a+'bgbackground="'+b[++c]+'"');else if(b[c]==PADX)eval(a+"padxl="+ b[++c]),eval(a+"padxr="+b[++c]);else if(b[c]==PADY)eval(a+"padyt="+b[++c]),eval(a+"padyb="+b[++c]);else if(b[c]==FULLHTML)"ol_"!=a&&eval(a+"fullhtml=1");else if(b[c]==BELOW||b[c]==ABOVE)eval(a+"vpos="+b[c]),"ol_"!=a&&(olVautoFlag=1);else if(b[c]==CAPICON)eval(a+'capicon="'+b[++c]+'"');else if(b[c]==TEXTFONT)eval(a+"textfont='"+escSglQuote(b[++c])+"'");else if(b[c]==CAPTIONFONT)eval(a+"captionfont='"+escSglQuote(b[++c])+"'");else if(b[c]==CLOSEFONT)eval(a+"closefont='"+escSglQuote(b[++c])+"'");else if(b[c]== TEXTSIZE)eval(a+'textsize="'+b[++c]+'"');else if(b[c]==CAPTIONSIZE)eval(a+'captionsize="'+b[++c]+'"');else if(b[c]==CLOSESIZE)eval(a+'closesize="'+b[++c]+'"');else if(b[c]==TIMEOUT)eval(a+"timeout="+b[++c]);else if(b[c]==FUNCTION)"ol_"==a?"number"!=typeof b[c+1]&&(d=b[++c],ol_function="function"==typeof d?d:null):(k=0,d=null,"number"!=typeof b[c+1]&&(d=b[++c]),opt_FUNCTION(d));else if(b[c]==DELAY)eval(a+"delay="+b[++c]);else if(b[c]==HAUTO)eval(a+"hauto=("+a+"hauto == 0) ? 1 : 0");else if(b[c]==VAUTO)eval(a+ "vauto=("+a+"vauto == 0) ? 1 : 0");else if(b[c]==CLOSECLICK)eval(a+"closeclick=("+a+"closeclick == 0) ? 1 : 0");else if(b[c]==WRAP)eval(a+"wrap=("+a+"wrap == 0) ? 1 : 0");else if(b[c]==FOLLOWMOUSE)eval(a+"followmouse=("+a+"followmouse == 1) ? 0 : 1");else if(b[c]==MOUSEOFF){if(eval(a+"mouseoff=("+a+"mouseoff==0) ? 1 : 0"),d=b[c+1],"ol_"!=a&&eval(a+"mouseoff")&&"number"==typeof d&&(dpmUpper))olHideDelay=b[++c]}else b[c]==CLOSETITLE?eval(a+"closetitle='"+escSglQuote(b[++c])+"'"):b[c]==CSSOFF|| b[c]==CSSCLASS?eval(a+"css="+b[c]):b[c]==COMPATMODE?eval(a+"compatmode=("+a+"compatmode==0) ? 1 : 0"):b[c]==FGCLASS?eval(a+'fgclass="'+b[++c]+'"'):b[c]==BGCLASS?eval(a+'bgclass="'+b[++c]+'"'):b[c]==TEXTFONTCLASS?eval(a+'textfontclass="'+b[++c]+'"'):b[c]==CAPTIONFONTCLASS?eval(a+'captionfontclass="'+b[++c]+'"'):b[c]==CLOSEFONTCLASS?eval(a+'closefontclass="'+b[++c]+'"'):c=parseCmdLine(a,c,b);k&&o3_function&&(o3_text=o3_function());"o3_"==a&&o3_wrap&&(o3_width=0,d=/<.*\n*>/ig,d.test(o3_text)||(o3_text= o3_text.replace(/[ ]+/g," ")),d.test(o3_cap)||(o3_cap=o3_cap.replace(/[ ]+/g," ")));"o3_"==a&&o3_sticky&&(!o3_close&&o3_frame!=ol_frame&&(o3_close=ol_close),o3_mouseoff&&o3_frame==ol_frame&&opt_NOCLOSE(" "))} function layerWrite(a){a+="\n";if(olNs4){var b=o3_frame.document.layers.overDiv.document;b.write(a);b.close()}else if("undefined"!=typeof over.innerHTML)olIe5&&isMac&&(over.innerHTML=""),over.innerHTML=a;else{range=o3_frame.document.createRange();range.setStartAfter(over);for(domfrag=range.createContextualFragment(a);over.hasChildNodes();)over.removeChild(over.lastChild);over.appendChild(domfrag)}} function showObject(a){runHook("showObject",FBEFORE);(olNs4?a:a.style).visibility="visible";runHook("showObject",FAFTER)} function hideObject(a){runHook("hideObject",FBEFORE);var b=olNs4?a:a.style;olNs6&&0=parseInt(o3_width)?over.offsetWidth:parseInt(o3_width)),c=b+(over.offsetHeight>=o3_aboveheight?over.offsetHeight:o3_aboveheight);return o3_xd||o3_yc?!0:!1} function opt_FUNCTION(a){o3_text=a?"string"==typeof a?/.+\(.*\)/.test(a)?eval(a):a:a():o3_function?o3_function():"No Function";return 0} function opt_NOCLOSE(a){a||(o3_close="");olNs4?(over.captureEvents(Event.MOUSEOUT||Event.MOUSEOVER),over.onmouseover=function(){0pmStart);c++)f+=b[c]+",";f&&(f=f.substring(0,--f.length));c--;a=olNs4&&/cellpad/i.test(d)?f.split(",")[0]:f;eval(d+'="'+a+'"');return c}function nbspCleanup(){o3_wrap&&(o3_text=o3_text.replace(/\ /g," "),o3_cap=o3_cap.replace(/\ /g," "))}function escSglQuote(a){return a.toString().replace(/'/g,"\\'")} function OLonLoad_handler(a){var b=/\w+\(.*\)[;\s]+/g,d=/overlib\(|nd\(|cClick\(/,c,f;olLoaded||(olLoaded=1);if(window.removeEventListener&&3==a.eventPhase)window.removeEventListener("load",OLonLoad_handler,!1);else if(window.detachEvent&&(window.detachEvent("onload",OLonLoad_handler),a=document.body.getAttribute("onload")))if((a=a.toString().match(b))&&a.length)for(f=0;f":"":"";a="o3_"+d+"font";d="o3_"+("caption"==d?"cap":d)+"color";return f&&!olNs4?c?'':'
':''} function quoteMultiNameFonts(a){for(var b=a.split(","),d=0;do3_relx?b+o3_relx+a-f-d:b+o3_relx:o3_fixx;else if(1==o3_hauto&&(o3_hpos=o3_x-b>a/2?LEFT:RIGHT),o3_hpos==CENTER&&(c=o3_x+o3_offsetx-f/2,cb+a-d&&(c=a+b-f-d,0>c&&(c=0))),o3_hpos==LEFT&&(c=o3_x-o3_offsetx-f,co3_rely?b+o3_rely+a-d:b+o3_rely:o3_fixy;else if(1==o3_vauto&&(o3_y-b>a/2&&o3_vpos==BELOW&&0o3_y-(d+o3_offsety)-b&&(o3_vpos=BELOW)),o3_vpos==ABOVE?(0==o3_aboveheight&&(o3_aboveheight=d),d=o3_y-(o3_aboveheight+o3_offsety),d
'),c=layerReference(a)):(c=b.document.createElement("DIV"),c.id=a,f.appendChild(c));a=c.style}a.position="absolute";a.visibility="hidden";a.zIndex= d;a.left=olIe4&&!olOp?a.top="0px":a.top=-1E4+(!olNs4?NaN:0)}return c}function layerReference(a){return olNs4?o3_frame.document.layers[a]:document.all?o3_frame.document.all[a]:o3_frame.document.getElementById(a)}function isFunction(a){var b=!0;if("object"==typeof a)for(var d=0;db){for(;b=Math.round(100*parseFloat(a))}registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSOFF);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSOFF);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSOFF);registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSCLASS);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSCLASS); registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSCLASS);registerPostParseFunction(checkPositionFlags);registerHook("hideObject",nbspCleanup,FAFTER);registerHook("horizontalPlacement",horizontalPlacement,FCHAIN);registerHook("verticalPlacement",verticalPlacement,FCHAIN);if(olNs4||olIe5&&isMac||olKq)olLoaded=1;registerNoParameterCommands("sticky,autostatus,autostatuscap,fullhtml,hauto,vauto,closeclick,wrap,followmouse,mouseoff,compatmode");var olCheckMouseCapture=!0; olNs4||olNs6||olIe4?olMouseCapture():(nd=overlib=no_overlib,ver3fix=!0);var perline=9,divSet=[!1,!1],curId,colorLevels="5,8,A,C,D,E".split(","),colorArray=[],ie=!1,nocolor="none",colortype=1;document.all&&(ie=!0,nocolor="");function getObj(a){return ie?document.all[a]:document.getElementById(a)}function addColor(a,b,d){addColorValue(colorLevels[a],colorLevels[b],colorLevels[d])}function addColorValue(a,b,d){colorArray[colorArray.length]="#"+a+a+b+b+d+d} function setColor(a){var b=getObj(curId),d=getObj(curId+"field"),c=getObj("colorpicker"+colortype);d.value=a;d.style.backgroundColor=a;d.style.color=a;if(a==""){b.style.background=nocolor;b.style.color=nocolor}else{b.style.background=a;b.style.color=a}c.style.display="none";eval(getObj(curId+"field").title)} function setDiv(){if(document.createElement){var a=document.createElement("div");if(typeof a.innerHTML=="string"){genColors();a.id="colorpicker"+colortype;a.style.position="absolute";a.style.display="none";a.style.border="#000000 1px solid";a.style.background="#FFFFFF";a.style.zIndex=65E3;a.innerHTML=getColorTable();document.body.appendChild(a);divSet[colortype]=true}}} function pickColor(a){divSet[colortype]||setDiv();var b=getObj("colorpicker"+colortype);if(a==curId&&b.style.display=="block")b.style.display="none";else{curId=a;a=getObj(a);b.style.top=getAbsoluteOffsetTop(a)+20;b.style.left=getAbsoluteOffsetLeft(a);b.style.display="block"}} function genColors(){if(colortype==1){colorArray[0]="black";colorArray[1]="blue";colorArray[2]="green";colorArray[3]="yellow";colorArray[4]="red";colorArray[5]="orange";colorArray[6]="purple";colorArray[7]="brown"}else{colorArray[0]="#EEEEEE";colorArray[1]="#D2D2D2";colorArray[2]="#99CCFF";colorArray[3]="#AADDAA";colorArray[4]="#FEFD8D";colorArray[5]="#FF5050";colorArray[6]="#FFD050";colorArray[7]="#CC99FF";colorArray[8]="#D57D00";colorArray[9]="#FE80D4";colorArray[10]="#35B5B5";colorArray[11]="#00E138"; colorArray[12]="#A7A7A7";colorArray[13]="#FF0D0D";colorArray[14]="#FF9600";colorArray[15]="#A2FF00";colorArray[16]="#00FFE4";colorArray[17]="#FF00A8"}return colorArray} function getColorTable(){var a=colorArray,b;b='';for(i=0;i");b=b+('");i%perline==perline-1&&(b=b+"")}i%perline!=0&&(b=b+"");return b+"
   
"} function relateColor(a,b){var d=getObj(a);if(b==""){d.style.background=nocolor;d.style.color=nocolor}else{d.style.background=b;d.style.color=b}eval(getObj(a+"field").title)}function getAbsoluteOffsetTop(a){for(var b=a.offsetTop,a=a.offsetParent;a!=document.body;){b=b+a.offsetTop;a=a.offsetParent}return b}function getAbsoluteOffsetLeft(a){for(var b=a.offsetLeft,a=a.offsetParent;a!=document.body;){b=b+a.offsetLeft;a=a.offsetParent}if(e=window.event)b=getmouseX2(event);return b} function AjaxRequest(){var a={timeout:null,generateUniqueUrl:true};a.url=window.location.href;a.method="GET";a.async=true;a.username=null;a.password=null;a.parameters={};a.requestIndex=AjaxRequest.numAjaxRequests++;a.responseReceived=false;a.groupName=null;a.queryString="";a.responseText=null;a.responseXML=null;a.status=null;a.statusText=null;a.aborted=false;a.xmlHttpRequest=null;a.onTimeout=null;a.onLoading=null;a.onLoaded=null;a.onInteractive=null;a.onComplete=null;a.onSuccess=null;a.onError=null; a.onGroupBegin=null;a.onGroupEnd=null;a.xmlHttpRequest=AjaxRequest.getXmlHttpRequest();if(a.xmlHttpRequest==null)return null;a.xmlHttpRequest.onreadystatechange=function(){if(!(a==null||a.xmlHttpRequest==null)){if(a.xmlHttpRequest.readyState==1)a.onLoadingInternal(a);if(a.xmlHttpRequest.readyState==2)a.onLoadedInternal(a);if(a.xmlHttpRequest.readyState==3)a.onInteractiveInternal(a);if(a.xmlHttpRequest.readyState==4)a.onCompleteInternal(a)}};a.onLoadingInternalHandled=false;a.onLoadedInternalHandled= false;a.onInteractiveInternalHandled=false;a.onCompleteInternalHandled=false;a.onLoadingInternal=function(){if(!a.onLoadingInternalHandled){AjaxRequest.numActiveAjaxRequests++;AjaxRequest.numActiveAjaxRequests==1&&typeof window.AjaxRequestBegin=="function"&&AjaxRequestBegin();if(a.groupName!=null){typeof AjaxRequest.numActiveAjaxGroupRequests[a.groupName]=="undefined"&&(AjaxRequest.numActiveAjaxGroupRequests[a.groupName]=0);AjaxRequest.numActiveAjaxGroupRequests[a.groupName]++;if(AjaxRequest.numActiveAjaxGroupRequests[a.groupName]== 1&&typeof a.onGroupBegin=="function")a.onGroupBegin(a.groupName)}if(typeof a.onLoading=="function")a.onLoading(a);a.onLoadingInternalHandled=true}};a.onLoadedInternal=function(){if(!a.onLoadedInternalHandled){if(typeof a.onLoaded=="function")a.onLoaded(a);a.onLoadedInternalHandled=true}};a.onInteractiveInternal=function(){if(!a.onInteractiveInternalHandled){if(typeof a.onInteractive=="function")a.onInteractive(a);a.onInteractiveInternalHandled=true}};a.onCompleteInternal=function(){if(!a.onCompleteInternalHandled&& !a.aborted){a.onCompleteInternalHandled=true;AjaxRequest.numActiveAjaxRequests--;AjaxRequest.numActiveAjaxRequests==0&&typeof window.AjaxRequestEnd=="function"&&AjaxRequestEnd(a.groupName);if(a.groupName!=null){AjaxRequest.numActiveAjaxGroupRequests[a.groupName]--;if(AjaxRequest.numActiveAjaxGroupRequests[a.groupName]==0&&typeof a.onGroupEnd=="function")a.onGroupEnd(a.groupName)}a.responseReceived=true;a.status=a.xmlHttpRequest.status;a.statusText=a.xmlHttpRequest.statusText;a.responseText=a.xmlHttpRequest.responseText; a.responseXML=a.xmlHttpRequest.responseXML;if(typeof a.onComplete=="function")a.onComplete(a);if(a.xmlHttpRequest.status==200&&typeof a.onSuccess=="function")a.onSuccess(a);else if(typeof a.onError=="function")a.onError(a);delete a.xmlHttpRequest.onreadystatechange;a.xmlHttpRequest=null}};a.onTimeoutInternal=function(){if(a!=null&&a.xmlHttpRequest!=null&&!a.onCompleteInternalHandled){a.aborted=true;a.xmlHttpRequest.abort();AjaxRequest.numActiveAjaxRequests--;AjaxRequest.numActiveAjaxRequests==0&& typeof window.AjaxRequestEnd=="function"&&AjaxRequestEnd(a.groupName);if(a.groupName!=null){AjaxRequest.numActiveAjaxGroupRequests[a.groupName]--;if(AjaxRequest.numActiveAjaxGroupRequests[a.groupName]==0&&typeof a.onGroupEnd=="function")a.onGroupEnd(a.groupName)}if(typeof a.onTimeout=="function")a.onTimeout(a);delete a.xmlHttpRequest.onreadystatechange;a.xmlHttpRequest=null}};a.process=function(){if(a.xmlHttpRequest!=null){a.generateUniqueUrl&&a.method=="GET"&&(a.parameters.AjaxRequestUniqueId=(new Date).getTime()+ ""+a.requestIndex);var b=null,d;for(d in a.parameters){if(a.queryString.length>0)a.queryString=a.queryString+"&";a.queryString=a.queryString+(encodeURIComponent(d)+"="+encodeURIComponent(a.parameters[d]))}if(a.method=="GET"&&a.queryString.length>0)a.url=a.url+((a.url.indexOf("?")>-1?"&":"?")+a.queryString);a.xmlHttpRequest.open(a.method,a.url,a.async,a.username,a.password);if(a.method=="POST"){typeof a.xmlHttpRequest.setRequestHeader!="undefined"&&a.xmlHttpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");b=a.queryString}a.timeout>0&&setTimeout(a.onTimeoutInternal,a.timeout);a.xmlHttpRequest.send(b)}};a.handleArguments=function(b){for(var d in b)typeof a[d]=="undefined"?a.parameters[d]=b[d]:a[d]=b[d]};a.getAllResponseHeaders=function(){if(a.xmlHttpRequest!=null){if(a.responseReceived)return a.xmlHttpRequest.getAllResponseHeaders();alert("Cannot getAllResponseHeaders because a response has not yet been received")}};a.getResponseHeader=function(b){if(a.xmlHttpRequest!= null){if(a.responseReceived)return a.xmlHttpRequest.getResponseHeader(b);alert("Cannot getResponseHeader because a response has not yet been received")}};return a}AjaxRequest.getXmlHttpRequest=function(){tempreq=null;if(window.XMLHttpRequest)try{tempreq=new XMLHttpRequest}catch(a){tempreq=null}else if(window.ActiveXObject)try{tempreq=new ActiveXObject("Msxml2.XMLHTTP.4.0")}catch(b){try{tempreq=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){tempreq=null}}else tempreq=null;return tempreq}; AjaxRequest.isActive=function(){return AjaxRequest.numActiveAjaxRequests>0};AjaxRequest.get=function(a){AjaxRequest.doRequest("GET",a)};AjaxRequest.post=function(a){AjaxRequest.doRequest("POST",a)};AjaxRequest.doRequest=function(a,b){if(typeof b!="undefined"&&b!=null){var d=new AjaxRequest;d.method=a;d.handleArguments(b);d.process()}}; AjaxRequest.submit=function(a,b,d){var c=new AjaxRequest;if(c==null)return false;b=AjaxRequest.serializeForm(a,b);c.method=a.method.toUpperCase();c.url=a.action;c.handleArguments(d);c.queryString=b;c.process();return true}; AjaxRequest.serializeForm=function(a,b){var d=a.elements;if(d){var c=d.length,f="";this.addField=function(a,b){f.length>0&&(f=f+"&");f=f+(encodeURIComponent(a)+"="+encodeURIComponent(b))};for(var h=0;h=0&&this.addField(k.name,k.options[k.selectedIndex].value);break; case "select-multiple":for(var l=0;l=0&&b>0)f=new Date(b,d,1);else{c=f.getDate();f.setDate(1)}b="\r\n"+("
")+"\r\n"+("\r\n");b=b+("\r\n");b=b+("\r\n");b=b+"\r\n";dtForever&&(b=b+(""));b=b+"";for(i=0;i"+dayArrayShort[i]+"\r\n"); b=b+"\r\n";for(i=0;i\r\n";do{dayNum=f.getDate();TD_onclick=" onclick=\"updateDateField('"+a+"', '"+getDateString(f)+"');\">";b=dayNum==c?b+("\r\n"):b+("\r\n");f.setDate(f.getDate()+1)}while(f.getDate()>1);if(getDay2(f)>0)for(i=6;i>=getDay2(f);i--)b=b+"\r\n";dtForever&&(b=b+(""));document.getElementById(datePickerDivID).innerHTML=b+"
"+getButtonCode(a,f,-1,"<")+"
"+ monthArrayLong[f.getMonth()]+" "+f.getFullYear()+"
"+getButtonCode(a,f,1,">")+"
'+globalrepeatnever+"
"+dayNum+"\r\n");getDay2(f)==6&&(b=b+"
\r\n";b=b+"
'+ globalrepeatnever+"
\r\n
\r\n"}function getButtonCode(a,b,d,c){var f=(b.getMonth()+d)%12,b=b.getFullYear()+parseInt((b.getMonth()+d)/12);if(f<0){f=f+12;b=b+-1}return""} function getDateString(a){var b="00"+a.getDate(),d="00"+(a.getMonth()+1),b=b.substring(b.length-2),d=d.substring(d.length-2);switch(dateFormat){case "dmy":return b+dateSeparator+d+dateSeparator+a.getFullYear();case "ymd":return a.getFullYear()+dateSeparator+d+dateSeparator+b;case "Ymd":return(new String(a.getFullYear())).substring(2,4)+dateSeparator+d+dateSeparator+b;case "mdY":return d+dateSeparator+b+dateSeparator+(new String(a.getFullYear())).substring(2,4);case "dmY":return b+dateSeparator+d+ dateSeparator+(new String(a.getFullYear())).substring(2,4);case "dmy":return b+dateSeparator+d+dateSeparator+a.getFullYear();default:return d+dateSeparator+b+dateSeparator+a.getFullYear()}} function getFieldDate(a){var b,d,c,f,h;try{if(d=splitDateString(a)){switch(dateFormat){case "dmy":c=parseInt(d[0],10);f=parseInt(d[1],10)-1;h=parseInt(d[2],10);break;case "dmY":c=parseInt(d[0],10);f=parseInt(d[1],10)-1;h=parseInt(d[2],10)+2E3;break;case "ymd":c=parseInt(d[2],10);f=parseInt(d[1],10)-1;h=parseInt(d[0],10);break;case "Ymd":c=parseInt(d[2],10);f=parseInt(d[1],10)-1;h=parseInt(d[0],10)+2E3;break;case "mdY":c=parseInt(d[1],10);f=parseInt(d[0],10)-1;h=parseInt(d[2],10)+2E3;break;default:c= parseInt(d[1],10);f=parseInt(d[0],10)-1;h=parseInt(d[2],10)}b=new Date(h,f,c)}else b=a?new Date(a):new Date}catch(k){b=new Date}return b}function splitDateString(a){return a.indexOf("/")>=0?a.split("/"):a.indexOf(".")>=0?a.split("."):a.indexOf("-")>=0?a.split("-"):a.indexOf("\\")>=0?a.split("\\"):false} function datePickerClosed(){if(document.getElementById("stopspan")){var a=getFieldDate(document.getElementById("startspan").value),b=getFieldDate(document.getElementById("stopspan").value);if(stopspanchanged==false)document.getElementById("stopspan").value=document.getElementById("startspan").value;if(a>b)document.getElementById("stopspan").value=document.getElementById("startspan").value}} function updateDateField(a,b,d){a=document.getElementsByName(a).item(0);if(b)a.value=b;if(d)a.value=globalrepeatnever;d=document.getElementById(datePickerDivID);d.style.visibility="hidden";d.style.display="none";a.type!="hidden"&&b&&a.focus();b&&typeof datePickerClosed=="function"&&datePickerClosed(a)}function checkremindersaved(){return remindernotsaved?confirm(globallangnotsaved)?false:true:false} function selectgroup(){window.location.href=document.form.selectsharedevent?"?groups=groups&selectedgroup="+document.form.selectsharedevent.options[document.form.selectsharedevent.selectedIndex].value+globalsid:"?groups=groups"+globalsid}function getcenterX(){return document.compatMode&&document.compatMode!="BackCompat"?document.documentElement.clientWidth/2:document.body.clientWidth/2} function getcenterY(){return document.compatMode&&document.compatMode!="BackCompat"?document.documentElement.clientHeight/2:document.body.clientHeight/2} function calctime(){var a=new Date;a.setTime(Date.parse(currenttimeserver)+currenttimeint*1E3);var b=a.getHours(),d=a.getMinutes(),a=a.getSeconds(),c="AM";currenttimeint++;if(globaltimeformat=="h:i A"){if(b>11){c="PM";b=b-12}b==0&&(b=12)}else c="";b<10&&(b="0"+b);d<10&&(d="0"+d);a<10&&(a="0"+a);if(document.getElementById("digitalclock")){document.getElementById("digitalclock").innerHTML=b+":"+d+":"+a+" "+c;digitalclocktimeout=setTimeout("calctime()",1E3)}} function toggleLayer(a){if(document.getElementById){a=document.getElementById(a).style;a.display=a.display?"":"block"}else if(document.all){a=document.all[a].style;a.display=a.display?"":"block"}else if(document.layers){a=document.layers[a].style;a.display=a.display?"":"block"}}function togglereminder(a,b,d,c,f){if(a.checked){b.disabled="";d.disabled="";c.disabled="";f.disabled=""}else{b.disabled="disabled";d.disabled="disabled";c.disabled="disabled";f.disabled="disabled"}} function toggleLayernone(a,b){if(document.getElementById){if(document.getElementById(a)){var d=document.getElementById(a).style;d.display=b}}else if(document.all){if(document.all[a]){d=document.all[a].style;d.display=b}}else if(document.layers&&document.layers[a]){d=document.layers[a].style;d.display=b}} function disableItreminder(){if(document.form.remindeveryday.checked){document.form.reminddateday.disabled="disabled";document.form.reminddateweek.disabled="disabled";document.form.reminddatemonth.disabled="disabled";document.form.reminddateday.checked="";document.form.reminddateweek.checked="";document.form.reminddatemonth.checked=""}if(document.form.remindeveryweek.checked){document.form.reminddateday.disabled="";document.form.reminddateweek.disabled="disabled";document.form.reminddatemonth.disabled= "disabled";document.form.reminddateweek.checked="";document.form.reminddatemonth.checked=""}if(document.form.remindeverymonth.checked){document.form.reminddateday.disabled="";document.form.reminddateweek.disabled="";document.form.reminddatemonth.disabled="disabled";document.form.reminddatemonth.checked=""}if(document.form.remindeveryyear.checked){document.form.reminddateday.disabled="";document.form.reminddateweek.disabled="";document.form.reminddatemonth.disabled=""}} function IsNumeric(a){var b;for(j=0;jmaxsmsjava){alert(globaltoomanysmsjava);setTimeout("if(document.form.exception) document.form.exception.disabled = false; if(document.form.Delete) document.form.Delete.disabled = false; document.form.Save.disabled = false;document.form.Save.value=globalsavereminder;",0);return false}}}setTimeout("if(document.form.exception) document.form.exception.disabled = true; if(document.form.Delete) document.form.Delete.disabled = true; document.form.Save.disabled = true;document.form.Save.value=globalsaving;", 0);setTimeout("if(document.form.exception) document.form.exception.disabled = false; if(document.form.Delete) document.form.Delete.disabled = false; if(document.form.Save) document.form.Save.disabled = false; if(document.form.Save) document.form.Save.value=globalsavereminder;",2500);return submitForm(document.form,submittype)?false:true}var fActiveMenu=!1,oOverMenu=!1,quickselect=!1; function mouseSelect(){if(fActiveMenu&&oOverMenu==false){document.getElementById(fActiveMenu).style.display="none";fActiveMenu=false}} function menuActivate(a,b){var d=0,c=0;document.getElementById("reminderbox")&&(d=parseInt(document.getElementById("reminderbox").style.left));document.getElementById("reminderbox")&&(c=parseInt(document.getElementById("reminderbox").style.top));if(fActiveMenu)return mouseSelect(0);oMenu=document.getElementById(b);oEdit=document.getElementById(a);nTop=oEdit.offsetTop+oEdit.offsetHeight;for(nLeft=oEdit.offsetLeft;oEdit.offsetParent!=document.body;){oEdit=oEdit.offsetParent;nTop=nTop+oEdit.offsetTop; nLeft=nLeft+oEdit.offsetLeft}oMenu.style.left=nLeft-d;oMenu.style.top=nTop-c;oMenu.style.display="";fActiveMenu=b;return false}function textSet(a,b){document.getElementById(a).value=b;oOverMenu=false;mouseSelect(0)}function comboKey(a,b){window.event.keyCode==13||window.event.keyCode==32?textSet(a,b.value):window.event.keyCode==27&&mouseSelect(0)} function getmouseX(a){var b=0,d=0;document.getElementById("reminderbox")&&(d=parseInt(document.getElementById("reminderbox").style.left));if(!a)a=window.event;if(a.pageX||a.pageY)b=a.pageX+d;else if(a.clientX||a.clientY)b=a.clientX+document.body.scrollLeft+d;return b} function getmouseY(a){var b=0,d=0;document.getElementById("reminderbox")&&(d=parseInt(document.getElementById("reminderbox").style.top));if(!a)a=window.event;if(a.pageX||a.pageY)b=a.pageY+document.body.scrollLeft+d;else if(a.clientX||a.clientY)b=a.clientY+document.body.scrollTop+document.body.scrollLeft+d;return b}function getmouseX2(a){var b=0;if(!a)a=window.event;if(a.pageX||a.pageY)b=a.pageX+0;else if(a.clientX||a.clientY)b=a.clientX+document.body.scrollLeft+0;return b} function getmouseY2(a){var b=0;if(!a)a=window.event;if(a.pageX||a.pageY)b=a.pageY+document.body.scrollLeft+0;else if(a.clientX||a.clientY)b=a.clientY+document.body.scrollTop+document.body.scrollLeft+0;return b}function findPosX(a){var b=0;document.getElementById("reminderbox")&&(b=b-parseInt(document.getElementById("reminderbox").style.left));if(a.offsetParent)for(;a.offsetParent;){b=b+a.offsetLeft;a=a.offsetParent}else a.x&&(b=b+a.x);return b} function findPosY(a){var b=0;document.getElementById("reminderbox")&&(b=b-parseInt(document.getElementById("reminderbox").style.top));if(a.offsetParent)for(;a.offsetParent;){b=b+a.offsetTop;a=a.offsetParent}else a.y&&(b=b+a.y);return b}function findPosX2(a){var b=0;if(a.offsetParent)for(;a.offsetParent;){b=b+a.offsetLeft;a=a.offsetParent}else a.x&&(b=b+a.x);return b} function findPosY2(a){var b=0;if(a.offsetParent)for(;a.offsetParent;){b=b+a.offsetTop;a=a.offsetParent}else a.y&&(b=b+a.y);return b} function hidetimes(){if(document.getElementById("timepickerstartarea"))document.getElementById("timepickerstartarea").style.display="none";if(document.getElementById("timepickerstoparea"))document.getElementById("timepickerstoparea").style.display="none";if(document.getElementById("timepickerstartarea2"))document.getElementById("timepickerstartarea2").style.display="none";if(document.getElementById("timepickerstoparea2"))document.getElementById("timepickerstoparea2").style.display="none";if(document.getElementById("emailtimepickerstartarea"))document.getElementById("emailtimepickerstartarea").style.display= "none";if(document.getElementById("emailtimepickerstartarea2"))document.getElementById("emailtimepickerstartarea2").style.display="none";if(document.getElementById("smstimepickerstartarea"))document.getElementById("smstimepickerstartarea").style.display="none";if(document.getElementById("smstimepickerstartarea2"))document.getElementById("smstimepickerstartarea2").style.display="none";if(document.getElementById("defaultsmstimearea"))document.getElementById("defaultsmstimearea").style.display="none"; if(document.getElementById("defaultsmstimearea2"))document.getElementById("defaultsmstimearea2").style.display="none";if(document.getElementById("defaultemailtimearea"))document.getElementById("defaultemailtimearea").style.display="none";if(document.getElementById("defaultemailtimearea2"))document.getElementById("defaultemailtimearea2").style.display="none"} function timepicker(a,b){var d,c,f;f=a.value.replace(/ /g,"");f=f.replace(/:/g,"");d=f.substring(0,2);c=f.substring(4,2);f=f.substring(6,4);isNaN(parseInt(d,10))&&(d=0);isNaN(parseInt(c,10))&&(c=0);if(globaltimeformat=="h:i A"){d=parseInt(d,10);c=parseInt(c,10);if(b=="hourup"){d=d+1;if(d==12&&f=="AM"){d=12;f="PM"}else if(d==12&&f=="PM"){d=12;f="AM"}}if(b=="hourdown"){d=d-1;if(d==11&&f=="AM"){d=11;f="PM"}else if(d==11&&f=="PM"){d=11;f="AM"}}b=="minuteup"&&(c=c+1);if(b=="minutedown"){c=c-1;c==-1&&(c= 59)}f=f.toUpperCase();f!="AM"&&f!="PM"&&(f="AM");if(d<1||d>12)if(d==13&&f=="AM"){d=1;f="AM"}else if(d==13&&f=="PM"){d=1;f="PM"}else if(d==0&&f=="PM"){d=12;f="PM"}else if(d==0&&f=="AM"){d=12;f="AM"}else d=12;if(c<0||c>59)c=0;d<10&&(d="0"+d);c<10&&(c="0"+c);a.value=d+":"+c+" "+f}else{d=parseInt(d,10);c=parseInt(c,10);b=="hourup"&&(d=d+1);if(b=="hourdown"){d=d-1;d==-1&&(d=23)}b=="minuteup"&&(c=c+1);if(b=="minutedown"){c=c-1;c==-1&&(c=59)}if(d<0||d>23)d=0;if(c<0||c>59)c=0;d<10&&(d="0"+d);c<10&&(c="0"+ c);a.value=d+":"+c}window.clearTimeout(timerID2);timerID2=window.setTimeout("hidetimes()",3E3);document.getElementById("timepickerstart")&&comparestartstoptime(a)} function comparestartstoptime(a){var b,d,c,f,h,k;b=document.form.timepickerstart.value.replace(/ /g,"");b=b.replace(/:/g,"");d=b.substring(0,2);c=b.substring(4,2);b=b.substring(6,4);f=b=="AM"&&d=="12"?0:b=="PM"&&d!="12"?parseInt(d,10)+12:parseInt(d,10);h=parseInt(c,10);k=f*60+h;if(document.form.smstime.disabled!=""&&a.name=="timepickerstart"){document.form.smstime.value=d+":"+c;if(b)document.form.smstime.value=document.form.smstime.value+" "+b}b=document.form.timepickerstop.value.replace(/ /g,""); b=b.replace(/:/g,"");d=b.substring(0,2);c=b.substring(4,2);b=b.substring(6,4);f=b=="AM"&&d=="12"?0:b=="PM"&&d!="12"?parseInt(d,10)+12:parseInt(d,10);h=parseInt(c,10);if(timepickerend==false||k>f*60+h&&document.form.startspan.value==document.form.stopspan.value)document.form.timepickerstop.value=document.form.timepickerstart.value}function initialiseTimer(a,b){globalpicker=a;timeri=200;timerID=window.setTimeout("mainTimer('"+b+"')",timeri)} function mainTimer(a){timepicker(globalpicker,a);timeri=timeri-30;timeri<50&&(timeri=50);timerID=window.setTimeout("mainTimer('"+a+"')",timeri)}function terminateTimer(){window.clearTimeout(timerID)} function updatesendreminderselect(a){var b=["",globalreminderarray1,globalreminderarray2,globalreminderarray3,globalreminderarray4,globalreminderarray5,globalreminderarray6,globalreminderarray7,globalreminderarray8,globalreminderarray9,globalreminderarray10,globalreminderarray11,globalreminderarray12];reminderselectedcheck=true;document.form.remind1select.length=0;document.form.remind2select.length=0;document.form.remind3select.length=0;document.form.remind4select.length=0;for(i=1;i<13;i++)if(a== "day"&&i<2){document.form.remind1select.options[i-1]=new Option(b[i],b[i]);document.form.remind2select.options[i-1]=new Option(b[i],b[i]);document.form.remind3select.options[i-1]=new Option(b[i],b[i]);document.form.remind4select.options[i-1]=new Option(b[i],b[i]);if(document.form.remind1id.value>1||!document.form.remind1id.checked){document.form.remind1.value=b[1];document.form.remind1id.value=1}if(document.form.remind2id.value>1||!document.form.remind2id.checked){document.form.remind2.value=b[1]; document.form.remind2id.value=1}if(document.form.remind3id.value>1||!document.form.remind3id.checked){document.form.remind3.value=b[1];document.form.remind3id.value=1}if(document.form.remind4id.value>1||!document.form.remind4id.checked){document.form.remind4.value=b[1];document.form.remind4id.value=1}}else if(a=="week"&&i<8){document.form.remind1select.options[i-1]=new Option(b[i],b[i]);document.form.remind2select.options[i-1]=new Option(b[i],b[i]);document.form.remind3select.options[i-1]=new Option(b[i], b[i]);document.form.remind4select.options[i-1]=new Option(b[i],b[i]);if(document.form.remind1id.value>7||!document.form.remind1id.checked){document.form.remind1.value=b[7];document.form.remind1id.value=7}if(document.form.remind2id.value>7||!document.form.remind2id.checked){document.form.remind2.value=b[6];document.form.remind2id.value=6}if(document.form.remind3id.value>7||!document.form.remind3id.checked){document.form.remind3.value=b[2];document.form.remind3id.value=2}if(document.form.remind4id.value> 7||!document.form.remind4id.checked){document.form.remind4.value=b[1];document.form.remind4id.value=1}}else if(a=="month"&&i<11){document.form.remind1select.options[i-1]=new Option(b[i],b[i]);document.form.remind2select.options[i-1]=new Option(b[i],b[i]);document.form.remind3select.options[i-1]=new Option(b[i],b[i]);document.form.remind4select.options[i-1]=new Option(b[i],b[i]);if(document.form.remind1id.value>10||!document.form.remind1id.checked){document.form.remind1.value=b[10];document.form.remind1id.value= 10}if(document.form.remind2id.value>10||!document.form.remind2id.checked){document.form.remind2.value=b[8];document.form.remind2id.value=8}if(document.form.remind3id.value>10||!document.form.remind3id.checked){document.form.remind3.value=b[2];document.form.remind3id.value=2}if(document.form.remind4id.value>10||!document.form.remind4id.checked){document.form.remind4.value=b[1];document.form.remind4id.value=1}}else if(a==""){document.form.remind1select.options[i-1]=new Option(b[i],b[i]);document.form.remind2select.options[i- 1]=new Option(b[i],b[i]);document.form.remind3select.options[i-1]=new Option(b[i],b[i]);document.form.remind4select.options[i-1]=new Option(b[i],b[i]);if(!document.form.remind1id.checked){document.form.remind1.value=b[11];document.form.remind1id.value=11}if(!document.form.remind2id.checked){document.form.remind2.value=b[8];document.form.remind2id.value=8}if(!document.form.remind3id.checked){document.form.remind3.value=b[2];document.form.remind3id.value=2}if(!document.form.remind4id.checked){document.form.remind4.value= b[1];document.form.remind4id.value=1}}if(document.form.remind1id.value>0)document.form.remind1select.options[document.form.remind1id.value-1].selected="selected";if(document.form.remind2id.value>0)document.form.remind2select.options[document.form.remind2id.value-1].selected="selected";if(document.form.remind3id.value>0)document.form.remind3select.options[document.form.remind3id.value-1].selected="selected";if(document.form.remind4id.value>0)document.form.remind4select.options[document.form.remind4id.value- 1].selected="selected"}function ShowDay(a){document.getElementById("reminderbox").style.visibility="";document.getElementById("reminderbox").style.disabled="disabled";tempdatum=new Date(a);document.getElementById("startspan").value=tempdatum} function getdayevents(a){AjaxRequest.get({url:"index.php?ajax=getdayevents&"+a,onSuccess:function(a){return overlib(a.responseText,STICKY,TIMEOUT,5E3)},onError:function(a){alert("Error!\nStatusText="+a.statusText+"\nContents="+a.responseText)},groupName:getevent,onGroupBegin:function(){}})}function ghide(){document.getElementById("overDiv").style.visibility="hidden"} function getevent(a,b){var d,c;if(globalpublish==""){if(b){d=getmouseY2(b)-300;c=getmouseX2(b)-250;d<100&&(d=100);c>getcenterX()*2-750&&(c=getcenterX()*2-750);c<75&&(c=50);document.getElementById("reminderbox").style.top=d;document.getElementById("reminderbox").style.left=c}rExp=/event/gi;results=a.search(rExp);results!=-1&&getcalendar(a);AjaxRequest.get({url:"index.php?ajax=getevent&"+a,onSuccess:function(a){remindernotsaved=reminderselectedcheck=false;document.body.style.cursor="";document.body.style.pointer= "";document.getElementById("overDiv").style.visibility="hidden";if(document.getElementById("reminderbox"))document.getElementById("reminderbox").style.visibility="";document.getElementById("reminderboxcontent").innerHTML=a.responseText;document.getElementById("loadsavebox").style.visibility="hidden"},onError:function(a){alert("Error!\nStatusText="+a.statusText+"\nContents="+a.responseText)},groupName:getevent,onGroupBegin:function(){document.getElementById("loadsavebox").innerHTML="

"+globalloading+ ' L';document.getElementById("loadsavebox").style.visibility=""}})}} function geteventlist(a,b){var d,c;if(b){d=getmouseY2(b)-200;c=getmouseX2(b)-250;d<100&&(d=100);c>getcenterX()*2-750&&(c=getcenterX()*2-750);c<75&&(c=50);document.getElementById("reminderbox").style.top=d;document.getElementById("reminderbox").style.left=c}AjaxRequest.get({url:"index.php?ajax=getevent&"+a,onSuccess:function(a){remindernotsaved=reminderselectedcheck=false;document.body.style.cursor="";document.body.style.pointer="";document.getElementById("overDiv").style.visibility="hidden";document.getElementById("reminderbox").style.visibility= "";document.getElementById("reminderboxcontent").innerHTML=a.responseText;document.getElementById("loadsavebox").style.visibility="hidden"},onError:function(a){alert("Error!\nStatusText="+a.statusText+"\nContents="+a.responseText)},groupName:getevent,onGroupBegin:function(){document.getElementById("loadsavebox").style.top=d+100;document.getElementById("loadsavebox").style.left=c+200;document.getElementById("loadsavebox").innerHTML="

"+globalloading+' L'; document.getElementById("loadsavebox").style.visibility=""}})} function getcalendar(a){if(!document.getElementById("ajaxcalendar")||searchlistlocation)location="?"+a;AjaxRequest.get({url:"index.php?ajax=getcalendar&"+a,onSuccess:function(a){stopspanchanged=false;if(document.getElementById("ajaxcalendar"))document.getElementById("ajaxcalendar").style.visibility="";if(!document.getElementById("searchgroup")&&document.getElementById("ajaxcalendar"))document.getElementById("ajaxcalendar").innerHTML=a.responseText;if(document.getElementById("ajaxcalendar"))document.getElementById("ajaxcalendar").style.visibility= "";if(document.getElementById("loadsavebox"))document.getElementById("loadsavebox").style.visibility="hidden";window.clearTimeout(digitalclocktimeout);calctime()},onError:function(a){alert("Error!\nStatusText="+a.statusText+"\nContents="+a.responseText)},groupName:getcalendar,onGroupBegin:function(){if(document.getElementById("loadsavebox")){document.getElementById("loadsavebox").innerHTML="

"+globalloading+' L';document.getElementById("loadsavebox").style.visibility= ""}}})}function hidegroup(a,b,d){AjaxRequest.get({url:"index.php?groups=groups&hidegroup="+a+b,onSuccess:function(){getcalendar("day="+d+b)},onError:function(a){alert("Error!\nStatusText="+a.statusText+"\nContents="+a.responseText)},groupName:hidegroup,onGroupBegin:function(){}})} function submitForm(a,b){return AjaxRequest.submit(a,b,{onSuccess:function(a){rExp=/error/gi;results=a.responseText.search(rExp);results!=-1?getevent(a.responseText):getcalendar(a.responseText);document.getElementById("searchgroup")&&SendQuery(document.getElementById("searchlist"),document.getElementById("searchkeyword").value+"%%",document.getElementById("searchsid").value,1,document.getElementById("searchorder").value,document.getElementById("searchgroup").value+"&ascdec="+document.getElementById("searchascdec").value); if(document.getElementById("reminderbox"))document.getElementById("reminderbox").style.visibility="hidden";if(document.getElementById("datepicker"))document.getElementById("datepicker").style.visibility="hidden";if(document.getElementById("colorpicker2"))document.getElementById("colorpicker2").style.display="none";if(document.getElementById("icondiv"))document.getElementById("icondiv").style.display="none";document.body.style.cursor="";document.body.style.pointer="";if(document.quickform){document.quickform.quickaddadd.style.cursor= "";document.quickform.quickaddadd.value=globalquickaddadd;document.quickform.quickpost.value="";document.quickform.quickdate.value="";b==2&&getevent(a.responseText)}disablenewevent=false}})}function submitFormnotes(a,b){return AjaxRequest.submit(a,b,{onSuccess:function(a){rExp=/error/gi;results=a.responseText.search(rExp);if(b==2)document.getElementById("loadsavebox").style.visibility="hidden"}})} function submitGet(a){AjaxRequest.get({url:"index.php?"+a,onSuccess:function(a){rExp=/^Error/gi;results=a.responseText.search(rExp);results!=-1&&alert(a.responseText);rExp=/createnewevent/gi;results=a.responseText.search(rExp);results!=-1?submitGet(a.responseText):getcalendar(a.responseText);if(document.getElementById("reminderbox"))document.getElementById("reminderbox").style.visibility="hidden";document.body.style.cursor="";document.body.style.pointer="";if(document.form)document.form.Save.style.cursor= "";if(document.quickform){document.quickform.quickaddadd.style.cursor="";document.quickform.quickpost.disabled=false;document.quickform.quickaddadd.disabled=false;document.quickform.quickaddadd.value=globalquickaddadd;document.quickform.quickpost.value=""}disablenewevent=false}})} function dragandroponDropTodo(a,b,d,c,f,h,k,l,m){if(globaldayid!=0){i=globaldayid;document.getElementById("todo"+h).style.cursor="wait";submitGet("deletetodo="+h+"&remindtype=0&startspan="+i+"&stopspan="+i+"&remindtopic="+k+"&remindtext=&remindevery=remindeverynone&remindday=20060206&userid="+l+"&Save=Save+event&sid="+m)}else dragging&&SendQuery(document.getElementById("todolist"),0,m,4)} function dragandroponDropEvent(a,b,d,c,f,h,k,l){if(globaldayid!=0&&c!=globaldayid){disablenewevent=true;i=globaldayid;l==3?confirm(globalmoveevent)?submitGet("moveevent="+f+"&newdate="+i+"&oldday="+c+"&userid="+h+"&sid="+k):getcalendar("day="+c+"&sid="+k):submitGet("moveevent="+f+"&newdate="+i+"&oldday="+c+"&userid="+h+"&sid="+k);setTimeout("disablenewevent=false;",1E3)}else if(c==globaldayid&&!disablenewevent){disablenewevent=true;getevent("event="+f+"&day="+c+"&sid="+k,d);setTimeout("disablenewevent=false;", 1E3)}else if(dragging){disablenewevent=true;getcalendar("day="+c+"&sid="+k);setTimeout("disablenewevent=false;",1E3)}}function draginit(a,b,d,c){Drag.init(document.getElementById("e"+a+b),"",1,c);document.getElementById("e"+a+b).onDragEnd=function(c,h,k){dragandroponDropEvent(c,h,k,b,a,globaluserid,globalsidshort,d)}}function bg(a){disablenewevent=true;a.style.backgroundColor="F6A85E"}function bg2(a){disablenewevent=false;a.style.backgroundColor=""} function g(a,b,d){getevent("day="+a+"&event="+b+globalsid,d)}function tddout(a,b){globaldayid="0";a.style.backgroundColor=b}function tddover(a,b){globaldayid=b;a.style.backgroundColor="#FAD2AE"}function tddclick(a,b){disablenewevent==false&&getevent("day="+a+globalsid,b)}function gday2(a){if(globaldayid==a&&globalshowdayid!=a){getdayevents("day="+a+globalsid);globalshowdayid=a;return overlib(globalloading+"...")}}function gday(a){globalshowdayid!=a&&!dragging&&setTimeout("gday2("+a+")",400)} function CheckAll(a){for(var b=0;bgetcenterX()*2-750&&(tempX=getcenterX()*2-750);tempX<75&&(tempX=50);document.getElementById("reminderbox").style.top=tempY;document.getElementById("reminderbox").style.left=tempX}document.getElementById("loadsavebox").innerHTML="

"+globalloading+' L'; document.getElementById("loadsavebox").style.visibility="";return AjaxRequest.submit(a,b,{onSuccess:function(a){if(b=="delete"){document.getElementById("reminderbox").style.visibility="hidden";SendQuery(document.getElementById("searchlist"),document.getElementById("searchkeyword").value+"%%",document.getElementById("searchsid").value,1,document.getElementById("searchorder").value,document.getElementById("searchgroup").value+"&ascdec="+document.getElementById("searchascdec").value);document.getElementById("reminderboxcontent").innerHTML= a.responseText;document.getElementById("loadsavebox").style.visibility="hidden"}if(b=="edit"){document.getElementById("reminderbox").style.visibility="";document.getElementById("reminderboxcontent").innerHTML=a.responseText;document.getElementById("loadsavebox").style.visibility="hidden"}if(b=="update"){document.getElementById("reminderbox").style.visibility="hidden";SendQuery(document.getElementById("searchlist"),document.getElementById("searchkeyword").value+"%%",document.getElementById("searchsid").value, 1,document.getElementById("searchorder").value,document.getElementById("searchgroup").value+"&ascdec="+document.getElementById("searchascdec").value);document.getElementById("reminderboxcontent").innerHTML=a.responseText;document.getElementById("loadsavebox").style.visibility="hidden"}}})}function createdatepicker(a,b,d,c,f,h,k,l,m,n){return new free_date_picker(f,h,k,l,1,false,c,a,b,d,m,n)} function resizeCalendarmove(a){if(resizemouseStatus){if(resizemouseY==0){document.body.style.cursor="nw-resize";document.body.style.pointer="nw-resize";resizemouseY=getmouseY2(a);resizemouseX=getmouseX2(a);resizewidth=document.getElementById("calendartable2").offsetWidth;resizeheight=document.getElementById("calendartable2").offsetHeight}width=resizewidth+(getmouseX2(a)-resizemouseX);height=resizeheight+(getmouseY2(a)-resizemouseY);document.getElementById("calendartable").style.width=width+"px";document.getElementById("calendartable").style.height= height+"px";document.getElementById("calendartable3").style.width=width+"px";document.getElementById("calendartable3").style.height=height+"px";document.getElementById("calendartable2").style.width=width+"px";document.getElementById("calendartable2").style.height=height+"px"}return true} function resizeCalendarup(){if(resizemouseStatus){document.body.style.cursor="default";document.body.style.pointer="default";resizemouseStatus=false;resizeheight=resizewidth=resizemouseX=resizemouseY=0}return true} function activateDSTBox(a){switch(a){case "0":case "1":case "2":case "3":case "6":case "9":case "12":case "13":case "15":case "17":case "21":case "25":case "26":case "32":case "36":case "38":case "40":case "42":case "44":case "46":case "48":case "49":case "50":case "52":case "53":case "54":case "55":case "57":case "59":case "60":case "61":case "62":case "63":case "66":case "67":case "69":case "72":case "74":case "75":document.getElementById("dstlabel").style.display="none";break;default:document.getElementById("dstlabel").style.display= "inline"}return true};