isNS = navigator.appName.indexOf("Netscape")  != -1
isIE = navigator.appName.indexOf("Microsoft") != -1

function openDivPopUp(url, width, height, posX, posY) {
		inLayer = MM_findObj("popUp");
		
		if (isNS) {
			/* inLayer.moveTo(posX,posY);
			 inLayer.width = width;
			inLayer.height = height;*/
			inLayer.style.left = posX;
			inLayer.style.top = posY;
			inLayer.style.width = width;
			inLayer.style.height = height;
		}
		
		if (isIE) {
			inLayer.style.pixelLeft = posX;
			inLayer.style.pixelTop = posY;
			inLayer.style.width = width;
			inLayer.style.height = height;
		}
		
		MM_showHideLayers('popUp','','show');
		this.frames["popUpFrame"].location = url;
}

function closeDivPopUp() {
		MM_showHideLayers('popUp','','hide');
}


function openPopUp(url, width, height, posX, posY) {
	tdlcPopUp = window.open(url,"tdlcPopUp","width="+width+", height="+height+", resizable=yes, scrollbars=no");
	tdlcPopUp.focus();
}



function openScrollPopUp(url, width, height, posX, posY) {
	tdlcPopUp = window.open(url,"tdlcPopUp","width="+width+", height="+height+", resizable=yes, scrollbars=yes");
	tdlcPopUp.focus();
}


function accessNotAllowed() {
	alert("You're not allowed to access this lesson!");
}

