
var jsLookupForm;
function validatejsLookupForm() {
	jsLookupForm = document.getElementById("jsLookupForm");
	with( jsLookupForm ) {
		if ( !validateEmail(email_address, "Please Enter a Valid Email Address.") ) {
			return false;
		}
		
	}
	return true;
}

function validateEmail(fieldName,alertTxt) {
	with (fieldName) {
		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(value)){
			fieldName.className = 'requiredTextBox';
			return true;
		} else {
			fieldName.focus;
			fieldName.className = 'failedTextBox';
			alert(alertTxt);
			return false;
		}
	}
}