    
    function submitform( fname, ftype ) {
        switch ( ftype ) {
            case 'delete' :
                if (confirm("Are you sure you wish to delete the selected items?\n\n(There is no undo!)")) {
                    document.forms[fname].elements["action"].value = 'delete';
                    document.forms[fname].submit();
                }
            break;
            case 'reset' :
                document.forms[fname].reset();
            break;
            break;
            default:
                document.forms[fname].elements["action"].value = ftype;
                document.forms[fname].submit();

        }
    }

    function createwindow( type, url ) {
        /*
        menubar 
            This is the row of functions that appears on most software applications. Normally it includes File, Edit, and a few other items. 
        status 
            This is the message bar at the bottom of your window. When you move your mouse over an HTML link, the URL appears in the status bar. You may have seen pages that use JavaScript to turn this status bar into a scrolling marquee. I'm not going to show you how to do this. If you want to know, you have to figure it out yourself. "Down with marquees," the monkey cried! 
        scrollbars 
            This allows scrollbars to appear when necessary. 
        resizable 
            If resizable is listed, the window can be resized. Be careful of the spelling. I always get it wrong. 
        width 
            The width of the window in pixels. 
        height 
            The height of the window in pixels. 
        toolbar 
            The browser toolbar, which contains the Back and Forward buttons, the Stop button, and the Home button, among others. 
        location 
            The text area of a browser into which you can type URLs. 
        directories 
            The directories that Netscape browsers have called "What's new," "What's cool," and so on. 
        */

        var win_l = 0;
        var win_t = 0;
        var title = type;
        switch ( type ) {
            case 'themewalk':
                var win_w = 750;
                var win_h = 550;
                var title = 'Themewalk';
                var features = "width="+win_w+",height="+win_h+",menubar=no,status=yes,scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no";
            break;
            case 'musician':
                var win_w = 400;
                var win_h = 400;
                var title = 'Musician';
                var features = "width="+win_w+",height="+win_h+",menubar=no,status=no,scrollbars=yes,resizable=no,toolbar=no,location=no,directories=no";
            break;
            case 'help':
                var title = 'JazzserverHelp';
                var features = "width=440,height=550,menubar=yes,status=yes,scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no";
            break;
            case 'wizard':
                var win_w = 650;
                var win_h = 450;
                title = 'JazzserverWizard';
                features = "width="+win_w+",height="+win_h+",menubar=no,status=yes,scrollbars=yes,resizable=no,toolbar=no,location=no,directories=no";
            break;
            case 'samples':
                var win_w = 320;
                var win_h = 75;
                title = 'Sample';
                features = "width="+win_w+",height="+win_h+",menubar=no,status=no,scrollbars=no,resizable=no,toolbar=no,location=no,directories=no";
            break;
            case 'pagemodifier':
                var win_w = 630;
                var win_h = 700;
                var title = 'PageEditor';
                var features = "width="+win_w+",height="+win_h+",menubar=no,status=yes,scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no";
            break;
        }
        
        if (typeof(screen) == "object") {
            win_l = (screen.availWidth / 2) - (win_w / 2);
            win_t = (screen.availHeight / 2) - (win_h / 2);
            features = features + ",top="+win_t+",left="+win_l;
        }

        var win = window.open(url,title,features);
        if (win)
            win.focus();
    }
    
