var browserName;
var browserVer;
var ssCapable;
        
// Determine which browser the user is using.
browserName = navigator.appName;             
browserVer = parseInt(navigator.appVersion); 

// If the user is using Netscape or IE 4 or better then 
// we can use style sheets.
if(
    (browserName == "Netscape" && browserVer >= 4) ||
    (browserName == "Microsoft Internet Explorer" && browserVer >= 4 )
) {
    ssCapable = 1;
} else {
    ssCapable = 0;
}
        
        
function openWindow( width, height, doc, target ) {
    if( ssCapable ) {
        window.open( doc, target, "scrollbars=no,toolbar=no,directories=no,location=no,menubar=no,status=no,resizable=no,width= " + (width) + ",height=" + (height) );
    } else {
        window.open( doc, target, "scrollbars=no,toolbar=yes,directories=no,location=no,menubar=no,status=no,resizable=yes,width= " + (width+20) + ",height=" + (height+20) );
    }
}

function openWindow( width, height, doc ) {
    if( ssCapable ) {
        window.open( doc, "_blank", "scrollbars=no,toolbar=no,directories=no,location=no,menubar=no,status=no,resizable=no,width= " + (width) + ",height=" + (height) );
    } else {
        window.open( doc, "_blank", "scrollbars=no,toolbar=yes,directories=no,location=no,menubar=no,status=no,resizable=yes,width= " + (width+20) + ",height=" + (height+20) );
    }
}

function openWindowSB( width, height, doc ) {
    if( ssCapable ) {
        window.open( doc, "_blank", "scrollbars=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,resizable=no,width= " + (width) + ",height=" + (height) );
    } else {
        window.open( doc, "_blank", "scrollbars=yes,toolbar=yes,directories=no,location=no,menubar=no,status=no,resizable=yes,width= " + (width+20) + ",height=" + (height+20) );
    }
}


function JumpURL(selection) {
    var tempIndex, selectedURL;
    tempIndex = selection.selectedIndex;
    selectedURL = selection.options[tempIndex].value;
    self.location.href = selectedURL;
}

