// Filename: exteranlJS.js
// Description: Collection of miscellaneous javascript functions.

// Display a popup window in the upper-left third of the display.
function popup(url, width, height)
{
 var left   = screen.width / 2;
 var top    = (screen.height - height) / 3;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'dialog', params);
 if (window.focus) {newwin.focus()}
 return false;
}

