// JavaScript Document

// Function Added by Nelson 2004.05.19
// This is used in the 'spam proofing' of e-mail addresses.  This script 
// decrypts an e-mail address that has been encrypted with a PHP routine.  
// NOTE that the charoffset MUST BE THE SAME in encryption and decryption.
//      the PHP charoffset is in commoncode.php
var a, s, n;
function UnCrypt(s) {
	charoffset = 4;  // character offset must be the SAME in encryption and decryption routines.
	r='';
	for(i=0;i<s.length;i++){
		n=s.charCodeAt(i); 
		if(n>=8364) {n = 128;} r += String.fromCharCode( n - charoffset ); 
	}
	return r;
}

