// html and javascript produced by Leif Harmsen

// browser sniff by Leif Harmsen
var _client = 'old';
var browser=navigator.appName;
var ver=parseInt(navigator.appVersion);
if (browser == "Microsoft Internet Explorer"){
        if (ver >= 2) _client = 'ie3';
        if (ver >= 4) _client = 'ie4';
}
if (browser == "Netscape"){
        if (ver >= 3) _client = 'ns3';
        if (ver >= 4) _client = 'ns4';
}

// Determine which client's browsers need no special tweaking
        if (_client == 'ns3') _client = 'ok';
        if (_client == 'ns4') _client = 'ok';


// The popup function pops up pop up windows reliably ...
function popup(theurl,w,h) {
        var lastslash = theurl.lastIndexOf('/') + 1;
        var lastbackslash = theurl.lastIndexOf('\\') + 1;
        if (lastslash < lastbackslash) lastslash = lastbackslash; 
        var dot = theurl.lastIndexOf('.');
        winame = theurl.substring(lastslash,dot)
    title = winame
                
    if (_client == "ok") {
        winparams = 'toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=0,scrollbars=1,width=' + w + ',height=' + h  ;
        winame = open(theurl,winame,winparams);
        history.go(theurl);
        document.close()
        winame.focus();
        }
                
        if (_client == "ie3") {
        baseurl = location.href;
        winparams = 'toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=0,scrollbars=1,width=' + w + ',height=' + h ;
        winame = open(theurl,winame,winparams);
        document.close();
    }
                
        if (_client == "ie4") {
                w = w + 20;
                h = h + 0;
        baseurl = location.href;
        winparams = 'toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=0,scrollbars=1,width=' + w + ',height=' + h ;
        winame = open(theurl,winame,winparams);
        document.close();
        winame.focus;
    }
                
    if (_client == "old") {
        baseurl = location.href;
        winparams = 'toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=0,scrollbars=1,width=' + w + ',height=' + h ;
        winame = open(theurl,winame,winparams);
        document.close();
    }       
}