/*
opens the library popup window to the indicated url and window name
if the library is not already open
*/
var oLib = null;
function openLibrary(strURL, strTargetName, strIframeName) {
	
	var strOptions = "left=300,screenX=300,top=100,screenY=100,channelmode=0,directories=0,height=300,innerHeight=300,width=400,innerWidth=400,hotkeys=0,location=0,menubar=0,titlebar=0,toolbar=0,resizable=1,status=1,scrollbars";

	// determine if the window is already open
	if (!(oLib && oLib.open && !oLib.closed)) {
		oLib = window.open("", strTargetName, strOptions);
	}

	// focus and set the new location
	if (oLib && oLib.open && !oLib.closed) {
		oLib.focus();
		oLib.location.href = strURL;
		
		// store latest iframe document in the window object
		// that contains the iFRAME
		window.targetIframeDoc = document.frames[strIframeName].document;
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}