function oeffner() {
  h=open('../image/rsf.htm', 'RESY_RSF','width=460,height=429,scrollbars=no,toolbar=no,status=no,resizable=no,menubar=no,location=no,directories=no');
  h.focus();
}

function newsbox(id) {
  h=open('newsdetail.php?id='+id,'newswin','width=460,height=429,scrollbars=auto,toolbar=no,status=no,resizable=no,menubar=no,location=no,directories=no');
  h.focus();
}

function bildpopup(bild,text) {
  h=open('../bildpopup.php?image='+bild+'&text='+text,'BILDPOPUP','width=460,height=600,scrollbars=no,toolbar=no,status=no,resizable=no,menubar=no,location=no,directories=no');
  h.focus();
}



var clickmessage="© Reber Systematic GmbH + Co. KG"

function disableclick(e) {
  if (document.all) {
    if (event.button==2||event.button==3) {
      if (event.srcElement.tagName=="IMG"){
        alert(clickmessage);
        return false;
      }
    }
  } else if (document.layers) {
    if (e.which == 3) {
      alert(clickmessage);
      return false;
    }
  } else if (document.getElementById) {
    if (e.which==3&&e.target.tagName=="IMG"){
      alert(clickmessage)
      return false
    }
  }
}

function associateimages() {
  for(i=0;i<document.images.length;i++)
  document.images[i].onmousedown=disableclick;
}

if (document.all)
  document.onmousedown=disableclick
else if (document.getElementById)
  document.onmouseup=disableclick
else if (document.layers)
  associateimages()

