//****************************************************************
//The function displays a clickable email based on the parameters
//passed to it.  Most email bots should not be able to extract the
//address if this function is used (I think).
//Parameters...
//name		 example	default			required
//------------------------------------------------------------
//address	 amueller	none			yes
//domain	 yahoo		yesvirginia		no
//ext		 com		org			no
//displayedText	 email me!	address@domain.ext	no
//****************************************************************/
function WriteEmailAddress(address,domain,ext,displayedText) {
	if (address=="") return;
	
	var first = 'ma';
	var second = 'il';
	var third = 'to:';
	
	if ((domain=="") || (ext=="")) {
		var domain = 'YesVirginia';
		var ext = 'org';
	}	
	 
	if (displayedText=="") {
		var displayedText = address + '&#64' + domain + '.' + ext;
	}
	
	document.write('<a href="');
	document.write(first+second+third);
	document.write(address);
	document.write('&#64;');
	document.write(domain);
	document.write('.');
	document.write(ext); 
	document.write('">');  
	document.write(displayedText);
	document.write('</a>'); 
}
