function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
var newWin = null;
function closeWin()
{
	if (newWin != null)
	{
		if(!newWin.closed)
			newWin.close();
	}
}
function popUp(strURL,strType,strHeight,strWidth)
{
	//alert(strURL);
	closeWin();
	var strOptions="";
	if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
	else if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
	else if (strType=="scrollbars") strOptions="scrollbars,height="+strHeight+",width="+strWidth;
	else if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
	else strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
	
	newWin = window.open(strURL, 'newWin', strOptions);
	newWin.focus();
}
