var confirmation="";function setConfirmation(A){confirmation=A}function getConfirmation(){return confirmation}function confirmAction(C){var A=getConfirmation();var B;if(A.length>0){setConfirmation("");B=confirm(A)}else{B=true}return B}function checkAppletVersion(D,C,B){var A=document.applets[C].version;if(typeof A=="undefined"){A=javaobjecttostring(document.applets[C].GetVersion())}if(A!=B&&!top.appletReloading){top.appletReloading=true;if(confirm("Your cached copy of the "+D+" Java applets are out of date.\nPress OK to obtain the latest code")){top.location.reload(true)}}}function tellMasterClose(C,D,B){if(checkUnsavedChanges(D,B)){if(top.getMasterURL){var A=top.getMasterURL();top.frames[C].location=A+"?action=dialogclose"}}}var pageloaded=true;function displayloading(D,C,G,F,E){var A;var B;if(D){A=crawltotop()}else{A=top}A=A.frames[G];if(A&&(B=A.frames["viewer"])){if(C){B.pageloaded=false}if(!B.pageloaded&&!C){setsummarybackgroundcolour(G,"");if(F!=""){E="<br><table width=100% class=\"loading\"><tr><td width=40%></td><td width=60%><img src=\""+F+"\" border=0>&nbsp;"+E+"</td></tr></table><br>"}else{E="<br><table width=100% class=\"loading\"><tr><td width=40%></td><td width=60%>"+E+"</td></tr></table><br>"}loadsummary(D,G,E,"","","",false)}if(C&&!B.pageloaded){command="displayloading("+D+", false, '"+G+"', '"+F+"', '"+E+"')";setTimeout(command,500)}}}function loadimages(F,G,I){var H=G.split(";");var D;var B;var A;var E;for(var C=0;C<H.length;C++){D=H[C].split(":");if(D.length>1){B=D[0];A=D[1];E=F.getElementById(B);if(E){if(I){filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\""+A+"\", sizingMethod=\"scale\");";E.runtimeStyle.filter=filter}else{E.src=A}}}}}function loadsummary(L,H,E,K,A,C,D){var B=true;var I;var J;if(L){I=crawltotop()}else{I=top}I=I.frames[H];if(I&&(J=I.frames["viewer"])){if(J.g_msgmenu){if(C!=""){J.g_msgmenu.reload(C);J.g_msgmenu.draw();if(!J.g_msgmenu.visible()){J.g_msgmenu.show()}}else{if(J.g_msgmenu.visible()){J.g_msgmenu.hide()}}}var F=J.document.getElementById("header");if(F){F.innerHTML=E;loadimages(J.document,A,true)}var M;if(!(M=J.frames["summary"])){M=J.document.getElementById("summary");if(M){M=M.contentWindow}}if(M){var G=M.document;if(G){B=false;G.open();G.write(K);G.close();command="viewerResizeHandler("+L+", '"+H+"')";setTimeout(command,0);viewerResizeHandler(L,H)}}J.pageloaded=D}if(B){E=E.replace(/\n/g,"");K=K.replace(/\n/g,"");command="loadsummary("+L+", '"+H+"', '"+E+"', '"+K+"', '"+A+"', '"+C+"', "+D+")";setTimeout(command,100)}}function setsummarybackgroundcolour(G,E){var C=true;var B=crawltotop();var D;var F;var A;B=B.frames[G];if(B&&(D=B.frames["viewer"])&&(F=D.document)&&(A=F.body)){C=false;A.style.background=E}if(C){command="setsummarybackgroundcolour('"+G+"', '"+E+"')";setTimeout(command,100)}}function viewerResizeHandler(L,E){var B=true;var I;var J;var D;var G;if(L){I=crawltotop()}else{I=top}I=I.frames[E];if(I&&(J=I.frames["viewer"])&&(D=J.document)&&(G=D.body)){B=false;var K=G.clientHeight;var F=G.clientWidth;var H=getDocumentElementYPos(D,"summary");var C=getDocumentElementById(D,"summary");if(C){var A=K-H;if(A<0){A=0}if(F<2){F=2}C.style.height=A;C.style.width=F-2}var M;if(!(M=J.frames["summary"])){M=J.document.getElementById("summary");if(M){M=M.contentWindow}}if(M&&M.document&&M.document.body){M.document.body.scrollTop=0}}if(B){command="viewerResizeHandler('"+E+"')";setTimeout(command,100)}return }function refreshmail(C,A){var B=crawltotop();var F=true;if(B.g_pluginmanager){F=B.g_pluginmanager.refreshAllowed()}if(F){var E=0;if(B.autocompleteinit){E=1}var D="/webmail/masterwindow.mml?action=refreshtimer";D+="&autocompleteinit="+E;D=doMainMenuCallback("",D,C,A,false,0,false);location=D}}function doShowMessage(G,B,A,C,F,D){var J=top.frames[G].document;if(J){var H=J.getElementById("systemmsg");if(H){var I="<table width=100% height=100% cellspacing=0 class='"+D+"'>";if(A){I=I+"<tr><td width=1%><img id='systemimage' src='"+C+"'></td><td>"+B+"</td></tr>"}else{I=I+"<tr><td width=1%><img id='systemimage' src='"+F+"'></td><td>"+B+"</td></tr>"}I=I+"</table>";H.innerHTML=I;if(A){var E=J.getElementById("systemimage");if(E){E.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\""+F+"\", sizingMethod=\"scale\");"}}}}}function doShowAdminMessage(E,A,G,B){var D=top.frames[E].document;if(D){var C=D.getElementById("systemmsg");if(C){var F="<table width=100% height=100% cellspacing=0 "+B+" >";F=F+"<tr>";if(G!=""){F=F+"<td width=1%><img src='"+G+"'></td>"}F=F+"<td><nobr><font face=arial size=1>"+A+"</font></nobr></td>";F=F+"</tr>";F=F+"</table>";C.innerHTML=F}}}function closeattachwindow(B){var A=top.frames[B];if(!A){A=top.frames[1]}A.attachwindow.close()}function imcontact(D,A){var C;if(C=top.frames[D]){var B=C.document.URL.split("?")[0];C.location=B+"?action=imsender&senderaddress="+A}}function checkEntryCached(A,J,C,K,N){var B=false;var F=clientcachebuildindex(N);var D=clientcacheget(A,F,J);if(D!=null&&D.init){var E=D.header;var H=D.summary;var I=D.images;var L=D.contextbuttons;var G=false;var M=false;if(C){if(E!=undefined&&H!=undefined&&I!=undefined){G=true}}else{G=true}if(K){if(L!=undefined){M=true}}else{M=true}if(G&&M){B=true}}return B}function loadEntryFromCache(O,B,E,I,J,F){var D="";var H=clientcachebuildindex(F);var M=clientcacheget(O,H,B);if(M!=null&&M.init){var Q=M.header;var G=M.summary;var K=M.images;var C=M.contextbuttons;var A=M.msgbuttons;var P=M.color;if(Q!=undefined&&G!=undefined&&K!=undefined){if(A==undefined){A=""}loadsummary(true,E,Q,G,K,A,true)}if(P!=undefined){setsummarybackgroundcolour(E,P)}if(C!=undefined){var S=top.frames[I];if(S&&S.contextminimenu){S.contextminimenu.reload(C)}}if(J){var N;var L;if((N=top.frames[E])&&(L=N.frames["viewer"])){var R=L.document.getElementById("imindicator");if(R){D=D+"&changeimmsg="+urlencode(F)}}}}return D}function getStyle(B,A){if(B.currentStyle){return B.currentStyle[A]}else{if(window.getComputedStyle){return window.getComputedStyle(B,null)[A]}}return""}function isMouseLeaveOrEnter(C,B){var A=C.relatedTarget?C.relatedTarget:C.type=="mouseout"?C.toElement:C.fromElement;while(A&&A!=B){A=A.parentNode}return(A!=B)}function setSelectorTitle(G,F){var A=crawltotop();var C;var B;var E;if((C=A.frames[G])&&(B=C.frames["selector"])&&(E=B.document)){var D=E.getElementById("selectortitle");if(D){D.innerHTML=F}}else{setTimeout(function(){setSelectorTitle(G,F)},1000)}}function promptUpdateEvent(F,E){var B=0;if(F!=-1){var C=F.split(":");if(C.length>=3){var A=C[2];var D=C[3];if(A=="1"&&D=="1"){if(confirm(E)){B=1}}}}return B}function warnUpdateEvent(C,J,E,K){var A=true;var G=false;var H=false;if(C!=-1){var L=C.split(":");if(L.length>=4){var B=L[2];var I=L[3];var F=L[4];var D=1<<J;if(B!="1"){A=false}if(I=="1"){H=true}if(F&D){G=true}}}if(G){alertuser(E)}if(!A&&!G&&H){alertuser(K)}}
