
(function($) {
	$.fn.validationEngineLanguage = function() {};
	$.validationEngineLanguage = {
		newLang: function() {
			$.validationEngineLanguage.allRules = 	{
				"required":{
						"regex":"none",
						"alertText":"* This field is required",
						"alertTextCheckboxMultiple":"* Please select an option",
						"alertTextCheckboxe":"* This checkbox is required"},
					"contactwho":{
						"regex":"none",
						"alertText":"Please select whom you would like to contact."
					},
					"contactsite":{
						"regex":"none",
						"alertText":"Please select your local STORM Cinema."
					},
					"contactname":{
						"regex":"none",
						"alertText":"Please enter your name."
					},
					"contactmail":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"Please enter a valid email address."
					},
					"contactmessage":{
						"regex":"none",
						"alertText":"Please enter your message."
					},
					"registerfirstname":{
						"regex":"none",
						"alertText":"Please enter your first name."
					},
					"registerlastname":{
						"regex":"none",
						"alertText":"Please enter your last name."
					},
					"registeremail":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"Please enter a valid email address."
					},
					"registeremailconfirm":{
						"regex":"none",
						"alertText":"Please confirm your email address."
					},
					"registernearestcinema":{
						"regex":"none",
						"alertText":"Please select your nearest STORM Cinema."
					},
					"registerpassword":{
						"regex":"none",
						"alertText":"Please enter your password."
					},
					"registerpasswordconfirm":{
						"regex":"none",
						"alertText":"Please confirm your password."
					},
					"length":{
						"regex":"none",
						"alertText":"Passwords can be ",
						"alertText2":" - ",
						"alertText3": " characters long."},
					"confirm":{
						"regex":"none",
						"alertText":"* Your field is not matching"},
					"mail":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"* Invalid email address"},	
					"date":{
                         "regex":"/(^[0-9]{2}\\/\[0-9]{2}\\/\[0-9]{4}$)|(^$)/",
                         "alertText":"Your date of birth, must be in DD/MM/YYYY format."}
					}	
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});
