﻿/* Purpose: enable of all the controls in el (i.e. a div).*/
function enableControls(el) {
    try {
        if (el.disabled == true)
            el.removeAttribute('disabled');
    }
    catch(E){}
    
    if (el.childNodes && el.childNodes.length > 0) {
        for (var x = 0; x < el.childNodes.length; x++) {
            enableControls(el.childNodes[x]);
        }
    }
}

/* Purpose: disable of all the controls in el (i.e. a div).*/
function disableControls(el) {

    try
    {
        el.disabled = true;
    }
    catch(E){}
    
    if (el.childNodes && el.childNodes.length > 0) {
        for (var x = 0; x < el.childNodes.length; x++) {
            disableControls(el.childNodes[x]);
        }
    }
}
// Notify ScriptManager that this is the end of the script.
if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();