/* ------- crypt mail data ------- */

var opn = false;

function UnCryptMailto( s ) {
	var n = 0;
	var r = "";
	for( var i = 0; i < s.length; i++) {
		n = s.charCodeAt( i );
		if( n >= 8364 ) {
			n = 128;
		}
		r += String.fromCharCode( n - 1 );
	}
	return r;
}

function linkTo_UnCryptMailto( s ) {
	location.href=UnCryptMailto( s );
}


/*------ open fixed size browser window ------*/
function openBrWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}

/*------ open hyperlink in _blank ------*/
function blank(obj) {
	obj.target = '_blank';
}

/*------ popup fade in / fade out ------*/
function fadeIn(targetID) {
	if(opn != false) {
	opn.style.display = 'none';
	}
	obj = document.getElementById(targetID);
	obj.style.display = 'block';
	opn = obj;	
}
function fadeOut(targetID) {
	obj = document.getElementById(targetID);
	obj.style.display = 'none';
}