// Script by 
// Thor Larholm (Thor@Larholm.dk) 
// and 
// Doc Nielsen (WebMaster@DocNielsen.dk) 
if (document.all){ // We have a version 4+ browser
self.focus(); // bring window to front
document.ondragstart=function(){return false;} // dont start drag on my document //
document.ondrag=function(){return false;} // dont drag on my document //
document.onselectstart=function(){return false;} // dont start select on my document //
document.onselect=function(){return false;} // dont select on my document //
}
if (window.print){ // We have IE 5+ //
document.oncontextmenu=function(){return (event.ctrlKey && event.shiftKey);} // no contextmenu //
} else { // we dont have IE 5+ //
document.onmousedown=function(){ // if you click a mouse button //
if (event.button!=1){ // if the button you pressed isn't nr.1 //
if (navigator.platform.indexOf("Win")==0){ // and you have windows //
alert("Get yourself A better browser. \n Hent lige en bedre browser."); // alert //
top.location="http://www.microsoft.com/ie"}return false;}} // go to M$ to get IE //
}
if (document.layers){ // We have Netscape 4+ //
window.captureEvents(Event.MOUSEDOWN); // if you click a mouse button //
window.onmousedown=function(e){if(e.which!=1&&e.target==document){return false;}} // if you didn't press button nr.1 on my document
}