function createnewuser(thisForm){
	sEmail = thisForm.NewCustomerEmail.value;
	if(!isEmailAddress(sEmail)){
		showWarningMessage('login_NewUser_Warning', 'You have entered an invalid address. Please re-enter your correct email address.');
		return false;
	}

	return true;
}

function forgotpassword(thisForm){
	sEmail = thisForm.email.value;
	if(!isEmailAddress(sEmail)){
		showWarningMessage('login_ForgotPassword_Warning', 'You have entered an invalid address. Please re-enter your correct email address.');
		return false;
	}

	return true;
}

function isEmailAddress(sValue) {
	var pattern=/^[\w\.-]{1,}\@([\da-zA-Z-]{1,}\.){1,}[\da-zA-Z-]{2,3}$/;
	return (sValue.match(pattern));
}
