function checkValidation()
{
	if (jQuery("input[@name=hasValidate]").val() == '0')
		jQuery("input[@name=hasValidate]").val('1');
	// Validate the security code is true or false.
	jQuery.ajax({
		type: "POST",
		url: "ajaxHBChange.php",
		data: "validateSecurity=1&code="+jQuery("input[@name=validation]").val(),
		success: function(msg){
			//alert(msg);
			if (msg == '1')
			{
				jQuery("p.validation .error").show();
				jQuery("p.validation .error span").hide();
				jQuery("p.validation .error").attr('class', 'error validateSuccess');
			}
			else
			{				
				jQuery("p.validation .error").show();
				jQuery("p.validation .error span").show();
				jQuery("p.validation .error").attr('class', 'error');
			}
		}
	});
}