//**********************************************************************
//**********************************************************************
//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 Disabled!";


//**********************************************************************
//call this disableMouseClicks Function to disable right mouseclicks

function disableMouseClicks(){
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

}
//**********************************************************************



function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

//END Disable right mouse click Script
//**********************************************************************
//**********************************************************************


//**********************************************************************
//**********************************************************************
// Relocate Top Frameset
//changed By Robert Schweng
// Relocates the top frameset that no frameset nesting will occur

function relocateTopFrameset()
{
if (self.parent.frames.length > 0) 
		{
			top.location.href=self.location.href;
		}
}
//END Disable right mouse click Script
//**********************************************************************
//**********************************************************************



//**********************************************************************
//**********************************************************************
// Open FullscreenPopup
// By Robert Schweng
// opens the page in a fullscreen popup

function openFullScreenPopUp(theURL,winname) 
{
	if (!newwindow.closed && newwindow.location)
	{
return newwindow.opener = self;
	}
	else
	{
		newwindow=window.open(theURL,winname,"width=800,height=600,resizable=yes,navigation=yes,fullscreen=","True");
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
newwindow.opener.location.href=top.location.href;	
return false;
}
//END OpenFullscreenPopup
//**********************************************************************
//**********************************************************************


//**********************************************************************
//**********************************************************************
// MM_openBrWindow
// By ???
// opens the page in a self defined popup window (features)

var newwindow = '';
function MM_openBrWindow(theURL,winName,features) 
{
	if (!newwindow.closed && newwindow.location)
	{
		newwindow.location.href = theURL; <!-- !***-***! //-->
	}
	else
	{
		newwindow=window.open(theURL,winName,features);
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}
//END MM_openBrWindow
//**********************************************************************
//**********************************************************************
