//var newWindow;

function closeWin(thisURL){
	window.opener.location.href = thisURL;
	this.close();
//	if (newWindow != null){
//		if(!newWindow.closed)
//			newWindow.close();
//	}
}

function popUpWin(url, type, strWidth, strHeight){
	
	//closeWin(); // 12/13/06, taken out by gjk as unnecessary; window will refresh content and be brought to front (focus)
	
	if (type == "fullScreen"){
		strWidth = screen.availWidth - 10;
		strHeight = screen.availHeight - 160;
	}
	var tools="";
	if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0";
	if (type == "console") tools = "resizable=0,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
	var newWin = window.open(url, 'newWin', tools);
	newWin.focus();
}
