function Lade_Array() {
         BilderDaten = new Array('../../PICTURES/98-001.gif','../../PICTURES/anf.gif') ;
		 Fenster = new Array(null , null );
}

function Imagemap(Datei,Name,width,height,Orig_URL) {
  if ( width > 800 ) width = 800;
  if ( height > 600 ) height = 600;
  Fenster = window.open( Datei, Name, "resizable=yes scrollbars=yes, width="+width+", height="+height );
  Fenster.outerWidth=width;
  Fenster.moveTo(5,5);
  Fenster.resizeTo(width,height);
  Fenster.screenTop = 5;
    
  Fenster.focus();
 
}
function GrafikFenster(Datei,Name,width,height) {
  Fenster = window.open( "../../HTML/dummy.html", Name, "resizable=yes width="+width+", height="+height );
  Fenster.outerWidth=width;
  Fenster.outerHeight=height;
  with ( Fenster.document ) {
    open( 'text/html','replace' );
    write( '<HTML><HEAD><TITLE>Zum Schlie&szlig;en bitte auf das Bild klicken</TITLE>' );
  	write( '<HEAD><BODY STYLE="margin-left=0;margin-top=0;">' );
	write( '<A HREF="javascript:void(window.close())">');
	/* write( '<IMG SRC='+Datei+' WIDTH='+width+'px HEIGHT='+height+'px ALT="Klicken zum Schliessen" BORDER=0></A>' ); */
	write( '<IMG SRC='+Datei+' ALT="Klicken zum Schliessen" BORDER=0></A>' ); write( '</BODY></HTML>' );
	close();
  }
  Fenster.focus();
 
}
function a_GrafikFenster(Datei,width,height) {
  if ( Fenster[Datei] && Fenster[Datei].open ) {
     Fenster[Datei].close;
	 alert( Datei + ' geschlossen' );
  }
  Fenster[Datei] = window.open( "../../HTML/dummy.html", Name, "resizable=yes, width="+width+", height="+height );
  with ( Fenster[Datei].document ) {
    open( 'text/html','replace' );
    write( '<HTML><HEAD><TITLE>Zum Schlie˜en bitte auf das Bild klicken</TITLE>' );
  	write( '<HEAD><BODY>' );
	write( '<A HREF="javascript:void(window.close())">');
	write( '<IMG SRC='+BilderDaten[Datei]+' WIDTH="100%" HEIGHT="100%" ALT="Klicken zum Schliessen" BORDER=0></A>' );
	write( '</BODY></HTML>' );
	close();
  }
  for ( i=1; i< Fenster.length; i++ ) {
    Fenster[i].focus();
  }
}
function Berechnung(Datei) {
      var Fenster = window.open( Datei, 'xx',"resizable=no, dependent=yes,width=300, height=500");
      Fenster.innerHeight=500;
      Fenster.innerWidth=300;
      Fenster.focus();
}

function ExtraFenster(Datei,Name,Features) {
      window.open( Datei,Name,Features );
}

function ScheinSchema( ScheinName, Position ) {
      var Fenster = window.open( '', 'xx',"resizable=no, dependent=yes,width=400, height=300");
      Fenster.innerHeight=300;
      Fenster.innerWidth=400;
      Fenster.focus();
      ZellBreite = 40;
      ZellHoehe = 75;
      with ( Fenster ) {
          document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
          document.write( '<html>');
          document.write( '<head>');
          document.write( '<title>Anforderungsschein - schematische Darstellung</title>');
          document.write( '<SCRIPT LANGUAGE="JavaScript" SRC="../../JAVA/Picture.js" TYPE="text/javascript"></SCRIPT>');
          document.write( '<style type="text/css">');
          document.write( '<!--');
          document.write( 'td { font-family: verdana, helvetica, sans-serif; font-size: 11px; }');
          document.write( '.titel1 { font-family: verdana, helvetica, sans-serif; font-size: 14px;font-weight: bold; }');
          document.write( '.titel2 { font-family: verdana, helvetica, sans-serif; font-size: 11px; text-align: center; border-bottom: 1px solid black;}');
          document.write( '.normal { background-color: #bbbbbb; width:'+ZellBreite+'px; height: '+ZellHoehe+'px;} ');
          document.write( '.aktiv { background-color: #ee2200;width:'+ZellBreite+'px; height: '+ZellHoehe+'px;}');
          document.write( '-->');
          document.write( '</style>');
          document.write( '</head>');
          document.write( '<body>');
          document.write( '<table summary="" style="border: 1px solid black;background-color: #dddddd;" cellpadding=1 cellspacing=0>');
          document.write( '<tr><td class="titel1" colspan=2 align="center">Anforderungsschein '+ScheinName+' </td></tr>');
          document.write( '<tr><td class="titel2" style="border-right: 1px solid black;">Vorderseite</td><td class="titel2" >R&uuml;ckseite</td></tr>');
          document.write( '<tr>');
          document.write('<td width="50%" height="'+ZellHoehe+'" >&nbsp;</td>');
          document.write( '<td rowspan=2>');
          document.write( '<table summary="" width="100%" height="100%" cellpadding=0 cellspacing=1 border=0>');
          document.write( '<tr>');
         if ( Position == 9 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 12 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 15 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 18 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
          document.write('</tr>');
          document.write('<tr>');
         if ( Position == 10 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 13 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 16 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 19 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
          document.write('</tr>');
          document.write('<tr>');
         if ( Position == 11 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 14 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 17 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 20 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
          document.write('</tr>');
          document.write('</table>');
          document.write('</td>');
          document.write('</tr>');
          document.write('<tr>');
          document.write('<td height="75%" >');
          document.write('<table summary="" width="100%" height="100%" cellpadding=0 cellspacing=1 border=0>');
          document.write('<tr>');
         if ( Position == 1 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 3 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 5 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 7 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
          document.write('</tr>');
          document.write('<tr>');
         if ( Position == 2 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 4 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 6 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
         if ( Position == 8 ) {
            document.write('<td class="aktiv">');
         } else {
            document.write('<td class="normal">');
         }
         document.write('<img alt="" src="../../IMAGES/spacer.gif" height="'+ZellHoehe+'" width="'+ZellBreite+'" border="0" /></td>' );
          document.write('</tr>');
          document.write('</table>');
          document.write('</td>');
          document.write('</tr>');
          document.write('<tr><td colspan=2 align="center">');
	  document.write( '<A HREF="javascript:void(window.close())">Fenster schliessen</a></td></tr>');
          document.write('</table>');
          document.write('</body>');
          document.write('</html>');
      }
}
