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