	function validateLostForm(){
		
		// quickie references to my fields
		var UserName = document.getElementById('UserName');
			
		// check the inputs  (main function nav)

	if(emailField(UserName, "mand", "Username (email address).")) {
			return true;
	}
	return false;
	}

	// function for quickly checking email format (check again on server side)	
	function emailField(element, which, fieldDesc){
		var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
		if ((which == 'mand') && (element.value.length < 6)) {
			var shortStub = 'Please enter your ';
			alert(shortStub + fieldDesc);
			element.focus(); // set the focus to this input
			return false;
		} else if (element.value.match(emailExp)) {
			return true;
		} else {
			var wrongStub = 'Please check the format of your ';
			alert(wrongStub + fieldDesc);
			element.focus();
			return false;
		}
	}
