// Statusleistentext
self.defaultStatus = 'NET-RACK® SHOP';
function show(text)
{
myText = text;
 setTimeout("window.status = myText", 0);
 return true;
}

// Dokument drucken
function get_doc(medium,bestellungen_id) {
  var breite=680;
  var hoehe=500; 
  var positionX=((screen.availWidth / 2) - breite / 2); 
  var positionY=((screen.availHeight / 2) - hoehe / 2); 
  pop=window.open('get_doc.cfm?medium='+medium+'&bestellungen_id='+bestellungen_id,'get_doc','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,fullscreen=0,width='+breite+',height='+hoehe+',top=10000,left=10000'); 
  pop.resizeTo(breite,hoehe); 
  pop.moveTo(positionX,positionY); 
}

// Maxi-Foto
function zoom_foto(foto) { 
window.open('zoom_foto.cfm?foto='+foto,'foto','width=780,height=580,locationbar=yes,menubar=no,toolbar=no,status=no,resizeable=yes,scrollbars=0');
}

// Captivate
function captivate(nummer) {
	window.open('captivate.cfm?id='+nummer,'captivate','width=1024,height=768,locationbar=yes,menubar=no,toolbar=no,status=no,resizeable=yes,scrollbars=0');
}

// Rechter Mausklick
var text="© NET-RACK® SHOP";

if (document.layers){
    window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
    window.onmousedown=rightclick;
    window.onmouseup=rightclick;
    
    function rightclick(e) {
    if (e.which == 3) {
    alert(text);
    return false; 
    }
    else {
        return true; 
        }
    }
}

if (document.all){
    function click() {
    if (event.button==2) {
    alert(text)
    }
    
    if (event.button==3) {
    alert(text)}
    }
    document.onmousedown=click
}