
//Böngészo neve
var nav=navigator.appName;
//Determine whether browser is Internet Explorer or Netscape
var ie=(nav.indexOf("Microsoft")!=-1);
var ns=(nav.indexOf("Netscape")!=-1);

//IE-ben letiltjuk a jobb kattintást
function nrcIE(){
return false;
}

//NS 4-es verziótol feljebb is letiltjuk a jobb kattintásokat
function nrcNS(e){
//A jobb oldali egér van-e lenomyva?
if(e.which==2 || e.which==3){
return false;
}
 }

//Ha a böngészo IE, beállítjuk, hogy jobb klikknél semmit se mutasson :P
if(ie){
document.oncontextmenu=nrcIE;
}

//Ha a böngészo NS4, beállítjuk, hogy jobb klikknél semmit se mutasson :P
if(ns){
if(document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=nrcNS;
}

//Ha a böngészo NS6, beállítjuk, hogy jobb klikknél semmit se mutasson :P
if(document.getElementById){
document.onmouseup=nrcNS;
}
 }

//letiltjuk a drag & drop
document.ondragstart=new Function("return false;");

//Letiltjuk a kjelölést, és a vágólapra másolást
document.onselectstart=new Function("return false;");

//Letiltjuk a statuszbart
document.onmousemove=new Function("window.status='Welcome to my homepage';");

//Letiltjuk a kapcsolatnélküli megtekintést
if(window.self.location.href.indexOf("http://")==-1) window.location="";

//Letiltjuk az oldal nyomtatását
if(document.all) window.onbeforeprint=new Function("window.location='';");

//A fram-be beágyazódást is letiltjuk
if(top.location!=self.location) top.location=self.location;

