function EntityPropertyIsValid(val) 
{    var ajaxLib;
    ajaxLib = new AjaxRuntime();
    ajaxLib.asynchronousPostback = false;

    var response = ajaxLib.doClientSidePostbackToPage("Validate", "../Shared/Validator/Validator.aspx", val.entitytype, val.propertyname, ValidatorGetValue(val.controltovalidate));
    val.IsValid = (response.toLowerCase() == "true");

    return val.IsValid;
}
