if(top!=self)
top.location.href=self.location.href

function openwindow (url) {
aWindow=window.open(url, "thewindow", "toolbar=no,  width=620, height=500, status=yes, scrollbars=yes, resizable=yes, menubar=no");
}

function openwindow1(url){
  aWindow=window.open(url,"thewindow","toolbar=0,location=0,directories=0,menuBar=1,scrollbars=1,resizable=1,width=620,height=500,left=150,top=50,status=yes");
 }

function describe(text){
window.status=text;
return true; <!-- tällä saadaan viesti näkymään kunnes se poistetaan-->
}
function clearstatus(text){
window.status=text;
}


<!-- hiiren oikea painike ei toimi-->

var message="Kaikki materiaali tällä sivustolla on tekijänoikeuslain alaista."; 
function click(e) {
if (document.all) {
if (event.button == 2) { // Numero 1 on vasen näppäin

alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;


