// JavaScript Document
//In the following function, if you don't supply the lnk variable, it just reprints the email address at the link

function generate_address( un, hn, sty, lnk ) {
        var atsign = "&#64;";
        var addr = un + atsign + hn;
        if(!lnk)
		{ document.write( 
          "<" + "a" + " class=" + sty + " href=" + "mail" + "to:" + addr + ">" +
          addr + "</a>");      }
		else {
		document.write( 
          "<" + "a" + " class=" + sty + " href=" + "mail" + "to:" + addr + ">" +
          lnk + "</a>");  }
		}
		
//The above code combines both of the below functions
function generate_address1( un, hn, sty ) 
{		var atsign = "&#64;";
        var addr = un + atsign + hn;
        document.write( 
          "<" + "a" + " class=" + sty + " href=" + "mail" + "to:" + addr + ">" +
          addr +  "</a>"); 
}

 
function generate_address2( un, hn, sty, lnk ) 
{       var atsign = "&#64;";
        var addr = un + atsign + hn;
        document.write( 
          "<" + "a" + " class=" + sty + " href=" + "mail" + "to:" + addr + ">" +
          lnk + "</a>");      
}
