/////////////////////////////////////////////////////////////////////////////
//
// Function Name : Popup
//
// Parameters    : URL   - URL to open
//                 name  - Window name
//                 ht    - height of window
//                 wid   - width of window
//
// Synopsis      : Pops up a new browser window
//
/////////////////////////////////////////////////////////////////////////////

var g_objOpenedWindow = null;

function openNew( URL, newWindowName, ht, wid )
{
     g_objOpenedWindow = window.open( URL, newWindowName,
                                      'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,copyhistory=no,width=' + wid + ',height=' + ht );
}


/////////////////////////////////////////////////////////////////////////////
//
// Function Name : goTop
//
// Parameters    : (none)
//
// Synopsis      : Goes to the top of the page by reloading the page and 
//		   avoiding adding this page to the browser window's history.
//		   This solves the problem that when the user clicked the "top"
//                 link and then the "Back" link, the user was taken the the
//                 location from which "top" was called and not to the previous
//                 page.
//
/////////////////////////////////////////////////////////////////////////////

function goTop()
{
    location.replace( "#" );
}


