/////////////////////////////////////////////////////////////////////////
//	
//	THIS FILE REQUIRES:
//		1)	objects.js
//
//	THE FILE(S) SPECIFIED ABOVE MUST BE INCLUDED AS AN EXTERNAL JS REFERENCE
//	IN THE HTML DOCUMENTS, IN THE ORDER SPECIFIED.
//


/////////////////////////////////////////////////////////////////////////////
//	PROGRAMMER:		Mark Herbert
//	DESCRIPTION:	This function scrambles an email address so no robots
//					can grab our plain text email addresses while indexing
//					our page
//
//	PARAMETERS:	
//					EMT:	0=Customer Service Email, 1=Control Room Email
//					Class:	CSS class
//					Part:	true=two line address displayed, flase=one line address displayed
//
function EMS(EMT, Part) {
	// Determine what email address to write
	if (EMT == 0) {
		var b = 'customerservice'
	} else if (EMT == 1) {
		var b = 'controlroom'
	}

	var c = b

	// Split the email address into two lines
	if (Part) {
		c += '<br>'
	}

	var Domain = GetDomain();
	
	var a = '<a  href=\"mai'
	var e = '@'
	e += Domain;
 	var d = '">';
	a += 'lto:';
	var f = '</a>';

	// Write the email address to the page
	oDoc.write(a + b + e + d + c + e + f);
}
