function ConfirmDelete(A,C,B){if(confirm(B)){document.location=A;return true}C.value=""}function MM_preloadImages(){var D=document;if(D.images){if(!D.MM_p){D.MM_p=new Array()}var C,B=D.MM_p.length,A=MM_preloadImages.arguments;for(C=0;C<A.length;C++){if(A[C].indexOf("#")!=0){D.MM_p[B]=new Image;D.MM_p[B++].src=A[C]}}}}function MM_swapImgRestore(){var C,A,B=document.MM_sr;for(C=0;B&&C<B.length&&(A=B[C])&&A.oSrc;C++){A.src=A.oSrc}}function MM_findObj(E,D){var C,B,A;if(!D){D=document}if((C=E.indexOf("?"))>0&&parent.frames.length){D=parent.frames[E.substring(C+1)].document;E=E.substring(0,C)}if(!(A=D[E])&&D.all){A=D.all[E]}for(B=0;!A&&B<D.forms.length;B++){A=D.forms[B][E]}for(B=0;!A&&D.layers&&B<D.layers.length;B++){A=MM_findObj(E,D.layers[B].document)}if(!A&&D.getElementById){A=D.getElementById(E)}return A}function MM_swapImage(){var D,C=0,A,B=MM_swapImage.arguments;document.MM_sr=new Array;for(D=0;D<(B.length-2);D+=3){if((A=MM_findObj(B[D]))!=null){document.MM_sr[C++]=A;if(!A.oSrc){A.oSrc=A.src}A.src=B[D+2]}}}function wait(A){d=new Date();while(1){mill=new Date();diff=mill-d;if(diff>A){break}}}function trim(A){l=A.length;while((l>0)&&(A.substring(l-1,l)==" ")){l--}if(l!=A.length){A=A.substring(0,l);l=A.length}i=0;while((i<l)&&(A.substring(i,i+1)==" ")){i++}if(i>0){A=A.substring(i,l)}return A}function visibilityToggle(B){var A=document.getElementById(B).style;if(A.visibility=="hidden"){A.visibility="visible"}else{if(A.visibility=="visible"){A.visibility="hidden"}}}function ietruebody(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function ddrivetip(B,A,C){if(ns6||ie){if(typeof A!="undefined"){tipobj.style.width=A+"px"}if(typeof C!="undefined"&&C!=""){tipobj.style.backgroundColor=C}tipobj.innerHTML=B;enabletip=true;return false}}function positiontip(H){if(enabletip){var C=false;var D=(ns6)?H.pageX:event.clientX+ietruebody().scrollLeft;var B=(ns6)?H.pageY:event.clientY+ietruebody().scrollTop;var G=ie&&!window.opera?ietruebody().clientWidth:window.innerWidth-20;var A=ie&&!window.opera?ietruebody().clientHeight:window.innerHeight-20;var F=ie&&!window.opera?G-event.clientX-offsetfromcursorX:G-H.clientX-offsetfromcursorX;var E=ie&&!window.opera?A-event.clientY-offsetfromcursorY:A-H.clientY-offsetfromcursorY;var I=(offsetfromcursorX<0)?offsetfromcursorX*(-1):-1000;if(F<tipobj.offsetWidth){tipobj.style.left=D-tipobj.offsetWidth+"px";C=true}else{if(D<I){tipobj.style.left="5px"}else{tipobj.style.left=D+offsetfromcursorX-offsetdivfrompointerX+"px";pointerobj.style.left=D+offsetfromcursorX+"px"}}if(E<tipobj.offsetHeight){tipobj.style.top=B-tipobj.offsetHeight-offsetfromcursorY+"px";C=true}else{tipobj.style.top=B+offsetfromcursorY+offsetdivfrompointerY+"px";pointerobj.style.top=B+offsetfromcursorY+"px"}tipobj.style.visibility="visible";if(!C){pointerobj.style.visibility="visible"}else{pointerobj.style.visibility="hidden"}}}function hideddrivetip(){if(ns6||ie){enabletip=false;tipobj.style.visibility="hidden";pointerobj.style.visibility="hidden";tipobj.style.left="-1000px";tipobj.style.backgroundColor="";tipobj.style.width=""}}function loadTextFromURL(B){var A="";dojo.xhrGet({url:B,sync:true,preventCache:true,load:function(C){A=C}});return A}function loadTextFromURLWaitingMessage(B){var A="";var C=dojo.byId("loadingMessage");dojo.style(C,"visibility","visible");dojo.xhrGet({url:B,sync:false,preventCache:true,load:function(D){alert(D);dojo.style(C,"visibility","hidden")}});return A}function AjaxGet(fsURL,sSuccesCode,sErrCode){dojo.xhrGet({url:fsURL,handleAs:"text",preventCache:true,load:function(data){eval(sSuccesCode)},error:function(error){eval(sErrCode)}})}function AjaxPost(fsURL,fsFormName,sSuccesMSG,sErrMSG,sSuccesCode,sErrCode){dojo.xhrPost({url:fsURL,form:fsFormName,load:function(data){dojo.byId("AjaxPostResponse").innerHTML='<span class="SuccessMsg">'+sSuccesMSG+"</span>";eval(sSuccesCode)},error:function(error){dojo.byId("AjaxPostResponse").innerHTML='<span class="ErrorMsg">'+sErrMSG+"</span>";eval(sErrCode)}})};function checkAll(field){for (i = 0; i < field.length; i++)field[i].checked = true ;}function uncheckAll(field){for (i = 0; i < field.length; i++)field[i].checked = false ;}
