/*
Java-Script Source für alle Seiten von Schrammshop.de

erstellt: 04.07.2006
geändert: 18.07.2006
© by Steven Kaiser , Plan-Soft Einrichtungsplanung GmbH
*/

 function DetailFenster(parameter) {
     MeinFenster1 = window.open("photo.php?bildname="+parameter, "detailfenster", "width=680, height=540, left=20, top=20, menubar=no, location=no, scrollbars=no");
     MeinFenster1.moveTo((screen.width-680)/2,(screen.height-540)/2);
     MeinFenster1.focus();
   }
   
function ZeigeStatus(msg)
{
   // Info für Statusbar
   status = msg;
   document.MM_returnValue = true;
}

function CloseWindow()
{
  // schließt aktuelles Fenster
  self.close();
}

function OpenBildWindow(sURL)
{
  var Posx = 800; //650
  var Posy = 620; //520
  // neues Fenster für ein Bild öffnen
  //FensterBild = window.open("http://" + window.location.host +'/test/' + sURL, "myBild", "toolbar=no,menubar=no,status=no,scrollbars=auto,resizable=no,width="+Posx+",height="+Posy);
  FensterBild = window.open('../' + sURL, "myBild", "toolbar=no,menubar=no,status=no,scrollbars=auto,resizable=no,width="+Posx+",height="+Posy);
  // Fenster zentrieren
  FensterBild.moveTo((screen.width-Posx)/2,(screen.height-Posy)/2);
  FensterBild.focus();
}

function OpenPDF(sFile)
{
  var Posx = 800;
  var Posy = 600;
  // neues Fenster mit PDF-Datei öffnen
  FensterPDF = window.open(sFile, "myPDF", "toolbar=no,menubar=no,status=no,scrollbars=auto,resizable=yes,width="+Posx+",height="+Posy);
  // Fenster oben links anzeigen
  FensterPDF.moveTo(0,0);
  FensterPDF.focus();
}

function OpenLink(sFile)
{
  var Posx = 800;
  var Posy = 600;
  // neues Fenster mit Link öffnen
  FensterLink = window.open(sFile, "myLinkF", "toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes,width="+Posx+",height="+Posy);
  // Fenster oben links anzeigen
  FensterLink.moveTo(0,0);
  FensterLink.focus();
}

function OpenPano(sFile)
{
  var Posx = 450;
  var Posy = 300;
  // neues Fenster mit Link öffnen
  FensterLink = window.open(sFile, "myLinkF", "toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no,width="+Posx+",height="+Posy);
  // Fenster oben links anzeigen
  FensterLink.moveTo(0,0);
  FensterLink.focus();
}






