

/* decloaking email addresses*/
function decloak(CloakedEmail, subject, name) {
// Magic to replace # with @ and $ with .
var thing
thing = CloakedEmail.replace('#','@').replace(/\$/g,'.')+ subject;
thing = '<a href="mailto:'+thing+'" title="Mail Me">'+name+'</'+'a>';
return thing;
}

/*
Then, whenever you wish to insert an e-mail link, you use this code:

<script language="JavaScript" type="text/javascript">
document.write( decloak('email#domain$com','Subject%20Line%20for%20e-mail&body=Dear%20Recipient,','This Pops Up'))
</script>

It's easy to use, and is versatile enough to re used with any address, subject line, body content, 
Tool-tip Text and is utterly uncrackable by Spambots.

All you do is replace @ with # and . with $ in the address, and make sure that spaces in the 
Subject Line, and Body are replaced with %20


*/

var newWin = null; 
function popUp(strURL, strType, strHeight, strWidth) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="console") 
   strOptions="resizable,height="+strHeight+",width="+strWidth; 
 if (strType=="fixed") 
   strOptions="status,height="+ strHeight+",width="+strWidth; 
 if (strType=="elastic") 
   strOptions="toolbar,menubar,scrollbars,"+"resizable,location,height="+strHeight+",width="+strWidth; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}