//This code takes an integer and returns an email address to hide email from webcrawlers
/* Precondition: thelink is a "me" reference for generic labeling 
		intWho initialized to an int for each employee */
function setEmail(thelink, intWho){
	var email = "";
	var name = "";
	
	//Each user has a number which gives his/her name and email address back to calling file.
	//Calling file is: <a href="#" onclick="setEmail(this, 1);">Dan Burk</h></A> 
		//1 = dan burk
		//2 = sue burk
		//3 = linda williams
		//4 = janette scherf
		//5 = allyssa burk
		//6 = chris remaley
		
	switch(intWho){
		case 1:
			email = "mailto:danb@alleghenyrealestate.com";
			name = "Dan Burk";
		break;
		case 2:
			email = "mailto:sueb@alleghenyrealestate.com";
			name = "Sue Burk";
		break;
		case 3:
			email = "mailto:lindaw@alleghenyrealestate.com";
			name = "Linda Williams";
		break;
		case 4:
			email = "mailto:janettes@alleghenyrealestate.com";
			name = "Janette Scherf";
		break;
		case 5:
			email = "mailto:allyssa@alleghenyrealestate.com";
			name = "Allyssa Burk";
		break;
		case 6:
			email = "ChrisR@AlleghenyRealestate.com";
			name = "Chris Remaley";
		default:
			email = "error";
			name = "error";
		break;
	}
	
	
	thelink.href = email;
	thelink.text = name;
}