/* FILE ARCHIVED ON 0:06:49 Aug 6, 2011 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 10:31:41 Nov 9, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ var fixedX = -1 // x position (-1 if to appear below control) var fixedY = -1 // y position (-1 if to appear below control) var imgDir = "../../img/calendar/" // directory for images ... e.g. var imgDir="/img/" var emailObj, ctlNow var bPageLoaded=false var ie=document.all var dom=document.getElementById var ns4=document.layers var agt = navigator.userAgent.toLowerCase(); var firefox = (agt.indexOf("firefox") != -1 ? true : false); var bShow = false; /* hides and objects (for IE only) */ function showEmailElement( elmID ) { if( ie ) { for( i = 0; i < document.all.tags( elmID ).length; i++ ) { obj = document.all.tags( elmID )[i]; if( !obj || !obj.offsetParent ) { continue; } obj.style.visibility = ""; } } } if (dom) { res = ( "" ); document.getElementById('mDiv').innerHTML = res; } // var styleAnchor="text-decoration:none;color:black;" // var styleLightBorder="border:1px solid #a0a0a0;" function initEmail() { if (!ns4) { emailObj=(dom)?document.getElementById("email").style : ie? document.all.email : document.email hideEmail() sHTML1="New email" document.getElementById("email_caption").innerHTML = sHTML1 bPageLoaded=true } } function hideEmail() { emailObj.visibility="hidden" showEmailElement( 'SELECT' ); showEmailElement( 'APPLET' ); } function closeEmail() { var sTmp hideEmail(); // document.form.submit(); submit after close } // Removes leading whitespaces function LTrim( value ) { var re = /\s*((\S+\s*)*)/; return value.replace(re, "$1"); } // Removes ending whitespaces function RTrim( value ) { var re = /((\s*\S+)*)\s*/; return value.replace(re, "$1"); } // Removes leading and ending whitespaces function trim( value ) { return LTrim(RTrim(value)); } function validate() { var regExp = new RegExp('^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$'); var emailSender = document.getElementById('emailSender'); var emailContent = document.getElementById('emailContent'); var errors = ''; if (emailSender == null || trim(emailSender.value) == '') { if (errors.length > 0) { errors += '\n'; } errors += 'Missing email sender.'; } else if (!trim(emailSender.value).match(regExp)) { if (errors.length > 0) { errors += '\n'; } errors += 'Bad format of sender email.'; } if (emailContent == null || trim(emailContent.value) == '') { if (errors.length > 0) { errors += '\n'; } errors += 'Missing email content.'; } if (errors != '') { alert(errors); return false; } return true; } function constructEmail (path) { sHTML = ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ // ""+ ""+ ""+ ""+ ""+ "
Sender
Subject
Content
"+ ""+ " "+ "
"; document.getElementById("email_content").innerHTML = sHTML } function popUpEmail(ctl, path) { var leftpos=0 var toppos=0 if (bPageLoaded) { if ( emailObj.visibility == "hidden" ) { aTag = ctl do { aTag = aTag.offsetParent; if (aTag!=null) { leftpos += aTag.offsetLeft; toppos += aTag.offsetTop; } } while(aTag!=null && aTag.tagName!="BODY"); emailObj.left = fixedX==-1 ? (ctl.offsetLeft + leftpos) + 'px' : fixedX; emailObj.top = fixedY==-1 ? (ctl.offsetTop + toppos + ctl.offsetHeight + 2) + 'px' : fixedY; constructEmail (path); emailObj.visibility=(dom||ie)? "visible" : "show" hideEmailElement( 'SELECT', document.getElementById("email") ); hideEmailElement( 'APPLET', document.getElementById("email") ); bShow = true; } else { hideEmail() if (ctlNow!=ctl) {popUpEmail(ctl, path)} } ctlNow = ctl } } document.onclick = function hideemail2 () { if (!bShow) { hideEmail() } bShow = false } if(ie) { document.onkeypress = function hideemail1 () { if (event.keyCode==27) { hideEmail() } } initEmail() } else { document.onkeypress = function hideemail1 (event) { if (event.keyCode==27) { hideEmail() } } // window.onload=initEmail addOnLoadEvent(initEmail); }