        function opendetailwindow() {
    window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
  }

  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by 4images - Image Gallery Management System");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by 4images - Image Gallery Management System");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }
  //Cookie setzen
 var ax = new Date();
 ax = new Date(ax.getTime() +1000*60*60*24*365);     //1000*60*60*24*365    ms/s/min/h/tage
 document.cookie = 'Bildschirmbreite='+screen.width+'; expires='+ax.toGMTString()+'; path=/';
