    var IE4 = document.all? true : false; // IE version 4 and above
    var NN6 = !document.all && document.getElementById? true : false;  // Netscape Navigator 6.0 and above

    function menu (mnu, Value) {
        if ( IE4 ) {
            if ( Value ) {
                document.all[mnu].style.visibility="visible";
            } else {
                document.all[mnu].style.visibility="hidden";
            }
        }

        if ( NN6 ) {
            if ( Value ) {
                document.getElementById(mnu).style.visibility="visible";
            } else {
                document.getElementById(mnu).style.visibility="hidden";
            }
        }
    }

    function CheckSelect ( S, NAME ) {
        Value = S.options[S.selectedIndex].value;
        FieldName = NAME + "                         ";
        FieldName = FieldName.slice(0,25) + S.options[0].value;
        if ( Value == "myOwn" ) {
            RetVal = window.showModalDialog("AddOption.htm",FieldName,"dialogWidth:400px; dialogHeight:200px; center:yes; status:no; help:no; unadorned:yes;");
            S.options[0].value = RetVal;
            S.options[0].text = RetVal;
            S.options[0].selected = true;
        }
    }

    function CloseMenus() {
        menu('menu1', 0)
        menu('menu2', 0)
        menu('menu3', 0)
        menu('menu4', 0)
    }

    function DeleteOK ( Url ) {
        var RetVal;
        if ( IE4 ) {
            RetVal = window.showModalDialog("VerifyDelete.htm","","dialogWidth:400px; dialogHeight:170px; center:yes; status:no; help:no; unadorned:yes;");
        }

        if ( NN6 ) {
            var ConVal = confirm("You are about to delete a Record from the Database!\nDo you want to continue?");
            if ( ConVal )
                RetVal = "Y";
        }

        if ( RetVal == "Y" ) {
            location.href=Url;
        }
    }


