<!--
function MailingList()
	{
	document.frmMailingList.Email.value='-Your email address-';
	document.frmMailingList.Email.select();
	}
function isEmail(str)
	{
    var atChk, atDupChk, dot, dotErr, dotAfterAt, commaChk, semiColonChk
   	atChk = ( str.indexOf("@") < 1 || str.lastIndexOf("@") == ( str.length-1 ) ); // this checks whether the @ symbol exists and is not the 1st or last character 
   	atDupChk = ( str.indexOf("@") != str.lastIndexOf("@") ); // this checks that there is only one @ symbol 
   	dot = ( str.indexOf(".") < 1 || str.lastIndexOf(".") == ( str.length-1 ) ); // this checks whether the dot exists and is not the 1st or last character 
   	dotErr = ( str.indexOf("..") != -1 || str.indexOf("@.") != -1 || str.indexOf(".@") != -1 ); // this checks that the user hasn't entered two dots together by mistake or a dot and @ together 
   	dotAfterAt = ( str.indexOf(".",str.indexOf("@")+1) == -1 ); // this checks that there is a dot after the @ symbol 
   	commaChk = ( str.indexOf(",") != -1 ); // this checks that there isn't a comma in the address 
   	semiColonChk = ( str.indexOf(";") != -1 ); // this checks that there isn't a semi-colon in the address 
   	if( ( str != "" ) && ( atChk || atDupChk || dot || dotErr || dotAfterAt || commaChk || semiColonChk ) ) 
   		{ // there is an error with the e-mail address 
          return false;
   		}
    return true;
   	}

function ValidateMailingList()
	{
	var theform = document.frmMailingList;
	var msg;
	msg ="";
		
	if(theform.Email.value == "")
		{
		msg += "Please enter your email address." + "\n";
		}				
	if(!isEmail(theform.Email.value))
		{
		msg += "The email address you entered is invalid. Please try again." + "\n";
		}
	if(msg != "")
		{
		alert(msg);
		theform.Email.value = "-Your email address-";
		return false;
		}
    else
		{
		return true;
		}
	theform.submit();
	return;
	}	

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		df2_12_over = newImage("/images/df2_12-over.jpg");
		df2_13_over = newImage("/images/df2_13-over.jpg");
		df2_14_over = newImage("/images/df2_14-over.jpg");
		df2_15_over = newImage("/images/df2_15-over.jpg");
		df2_16_over = newImage("/images/df2_16-over.jpg");
		df2_17_over = newImage("/images/df2_17-over.jpg");
		df2_18_over = newImage("/images/df2_18-over.jpg");
		df2_19_over = newImage("/images/df2_19-over.jpg");
		preloadFlag = true;
	}
}

// -->
