var isnn,isie
if(navigator.appName=='Microsoft Internet Explorer') //check the browser
{  isie=true }

if(navigator.appName=='Netscape')
{  isnn=true }

function right(e) //to trap right click button 
{
	if (isnn && (e.which == 3 || e.which == 2 ))
		return false;
	else if (isie && (event.button == 2 || event.button == 3)) 
	{
		alert("Sorry, you are violating copy right!! . FBMI All rights reserved.");
		return false;
	}
		return true;
}

function key(k)   
{
	if(isie) {
		if(event.keyCode==17 || event.keyCode==18 || event.keyCode==93) {
			alert("Sorry, you are violating copy right!! . FBMI All rights reserved.") 
			return false;
		 } 
	}

	if(isnn){
		alert("Sorry, you do not have permission to press this key.") 
		return false; }   
}

if (document.layers) window.captureEvents(Event.KEYPRESS);  
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
if (document.menubar) window.capturesEvents(Event.MOUSEDOWN);
document.onkeydown=key;  
document.onmousedown=right;
document.onmouseup=right;
window.document.layers=right;




Wise popup settings
<script language="JavaScript">
function PopupMe(){
myleft=(screen.width)?(screen.width-1000)/2:100;mytop=(screen.height)?(screen.height-700)/2:100;
settings='top=' + mytop + ',left=' + myleft + ',width=1000,height=700,location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes,fullscreen=no'
PopupWin=window.open('http://www.fbmindia.org/homepage.htm','PopupWin', settings);
PopupWin.focus();}
</script>

Lanuch Code
<a href="javascript:PopupMe()">Click this link</a>
