/*
JD's Retro Round-Up Javascript Coding
*/

function flip(imgx,imgid)
    {
      document.images[imgid].src=imgx;
	 }

function showEM(userName, emServer) 
	{
		/*
			The showEM() function displays a link to the user's e-mail address. The text of the user and e-mail server names are entered in reverse order to thwart e-mail harvesters.
		*/
		userName = stringReverse(userName); // reverse the text of the userName parameter
		emServer = stringReverse(emServer); // combine the text of the userName and the emServer
		var	emLink = userName + "@" + emServer;
		document.write("<a href='mailto:" + emLink + "'>");
		document.write(emLink);
		document.write("<\/a>");
	 }
function contactUs(userName, emServer)
	{
		userName = stringReverse(userName); // reverse the text of the userName parameter
		emServer = stringReverse(emServer); // combine the text of the userName and the emServer
		var	emLink = userName + "@" + emServer;
		document.write("<a href='mailto:" + emLink + "' id='tdn'>");
		document.write(emLink);
		document.write("<\/a>");	
	}
function stringReverse(textString) 
	{
   		if (!textString) return '';
   		var revString='';
   		for (i = textString.length-1; i>=0; i--)
       	revString+=textString.charAt(i);
   		return revString;
	}