// JavaScript Document
function OpenWindow(myPage, iNo)
{
	var myWin = window.open(myPage, "AdminWindow" + iNo, "height=400,width=600,scrollbars=yes");
	myWin.focus();
}

function OpenFullWindow(myPage)
{
	var w = screen.width;
	var h = screen.height;
	var myWin = window.open(myPage, "FullScreenWindow", "height="+h+",width="+w+",scrollbars=yes");
	myWin.focus();
}

function OpenPicWindow(myPic, w, h)
{
	var myWin = window.open("picpop.php?img=" + myPic + "&title=Image Viewer","OpenPicWindow","width=" + w + ",height=" + h + ",toolbars=no,scrollbars=no,status=no,menubar=no,resizable=no,location=no, directories=no");
	myWin.resizeTo(w,h+80);
	myWin.focus();
}

function checkEmail(email)
{
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email))
		return true;
	else
		return false;
}
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="";

///////////////////////////////////
function clickIE4()
{
	if (event.button==2)
	{
		if(message != "") {	alert(message); }
		return false;
	}
}

function clickNS4(e)
{
	if (document.layers||document.getElementById&&!document.all)
	{
		if (e.which==2||e.which==3)
		{
			if(message != "") {	alert(message); }
			return false;
		}
	}
}

if (document.layers)
{
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById)
{
	document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("DisplayRightClickMessage();return false")

function DisplayRightClickMessage()
{
	if(message.length > 0) { alert(message); }
}
// --> 