// Arguments:
//    1st: Text to display for anchor
//    2nd..Nth:  components of email before @ that are separated by .  (ex. "Joe","Smith" for Joe.Smith)
//    N+1:  "_HOST_"  used to indicate that N+2 argument will be hostname
//    N+2...: Components of hostname (ex. "hotmail","com")
function printemail() {
	var printdot=0;
    document.write('<A href="'); document.write('m');  document.write('ailto'); document.write(':');
	for( var i = 1; i < arguments.length; i++ ) {
	    var curarg=arguments[i];
        if ( curarg == "_HOST_" ) { document.write('@'); printdot=0; }
		else {
    		if ( printdot ) { document.write('.'); }
	    	else { printdot=1; }
            document.write(curarg);
         }
	}
	document.writeln('">' + arguments[0] + '</A>');
}