/*
This function will check each the validators one after the other and stop on the first control that does not validate
*/
function ValidatorIndividualAlert()
{
    DisableAllValidators();
    
    if (typeof(Page_Validators)!='undefined')
    {
        var i;
        for (i = 0; i < Page_Validators.length; i++) 
        {
            ValidatorEnable(Page_Validators[i], true); // we enable the validators one per one
            if (!Page_Validators[i].isvalid) 
            {
                var msg;
                msg = Page_Validators[i].errormessage;
                if(!msg)
                    msg = Page_Validators[i].id

                alert(msg);
                document.getElementById(Page_Validators[i].controltovalidate).focus();
                break;
            }
        }
     }
}

function DisableAllValidators()
{
    if (typeof(Page_Validators)!='undefined')
    {
        for (var i = 0; i < Page_Validators.length; i++) 
            ValidatorEnable(Page_Validators[i], false);
    }
}


