function validateSource(oSource, args) {
    if (document.getElementById("divOtherSource").style.display == "block") {
        var dynCtrl = oSource.id.substring(0, oSource.id.lastIndexOf("_") + 1);
        var myTextBox = document.getElementById(dynCtrl + 'Source');
        args.IsValid = (myTextBox.value != "");
    }
}
function showAndFocus(clicked, div, ctrl) {
    if (document.getElementById(div)) {
        document.getElementById(div).style.display = "block";
        document.getElementById(ctrl).focus();
    }
}
function hideDiv(clicked, div) {
    if (document.getElementById(div)) {
        document.getElementById(div).style.display = "none";
    }
}
function ddlSel(ddl, div, ctrl) {
    var dynCtrl = ddl.id.substring(0, ddl.id.lastIndexOf("_") + 1);
    var selVal = ddl.options[ddl.selectedIndex].value;
    if (selVal == "O")
    { showAndFocus(ddl, div, dynCtrl + ctrl); }
    else
    { hideDiv(ddl, div); }
}