/*
*	Popups up a window to the given iHeight and iWidth
*
*	@declare public
*	@param sUrl String the sUrl that the window is to open to
*	@param iWidth Integer iWidth of the window
*	@param iHeight Integer iHeight of the window
*	@param sName String The name of the Window
*
*	thanks to adrian cotter
*/


	
	
function openPopup( sUrl, iWidth, iHeight, sName )
{
	// possible -- menubar=yes,status=yes,scrollbars=yes,resizable=no,iWidth=364,iHeight=464

	if ( !sName )
	{
		sName = "popup"
	}

	var popup = window.open( sUrl, sName, "height=" + iHeight + ",width=" + iWidth + ",resizable=yes,scrollbars=yes" );
	popup.focus();

			
	return false;
}



/*
*	Closes the window from where the call was made.
*
*	@declare public
*/
function closeWindow()
{
	self.close();
	return false;
}
