/*
<SCRIPT Language="JavaScript" SRC="../../include/pop.js"></SCRIPT>
*/

function winpop(loc,x,y,l,t) {
	window.open(loc , 'PopUp_window', 'toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,left='+l+',top='+t+',width='+x+',height='+y);
	return true;
}

function wpop(loc,x,y,l,t,popname) {
	window.open(loc , popname, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,left='+l+',top='+t+',width='+x+',height='+y);
	return true;
}

function fullpop(loc,popname) {
	window.open(loc , popname, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,fullscreen=1');
	return true;
}

function wspop(loc,x,y,l,t,popname,yn) {
	window.open(loc , popname, 'toolbar=no,location=no,directories=no,status='+yn+',menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,left='+l+',top='+t+',width='+x+',height='+y);
	return true;
}

function nocontextmenu(){
event.cancelBubble = false;
event.returnValue = false;
return true;
} document.oncontextmenu = nocontextmenu;

function lockdown() {
	if ( (event.keyCode==8) || (event.keyCode==18 && event.keyCode==37) || (event.ctrlKey && event.keyCode==78) )
	{
	   event.keyCode=0;
 	   return true;
	}
	
	if (window.event.altLeft) {
   		status ="eLearn Now";
   		window.event.returnValue = true;
   		document.body.focus();
	} else {
 	if (window.event.altKey) {
   		status ="eLearn Now";
   		window.event.returnValue = true;
   		document.body.focus();
  		}
  	}
}

function maxwinmv() {
	for(x = 0; x < 50; x+=2) {
	window.moveTo(screen.availWidth * -(x - 50) / 100, screen.availHeight * -(x - 50) / 100);
	window.resizeTo(screen.availWidth * x / 50, screen.availHeight * x / 50);
	}
	window.moveTo(0,0);
	window.resizeTo(screen.availWidth, screen.availHeight);
}