/*
 * $Id: global.js,v 1.2 2003/10/31 14:41:47 brian Exp $
 */

var browserType;

// detect browser type
if(document.layers){
    browserType = "layers";
}
if(document.all){
    browserType = "all";
}
if(!document.all && document.getElementById){
    browserType = "getElementById";
}

// detect if IE
ua = navigator.userAgent;
if (ua.indexOf("MSIE") >= 0) {
  isIE = true;
} else {
  isIE = false;
}

function openWindow(URL, name, width, height, toolbar, location, directories, scrollbars, status, menubar, resizable) {
        newWindow = window.open(URL, name, 'toolbar=' + toolbar + ',location=' + location + ',directories=' + directories + ',scrollbars=' + scrollbars + ',status=' + status + ',menubar=' + menubar + ',resizable=' + resizable + ',width=' + width + ',height=' + height );
}
