<!-- Hide from old technology

// ====================
// MACROMEDIA FUNCTIONS
// ====================

// ==============================================
// FUNCTION: isEmpty()
// PURPOSE:  Tests whether a variable is blank
// ==============================================

function isEmpty(str){
    strRE = new RegExp( );
    strRE.compile( '^[\s ]*$', 'gi' );
    return strRE.test( str.value );
}

// ==================================
// FUNCTION: popUp()
// PURPOSE:  Displays a pop-up window
// ==================================

function popUp(url, windowWidth, windowHeight, features) {
	var allFeatures = "width=" + windowWidth + ",height=" + windowHeight + "," + features;
	
	// Find out how big the screen is:
	var screenWidth  = window.screen.availWidth;
	var screenHeight = window.screen.availHeight;
	
	// Get left position:
	var leftPoint = parseInt(screenWidth / 2) - parseInt(windowWidth / 2);
	
	// Get top position:
	var topPoint = parseInt(screenHeight / 2) - parseInt(windowHeight / 2);
	
	// alert("url is: " + url);
	// alert("windowWidth is: " + windowWidth);
	// alert("windowHeight is: " + windowHeight);
	// alert("features is: " + features);
	// alert("allFeatures is: " + allFeatures);
	// alert("screenWidth is: " + screenWidth);
	// alert("screenHeight is: " + screenHeight);

	var newWindow = window.open(url, "", allFeatures);
	newWindow.moveTo(leftPoint, topPoint);
	newWindow.focus();
	
	return true;
}

function isEmail(strValue) {
  var objRE = /^[\w-\.\']{1,}\@([\da-zA-Z-]{1,}\.){1,}[\da-zA-Z-]{2,}$/;
  return (strValue != '' && objRE.test(strValue));
}

// ========================================================
// FUNCTION: validate_maillist_form()
// PURPOSE:  Validates form fields for mailling list signup
// ========================================================

function validate_maillist_form() {
	if ( isEmpty(document.maillist.first_name) ) {
		alert("Please enter your first name");
		document.maillist.first_name.focus();
		return false;
	}
	if ( isEmpty(document.maillist.last_name) ) {
		alert("Please enter your last name");
		document.maillist.last_name.focus();
		return false;
	}
	/* if ( isEmpty(document.maillist.address_line1) ) {
		alert("Please enter your street address");
		document.maillist.address_line1.focus();
		return false;
	}
  if ( isEmpty(document.maillist.city) ) {
		alert("Please enter a city");
		document.maillist.city.focus();
		return false;
	}
	if ( isEmpty(document.maillist.state) ) {
		alert("Please select a state/province");
		document.maillist.state.focus();
		return false;
	}
	if ( isEmpty(document.maillist.zip) ) {
		alert("Please enter a postal code");
		document.maillist.zip.focus();
		return false;
	}
	if ( isEmpty(document.maillist.country) ) {
		alert("Please select a country");
		document.maillist.country.focus();
		return false;
	} */
	if ( isEmpty(document.maillist.email) ) {
		alert("Please enter your email address");
		document.maillist.email.focus();
		return false;
	}
	if (isEmail(document.maillist.email.value) == false){
		alert("Please enter a properly formatted email address");
		document.maillist.email.focus();
		return false
	}
	/* if ( isEmpty(document.maillist.how_heard) ) {
		alert("Please tell us how you heard about us");
		document.maillist.how_heard.focus();
		return false;
	} */
	return true;
}

// Stop hiding -->