var browser=navigator.appName;
if(browser=='Microsoft Internet Explorer')
{
	
	if (document.all)
	{
		document.onkeydown = function ()
		{ 
			var key_ctrl = 17; // 17 = ctrl 
			if (17==event.keyCode)
			{ 
				alert("copy not allowed here");
				event.keyCode = 27; 
				return false; 
			} 
		} 
	} 
	if (document.all)
	{
		document.onkeydown = function ()
		{ 
			var key_f5 = 116; // 116 = F5 
			if ((key_f5==event.keyCode) || (17==event.keyCode))
			{ 
				alert("refresh not allowed here");
				event.keyCode = 27; 
				return false; 
			} 
		} 
	} 
}
else if(browser='Netscape')
{

	if (!document.all)
	{
		var key_f5 = 116; // 116 = F5 
		var key_ctrl = 17; // 17  = ctrl 
		document.onkeypress = function (e)
		{
			var e=window.event || e;
			if (e.which==97) // for F5
			{ 
				//alert("selection not allowed here");
				//return false; 
				return true;        // true so that 'a' and 't' can b pressed
				
			}
			if (key_f5==e.which && 114==e.which) // for ctrl+r
			{ 
				alert("refresh not allowed here");
				return false; 
				e.which = 27; 
				
			}
			if (key_f5==e.keyCode && 114==e.keyCode) // for F5
			{ 
				alert("refresh not allowed here");
				return false; 
				e.keyCode = 27; 
				
			}
		} 
	} 
}


function disabletext(e){
return false
}

function reEnable(){
return true
}

//if the browser is IE4+
document.onselectstart=new Function ("return false")

//if the browser is NS6
if (window.sidebar){
//document.onmousedown=disabletext
//document.onclick=reEnable
}


//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!";

///////////////////////////////////
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;
}
}
}

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")

