    // wopen(obj, w, h)
    //
    // this functions opens a window, but if javascript does not work, the link still does..
    //
    // usage: <a href="somelink.html" onClick="return wopen(this,'popup',345,500)" target="_blank">click me</a> 
    //
    // Originally created by Michiel Toneman, Virtube, 2003
    // Modified by Roald de Wit, Clickhere, 2003
    // To be used freely
    
    function wopen(obj, title, width, height, extra)
    {
        var win;

        if(!title)  { title  = ""; }
        if(!width)  { width  = 800; }
        if(!height) { height = 600; }
        if(!extra)  { extra  = '' } else { extra = ',' + extra}

        winoptions="height="+height+",width="+width+",,"+
                 ",menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,toolbar=no" + extra;

        if (!win) {
            win = window.open("", title, winoptions);
        } else {
            if (parseInt(navigator.appVersion) >= 4) { 
                win.window.focus(); 
            }
            return false;
        }
        
        if (win) {
            if (obj.href) {
                win.location.href=obj.href;
            } else {
                win.location.href=obj;
            }
            if (!win.opener)
                win.opener = self;

            if (parseInt(navigator.appVersion) >= 4) { 
                win.window.focus(); 
            }
        }

        return false;
    }




