var winnum = 1;
var newWin = new Array();

function MM_openBrWindow(theURL,winName,features,sw,sh) {
 
	strleft = ",left=" + (screen.width-sw)/2;
	features = features + strleft;
	strtop = ",top=" + (screen.height-sh)/2;
	features = features + strtop;

//	window.open(theURL,winName,features);

 	if(eval("newWin[" + winnum + "]") == null){			
		eval("newWin[" + winnum + "]= window.open('" + theURL + "','" + winName + "','" + features + "')");			
	}
	winnum++;

}


function MM_closeBrWindow(){
	var j;
	for(j = 1; j < winnum; j++){
	 	if(eval("newWin[" + j + "]") != null)
			eval("newWin[" + j + "].close()");
	}		

}
