<!--
var newWindow = null;

function closeAllChildWindows(){
	if (newWindow != null){
		if(!newWindow.closed)
			newWindow.close();
	}
}

function popUpWin(url, type, strWidth, strHeight){
	closeAllChildWindows();
	
	if (type == "fullScreen"){
		strWidth = screen.availWidth - 10;
		strHeight = screen.availHeight - 160;
	}

	var tools="resizable,toolbar=no,location=no,width="+strWidth+",height="+strHeight+"";
	var winName ="newWin";
	switch(type)
		{
		case "standard": case "fullscreen": case "extra":
		
			tools = tools + ",scrollbars=yes,menubar=no";
			
			if (type == "extra")
				{
				tools = tools + ",top=200,left=200";
				winName = 'extraWin';
				}
			else
				{
				tools = tools + ",top=100,left=100";			
				}
			break;

		case "console":					
			tools = tools + ",scrollbars=yes,top=0,left=0";
			break;	
		}	

	newWindow = window.open(url, winName, tools);
	newWindow.focus();
}
//-->