function crypt_email( s, css_class, img, img_width, img_height, text_orig ) {

	var r = "" ;

	for( i = 0; i < s.length; i++ ) {

		n = s.charCodeAt( i ) ;

		if ( n >= 8364 ) {

			n = 128 ;

		}

		r += String.fromCharCode( n - 4 ) ;

	}
	if ( !text_orig ) {
		text_orig = r ;
	} else {
	
		var k = "" ;
		for( n = 0; n < text_orig.length; n++ ) {

			l = text_orig.charCodeAt( n ) ;
	
			if ( l >= 8364 ) {
	
				l = 128 ;
	
			}
	
			k += String.fromCharCode( l - 4 ) ;

		}
		text_orig = k ;
	}
	
	if ( img )
		return '<a href="mailto:' + r + '" class="' + css_class + '" title="' + r + '"><img src="' + img + '" width="' + img_width + '" height="' + img_height + '" alt="' + text_orig + '" /></a>';
	else
		return '<a href="mailto:' + r + '" class="' + css_class + '" title="' + r + '">' + text_orig + '</a>';

}

function crypt_link( s, css_class, img, img_width, img_height, text_orig ) {

	var r = "" ;

	for( i = 0; i < s.length; i++ ) {

		n = s.charCodeAt( i ) ;

		if ( n >= 8364 ) {

			n = 128 ;

		}

		r += String.fromCharCode( n - 4 ) ;

	}
	
	if ( img )
		return '<a href="' + r + '" class="' + css_class + '" title="' + text_orig + '"><img src="' + img + '" width="' + img_width + '" height="' + img_height + '" alt="' + text_orig + '" /></a>';
	else
		return '<a href="' + r + '" class="' + css_class + '" title="' + text_orig + '">' + text_orig + '</a>';

} 