// JavaScript Document

// Function to display an email address while still protecting it.
function addContact(preStuff, who, where, ext, postStuff) {
	
	// Declare variables.
	var fullEmail;
	var fullHTML;
	
	// Assemble the email address.
	fullEmail = who + "@";
	fullEmail += where;
	fullEmail += ".";
	fullEmail += ext;
	
	// Create the HTML to insert.
	fullHTML = preStuff;
	fullHTML += "<a href=\"mailto:" + fullEmail + "\">" + fullEmail + "</a>";
	fullHTML += postStuff;
	
	// Write out the HTML code.
	document.write(fullHTML);
	
}

