function validateEmailFormat(eml) {
	if (eml.indexOf("@") == -1 || eml.indexOf(".") == -1) return false;
	else return true;
}

function validateContactUsForm(theForm) {
	val = trim(theForm.Email.value);
	if (!val.length) { alert('Please enter your email address'); return false; }
	else if (!validateEmailFormat(val)) {
		alert('Your email address does not appear to be formatted correctly. Please try again.');
		return false;
	}

}

function init() {
	// Put the cursor in the first available form field.
	if (!document.getElementById) return;
	if (!document.getElementById('FirstName')) return;
	document.getElementById('FirstName').focus();
}

/* The followuing works for IE AND Firefox */
window.onload = function() { init(); }
