<!-- Hide script contents from old browsers
function doEmail(email,key,subject,tooltip)
{
    var newEmail = "";
    for ( i = 0; i < email.length; i++ )
    {
        newEmail += String.fromCharCode(email.charCodeAt(i) ^ key);
    }
    
    document.write("<a ");
    if ( tooltip != null )
    {
    	document.write("title=\"", tooltip, "\" ")
    }
    document.write("href=\"mailto:", newEmail);
    if ( subject != null )
    {
    	document.write("?subject=", subject);
    }
    document.write("\">", newEmail, "</a>");
}
// End hide contents from old browsers -->



// Popup functions below:
// Ref: HTML Code Tutorial - Popup Windows
//   		htmlcodetutorial.com/linking/linking_famsupp_70.html

 
<!-- Hide script contents from old browsers
function popup(linkurl, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(linkurl) == 'string')
   href=linkurl;
else
   href=linkurl.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=no');
return false;
}
// End hide contents from old browsers -->



<!-- Hide script contents from old browsers
function targetopener(linkurl, closeme, closeonly)
{
if (! (window.focus && window.opener))return true;
window.opener.focus();
if (! closeonly)window.opener.location.href=linkurl.href;
if (closeme)window.close();
return false;
}
// End hide contents from old browsers -->



<!-- Hide script contents from old browsers
var popupWindow = null;
function positionedPopup(linkurl,winName,pixwide,pixhigh,pixtop,pixleft,scroll)
{
settings =
'height='+pixhigh+',width='+pixwide+',top='+pixtop+',left='+pixleft+',scrollbars='+scroll+',resizable'
popupWindow = window.open(linkurl,winName,settings)
}
// Eg:
// <a href="http://www.quackit.com/common/link_builder.cfm" onclick="positionedPopup(this.href,'myWindow','500','300','100','200','yes');return false">Positioned Popup</a></p>
// End hide contents from old browsers -->



<!-- Hide script contents from old browsers
var popupWindow = null;
function centeredPopup(linkurl,winName,pixwide,pixhigh,scroll)
{
LeftPosition = (screen.width) ? (screen.width-pixwide)/2 : 0;
TopPosition = (screen.height) ? (screen.height-pixhigh)/2 : 0;
settings =
'height='+pixhigh+',width='+pixwide+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
popupWindow = window.open(linkurl,winName,settings)
}
// Eg:
// <a href="http://www.quackit.com/common/link_builder.cfm" onclick="centeredPopup(this.href,'myWindow','500','300','yes');return false">Centered Popup</a></p>
// End hide contents from old browsers -->

