/// <summary>
/// function that opens a window containing an html page
/// </summary>
/// <param name="url">the path of the html file called in the modal window</param>
/// <param name="width">the sizeWidth of the modal window</param>
/// <param name="height">the sizeHeight of the modal window</param>
/// <returns>
/// void
/// </returns>
/// <remarks>
/// Author: Michel Brochu
/// Created: 2005-04-15
/// Revisions:
/// 	- n/a
/// </remarks>
function showWindow(url,width,height,windowName)
{
	if(!windowName) {windowName="myWindow";} // url has to be there !
	if(!height) {height=130;} // if those param are not specified when the function is called
	if(!width) {width=370;} // url has to be there !
	
	myX = (screen.width - width) / 2; // screen.width & screen.height size of client's screen
	myY = (screen.height - height) / 2; // could use screen.availheight (.availwidth) so it will only count the pixels available.
	myStr=",screenX=" + myX + ",left=" + myX; // screenX, screenY number of pixels between the border of ur screen and the new window; top, left, same thing but specific to IE 4.0 and +
	myStr = myStr + ",screenY=" + myY + ",top=" + myY;
	// top refers to the topmost window
	// ref = only a variable contained in ref, it could be called bob
	
	//top.ref = 
	
	window.open(url, windowName, "width="+width+" ,height="+height+myStr + ",toolbar=no,menubar=no,scrollbars=yes,location=no,directories=no,status=no,resizable=no");
	//if (top.ref.opener == null) top.ref.opener = self; // top.ref.opener refers to the windows which opened top.ref (top.ref being a reference to the pop-up window)
}

function showRatesGrid(securityName)
{
	alert('obsolete. modify the code to make it like IndicesEquity.aspx for the chart!')
	//showWindow('RatesChart.aspx?SecurityName=' + securityName, 660, 460, 'RatesGrid')
}

function showMissingStats(url)
{
	showWindow(url, 810, 500, 'PortfolioMissingStats');
}
