var bCancel = false; 

function validateCreateClientForm(form) { 
	if (bCancel) { 
	    return true; 
	} else { 
	    var formValidationResult; 
	    formValidationResult = validateRequired(form) & validateMask(form) & validateEmail(form); 
	    return (formValidationResult == 1); 
	} 
} 

function createClientForm_required () { 
	this.a0 = new Array("clientId", "Username is required.", new Function ("varName", "this.mask=/^[0-9A-Za-z]{6,12}$/;  return this[varName];"));
	this.a1 = new Array("email", "Email address is required.", new Function ("varName", " return this[varName];"));
	this.a2 = new Array("password", "Password is required.", new Function ("varName", "this.secondProperty='confirmPassword'; this.mask=/^.{6,12}$/;  return this[varName];"));
	this.a3 = new Array("termsAgreed", "Agreement to terms and conditions is required.", new Function ("varName", " return this[varName];"));
} 

function createClientForm_mask () { 
	this.a0 = new Array("clientId", "Your username must be between 6 and 12 characters long, and may only contain letters and numbers.", new Function ("varName", "this.mask=/^[0-9A-Za-z]{6,12}$/;  return this[varName];"));
	this.a1 = new Array("password", "Your password must be between 6 and 12 characters long.", new Function ("varName", "this.secondProperty='confirmPassword'; this.mask=/^.{6,12}$/;  return this[varName];"));
} 

function createClientForm_email () { 
	this.a0 = new Array("email", "Email address is not valid.", new Function ("varName", " return this[varName];"));
} 


function hilight_on(obj) {
	obj.style.opacity="0.90";
	obj.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=90)";
}

function hilight_off(obj) {
	obj.style.opacity="1.0";
	obj.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=100)";
}