function popUp(url, width, height, menubar, name, top, left, noscroll) 
{
	var strName
	var strScroll
	if(!top)
	{
		if(height)
			top = (screen.height / 2 - height / 2);
		else
			top = 50;
	}
	if(!left)
	{
		if(width)
			left = (screen.width / 2 - width / 2);
		else
			left = 100;
	}
	if(name) strName = name; else strName = "popup"
	noscroll ? strScroll = 'no' : strScroll = 'yes';
	if(menubar)
		window.open(url,strName,'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=' + strScroll + ',resizable=yes,copyhistory=yes,left=' + left + ',top=' + top + ',width=' + width + ',height=' + height);
	else
		window.open(url,strName,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + strScroll + ',resizable=no,copyhistory=no,left=' + left + ',top=' + top + ',width=' + width + ',height=' + height);
}

function popUpDrilldown(url,name)
{
		popUp(url, 640, 480, false, name);
}

function popUpFrontPage(url, name, width, height)
{
	var top;
	var left;
	var strName;
	if(name) strName = name; else strName = "popup"
	if(height)
		top = (screen.height / 2 - height / 2);
	else
		top = 50;
	if(width)
		left = (screen.width / 2 - width / 2);
	else
		left = 100;
	window.open(url,strName,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,left=' + left + ',top=' + top + ',width=' + width + ',height=' + height);
}
