/* Einbindung im Header:                                                   */
/*        <script src="deprag.js" type="text/javascript"></script>         */
/*                                                                         */
/* Funktion öffnet eine Grafik-Datei in einem neuen Fenster                */
/* Aufruf: <a href="javascript:PreviewCAD('/pfad/datei.gif')">Text</a>     */

function PreviewCAD(CADfile) {
window.open(CADfile,'NewWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=790,height=560')
}

function Weiterleiten(OpenFile) { 
  window.setTimeout("location.href='"+OpenFile+"'", 100); 
}

function LoadFrameInit(Set1) {
 // if(!eval("parent.Inhalt")) { location.replace(Set1+"?aufruf="+location.href); }
 if(!eval("parent.Inhalt")) { location.replace("/error.php?aufruf="+location.href); }
}


function LoadFrame(OpenFile,Lang) {
  if(!eval("parent.Inhalt")) {
  document.close();
  with (document) {  
    open();  
      writeln('<!doctype html public "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">');
      writeln('<html>');
      writeln('<head>');
      writeln('<title>DEPRAG Schulz GmbH u. Co.<'+'/title>');
      writeln('<link rel="SHORTCUT ICON" href="/favicon.ico">');
      writeln('<'+'/head>');
      writeln('<frameset frameborder="0" border="0" framespacing="0" cols="155,*" onload="LoadFrame();">');
      writeln('<frame src="/'+Lang+'/linkleiste/links.htm" name="Linkleiste" marginwidth="0" marginheight="0" scrolling="no">');
      writeln('<frameset frameborder="0" border="0" framespacing="0" rows="35,*">');
      writeln('<frame src="/'+Lang+'/linkleiste/oben.htm" name="oben" marginwidth="0" marginheight="0" scrolling="no">');
      writeln('<frameset frameborder="0" border="0" framespacing="0" cols="720,*">');
        writeln('<frame src=/'+Lang+'/'+OpenFile+'?getframe" name="Inhalt" marginwidth="0" marginheight="10">');
      writeln('<frame src="/'+Lang+'/linkleiste/rechts00.htm" name="leer" scrolling="no">');
      writeln('<'+'/frameset><'+'/frameset><'+'/frameset><'+'/html>');
    close();
    }
  }
} 
