/*#############################################################
Munging the contact email addresses. Take that, bots!
URL: http://www.addressmunger.com/
#############################################################*/


// Info

function SINzcgBPqxqugHh()
{
var ESxQGmtABcMohUW=["73","110","x66","x6f","64","68","101","112","x61","114","x74","109","101","110","x74","79","x66","69","120","x70","x61","110","115","105","x6f","x6e","46","x63","x6f","109"];
var iTcnZSHOyJDmIaS=[" "];
var AIxKXUqXqXbuNeu=["x49","x6e","102","x6f","64","68","101","112","97","x72","x74","x6d","101","110","x74","x4f","x66","69","x78","112","x61","x6e","x73","x69","111","110","46","99","111","x6d"];
document.write("<a href=\"&#x6d;&#x61;&#000105;&#x6c;&#x74;&#000111;&#58;");
for (i=0; i<ESxQGmtABcMohUW.length; i++) document.write("&#"+ESxQGmtABcMohUW[i]+";");
for (i=0; i<iTcnZSHOyJDmIaS.length; i++) document.write(iTcnZSHOyJDmIaS[i]);
document.write("\">");
for (i=0; i<AIxKXUqXqXbuNeu.length; i++) document.write("&#"+AIxKXUqXqXbuNeu[i]+";");
document.write('</a>');
}



// Mr. Nick Higgins

function IfllfpEBJixNPdX()
{
var lcgMsTnaXEXErJh=["110","105","99","107","x40","100","x65","x70","x61","x72","116","x6d","x65","110","x74","111","x66","x65","x78","112","x61","110","115","x69","111","110","x2e","x63","x6f","x6d"];
var GzgNLBSDWmZLAia=[" "];
var YMoFBATuifeeTxS=["69","109","x61","105","x6c","32","78","x69","99","x6b"];
document.write("<a href=\"&#x6d;&#x61;&#x69;&#x6c;&#x74;&#000111;&#00058;");
for (i=0; i<lcgMsTnaXEXErJh.length; i++) document.write("&#"+lcgMsTnaXEXErJh[i]+";");
for (i=0; i<GzgNLBSDWmZLAia.length; i++) document.write(GzgNLBSDWmZLAia[i]);
document.write("\">");
for (i=0; i<YMoFBATuifeeTxS.length; i++) document.write("&#"+YMoFBATuifeeTxS[i]+";");
document.write('</a>');
}



// Ms. Kristina Robbins

function IcGghrCFxPdCNee()
{
var mIiljaPxscVtVZZ=["x6b","114","105","x73","x74","x69","x6e","97","64","x64","101","x70","x61","x72","x74","x6d","101","110","116","x6f","102","x65","120","112","97","110","x73","105","x6f","110","x2e","99","x6f","109"];
var xbvoRxKnmJZTMuU=[" "];
var YWROdsvDMtmgycA=["69","x6d","97","x69","x6c","32","x4b","114","105","x73","x74","105","110","x61"];
document.write("<a href=\"&#x6d;&#x61;&#000105;&#x6c;&#116;&#x6f;&#x3a;");
for (i=0; i<mIiljaPxscVtVZZ.length; i++) document.write("&#"+mIiljaPxscVtVZZ[i]+";");
for (i=0; i<xbvoRxKnmJZTMuU.length; i++) document.write(xbvoRxKnmJZTMuU[i]);
document.write("\">");
for (i=0; i<YWROdsvDMtmgycA.length; i++) document.write("&#"+YWROdsvDMtmgycA[i]+";");
document.write('</a>');
}



// Ms. Marjan Safinia

function xLCulvsfhhXbbKz()
{
var ZCrtJVFohdFCJQR=["109","97","114","106","x40","100","x65","112","x61","x72","116","109","x65","110","116","x6f","102","101","120","112","97","110","115","x69","x6f","x6e","x2e","99","111","109"];
var gcwSYeZvQupUvBy=[" "];
var HtrkgyvinrJcHAB=["69","x6d","97","105","108","x20","x4d","x61","x72","106"];
document.write("<a href=\"&#x6d;&#00097;&#105;&#x6c;&#116;&#000111;&#00058;");
for (i=0; i<ZCrtJVFohdFCJQR.length; i++) document.write("&#"+ZCrtJVFohdFCJQR[i]+";");
for (i=0; i<gcwSYeZvQupUvBy.length; i++) document.write(gcwSYeZvQupUvBy[i]);
document.write("\">");
for (i=0; i<HtrkgyvinrJcHAB.length; i++) document.write("&#"+HtrkgyvinrJcHAB[i]+";");
document.write('</a>');
}



// Remove from Update list

function VsFajQoFeogpbbx()
{
var NrbVriKmmZsbyzv=["117","x70","100","97","x74","x65","x73","64","x64","101","112","x61","114","116","x6d","x65","110","116","x6f","102","101","x78","112","97","x6e","x73","x69","111","x6e","46","99","x6f","109"];
var OkLBhxtKhjISOxb=["?","s","u","b","j","e","c","t","=","P","l","e","a","s","e"," ","r","e","m","o","v","e"," ","m","e"," ","f","r","o","m"," ","y","o","u","r"," ","e","m","a","i","l"," ","l","i","s","t"];
var MATghXyuNGgEufS=["x45","109","x61","105","x6c","x20","117","115"];
document.write("<a href=\"&#x6d;&#x61;&#000105;&#x6c;&#116;&#000111;&#x3a;");
for (i=0; i<NrbVriKmmZsbyzv.length; i++) document.write("&#"+NrbVriKmmZsbyzv[i]+";");
for (i=0; i<OkLBhxtKhjISOxb.length; i++) document.write(OkLBhxtKhjISOxb[i]);
document.write("\">");
for (i=0; i<MATghXyuNGgEufS.length; i++) document.write("&#"+MATghXyuNGgEufS[i]+";");
document.write('</a>');
}







/*#############################################################
Form Validation
A modified version of a validation script originally developed by Apple Computer
#############################################################*/

	
// first name - required
	
function checkFirstname(strng) {
	var error = "";
	if (strng.length == 0) {
		error = "\u2022 You forgot to enter your first name.\n";
	}
return error;	  
}

// last name - required
	
function checkLastname(strng) {
	var error = "";
	if (strng.length == 0) {
		error = "\u2022 You forgot to enter your last name.\n";
	}
return error;	  
}

// email - required

function checkEmail(strng) {
var error="";
if (strng == "") {
   error = "\u2022 You didn\u2019t enter your email address.\n";
}
else {
	// make sure it's in the standard email format
	var emailFilter=/^.+@.+\..{2,3}$/;
	if (!(emailFilter.test(strng))) { 
	   error = "\u2022 You didn\u2019t enter a valid email address.\n";
	}
	else {
	// test email for illegal characters
	   var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/
		 if (strng.match(illegalChars)) {
		  error = "\u2022 The email address contains illegal characters.\n";
		  }
	   }
	}
return error;    
}

/*
// question - required

function checkQuestion(strng) {
	var error = "";
	if (strng.length == 0) {
		error = "\u2022 You forgot to enter a question.\n";
	}
return error;	  
}
*/

// run the form submissions through the wringer

function checkWholeForm(contactForm) {
	var why = "";
	why += checkFirstname(contactForm.firstname.value);	
	why += checkLastname(contactForm.lastname.value);
	why += checkEmail(contactForm.email.value);
	// why += checkQuestion(contactForm.question.value);
 
	if (why != "") {
		alert("The form didn\u2019t go through because:\n" + why);
		return false;
	} 
return true;
}

