$(document).ready(function() {
	$(".selectedCasino").attr("checked", "checked");
	$("#title").change(function() { titleOtherSync(this.value); });
	var either = [
		
	];
	var validChars = {
		otherTitle		: /^[a-zA-Z\(\)' -]+$/,
		firstName		: /^[a-zA-Z\(\)' -]+$/,
		surname			: /^[a-zA-Z\(\)' -]+$/
	};
	$("#NewsletterForm").submit(
		function() {
			return $("#NewsletterForm").formValidate({either:either, validChars : validChars });
		}
	);
});

function titleOtherSync(aValue) {
	var otherTitle = $("#otherTitle");
	if(aValue == "Other") {
		otherTitle.attr("readonly", "");
		otherTitle.attr("disabled", "");
		otherTitle.removeClass("disabled");
		$("#otherTitle").focus();
	} else {
		otherTitle.val("");
		otherTitle.attr("readonly", "readonly");
		otherTitle.attr("disabled", "disabled");
		if(!otherTitle.hasClass("disabled")) {
			otherTitle.addClass("disabled");
		}
	}
}