var openCenteredWin = function(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable) {
	var myWin;
	
	if(!myWin || myWin.closed){
		var options = 'width=' + width + ',height=' + height + ',toolbar=' + toolbar + ', location=' + location + ', directories=' + directories + ',status=' + status + ', menubar=' + menubar + ', scrollbars=' + scrollbars + ', resizable=' + resizable + ', top=' + ((screen.height/2)-( height/2 )) + ', left=' + ((screen.width/2)-( width/2 ))
		myWin = window.open(address, target_winName, options)
	} else {
		myWin.focus();
	};
	return myWin;
}

var miniOCW = function(address, target_winName, width, height) {
	return openCenteredWin(address, target_winName, width, height, 0, 0, 0, 0, 0, 1, 1);
}
