<!--
// <![CDATA[
function Property(k,v){
	this.key = k;
	this.value = v;
}

function validateMailSubmit(form){
	var elementsToValidate = new Array();
	elementsToValidate[0] = new Property(form.name,"Name");
	elementsToValidate[1] = new Property(form.subject,"Subject");
	elementsToValidate[2] = new Property(form.message,"Message");


	for (var i=0; i<elementsToValidate.length;i++){
		if (elementsToValidate[i].key.value.length <1){
			alert("Missing Required Field : "+ elementsToValidate[i].value);
			elementsToValidate[i].key.focus();
			return false;
		}
	}


var emailRegexp = /^[\w\.-]*@[\w\.-]*\.[\w]*$/;
if (form.email.value.length > 4) {
	if (!form.email.value.match(emailRegexp)){
		alert("Please use a correctly formatted email address. Example: abc@xyz.com");
		form.email.focus();
		return false;
	}
}

	return true;
}
// ]]>
//-->
