<!--
/******************************************************************************
* swsw_popup.js                                                               *
*                                                                             *
* Copyright 2003-2005 South West Software Limited.                            *
* Web address: http://www.swsw.co.uk                                          *
* Last update: 19 May 2005.                                                   *
*                                                                             *
* Contains declarations for pop-up windows.                                   *
*                                                                             *
* Modification History                                                        *
* ====================                                                        *
*                                                                             *
* 19 May 2005	Added sTopLeft argument to allow pop-up window to be          *
*               positioned in the top left corner of the page, instead of     *
*               only centrally positioned.                                    *
*                                                                             *
******************************************************************************/

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function OpenWindow(sPage, sWindow, sWidth, sHeight, sTool, sTopLeft)
{
	var winl = 0;
	var wint = 0;
        if (sTopLeft != 1)
        {
  	  var winl = (screen.width - sWidth) / 2;
	  var wint = (screen.height - sHeight) / 4;
	}
	if (sTool == 1)
	{
	  toolstring = "yes"
	}
	else
	{
	  toolstring = "no"
	}
	MM_openBrWindow(sPage, sWindow,'menubar=no,location=no,toolbar='+toolstring+',scrollbars=yes,width='+sWidth+',height='+sHeight+',top='+wint+',left='+winl);
}
//-->
