function setMailtoLinks() { if (!document.getElementsByTagName) { return; } ar_spans = document.getElementsByTagName('span'); for (i=0; i' + text + ''; } } } function showImage(dapic) { window.open("imagepopup.php?imageurl=" + escape(dapic.href), "_blank", "width=320,height=320,resizable=yes"); return false; } function imagePopup(imageurl) { window.open("imagepopup.php?imageurl=" + escape(imageurl), "_blank", "width=320,height=320,resizable=yes"); } function centerwin() { NS = (navigator.appName=="Netscape")?true:false; iWidth = (NS)?window.innerWidth:document.body.clientWidth; iHeight = (NS)?window.innerHeight:document.body.clientHeight; dX = (NS)?window.screenX:window.screenLeft; dY = (NS)?window.screenY:window.screenTop; dX = ((screen.width - iWidth)/2) - dX; dY = ((screen.height - iHeight)/2) - dY; window.moveBy(dX, dY); self.focus(); } function toggle(obj) { var el = document.getElementById(obj); if (el.style.display != 'none') el.style.display = 'none'; else el.style.display = ''; }