//////////// rechte maustaste unterbinden ///////////////////////////////////////////


function click (e) {
  if (!e)
    e = window.event;
  if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
    if (window.opera)
      window.alert("Diese Funktion ist deaktiviert.");
    return false;
  }
}
if (document.layers)
  document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = click;
document.oncontextmenu = click;

/////////////// DOM definieren ///////////////////////////////////////////
function getElementById_NN4(elementId) {
  if (!document.layers[elementId].style) { // NN 4.x bekommt ein style attribut
   document.layers[elementId].style= document.layers[elementId]; }
  return document.layers[elementId];
  }

function getElementById_IE4(elementId) {
  return document.all[elementId];
  }
// hier lernt NN 4.x DOM

if (top.document.layers) {
  document.getElementById = getElementById_NN4;
  }

// hier lernt IE 4.x DOM
if (document.all && !document.getElementById) {
  document.getElementById = getElementById_IE4;
  }





function win(URL, breite, hoehe){
        width=breite+ 20 ;
        height=hoehe + 20;
      if(screen){
            posX = (screen.width-width)/2;
            posY = (screen.height-height)/2;
        }

options="top="+posY+",left="+posX+",width="+width+",height="+height+",location=no,toolbar=no,scrollbars=no,status=no,rezisable=no";
var x = '?x='+URL;

var neuesFenster = window.open('img.php'+x,'Zoom',options);
}



