 function OpenNewWindow(bild,artist,text)
{
 xsize = 800;// Zusatz für Rand rechts und links
 ysize = 800; //Zusatz für Rand oben und unten - damit Button angezeit werden kann

        NewWindow=window.open("","window","height="+ysize+",width="+xsize+",scrollbars=yes,resizable=yes,top=0,left=300");

        NewWindow.document.write ("<html>\n<head>\n<title>Galerie");
        NewWindow.document.write ("</title>\n</head>\n");
        NewWindow.document.write ("<body text='#000032' background='images/background.jpg' topmargin='20' onload='focus()'>\n\n");

        NewWindow.document.write ("<table align='center' cellpadding='5' cellspacing='5'>\n<tr>");
        NewWindow.document.write ("<td align='left' valign='top'>");
        NewWindow.document.write ("<img src=");
        NewWindow.document.write (bild);
        NewWindow.document.write (" border='2'>");
        NewWindow.document.write ("<td align='left' valign='top'>");
        NewWindow.document.write ("<font face='Tahoma,Helvetica,Arial' size='3'><b>");
        NewWindow.document.write (artist);
        NewWindow.document.write ("</b></font>");
        NewWindow.document.write ("<font face='Tahoma,Helvetica,Arial' size='3'>");
        NewWindow.document.write (text);
        NewWindow.document.write ("</font></td></tr><tr>");
        NewWindow.document.write ("<td align='left' valign='bottom'>");
        NewWindow.document.write ("<br><left><form><input type='button' value='FENSTER SCHLIESSEN' style='font-family: Tahoma,Helvetica,Arial; font-size: 10px' onClick='self.close()'>");
        NewWindow.document.write ("</td></tr></table>");

        NewWindow.document.write ("</form></body></html>");
        NewWindow.document.close();
        NewWindow.resizeTo(xsize,ysize);
}
function wallpaper()
{
  var hoehe = screen.availHeight;
  document.write ("height:"+hoehe+" ");
}

function h_menu()
{
  var hoehe = window.innerHeight; // Zusatz für Rand rechts und links

  document.write (" <table height='"+hoehe+" 'width='160' cellpadding='5' cellspacing='5' bgcolor='#F3CD5F'>");

}

function tabelle()
{
  var tabsize = window.innerWidth-160; // Zusatz für Rand rechts und links
  var spalte = tabsize-470;

  if (tabsize <= "1000"){
  document.write (" <table width=' " +tabsize+ " ' border='1' cellspacing='0' cellpadding='0' align='center'>");
  document.write (" <tr><td width='"+spalte+"'></td>");

  }else
  document.write (" <table width='900' border='1' cellspacing='0' cellpadding='0'>");
  document.write (" <tr><td width='430'></td>");

}

function tabelle_daten()
{
  var tabsize = window.innerWidth-160; // Zusatz für Rand rechts und links

  if (tabsize <= "824"){
  document.write (" <table width=' " +tabsize+ " ' border='0' cellspacing='0' cellpadding='0'>");

  }else
  document.write (" <table width='850' border='0' cellspacing='0' cellpadding='0'>");

}

function tabelleindex()
{
  var tabsize = document.body.offsetWidth-345; // Zusatz für Rand rechts und links
  document.write (" <table width=' " +tabsize+ " ' border='0' cellspacing='2'>");
}

function tabelleform()
{
  var tabsize = document.body.offsetWidth-250; // Zusatz für Rand rechts und links
  document.write (" <table width=' " +tabsize+ " ' border='0' cellspacing='0' cellpadding='0'>");
}

function OpenAngebot(bild,artist,text,atext)
{
 xsize = screen.availWidth-100;// Zusatz für Rand rechts und links
 ysize = screen.availHeight; //Zusatz für Rand oben und unten - damit Button angezeit werden kann

        NewWindow=window.open("","window","height="+ysize+",width="+xsize+",scrollbars=yes,resizable=yes,top=0,left=0");

        NewWindow.document.write ("<html>\n<head>\n<title>Angebote");
        NewWindow.document.write ("</title>\n</head>\n");
        NewWindow.document.write ("<body text='#FFFFFF' background='../images/alg_backgr.gif' onload='focus()'>\n\n");

        NewWindow.document.write ("<table align='left' cellpadding='5' cellspacing='5'>\n<tr>");
        NewWindow.document.write ("<td align='left' valign='top'>");
        NewWindow.document.write ("<img src=");
        NewWindow.document.write (bild);
        NewWindow.document.write (">");
        NewWindow.document.write ("<td align='left' valign='top'>");
        NewWindow.document.write ("<font face='Tahoma,Helvetica,Arial' size='3'><b>");
        NewWindow.document.write (artist);
        NewWindow.document.write ("</b></font>");
        NewWindow.document.write ("<font face='Tahoma,Helvetica,Arial' size='2'>");
        NewWindow.document.write (text);
        NewWindow.document.write ("</font><font face='Tahoma,Helvetica,Arial' size='3' color='#FFBE00'>");
        NewWindow.document.write (atext);
        NewWindow.document.write ("</font></td></tr><tr>");
        NewWindow.document.write ("<td align='left' valign='bottom'>");
        NewWindow.document.write ("<br><left><form><input type='button' value='FENSTER SCHLIESSEN' style='font-family: Tahoma,Helvetica,Arial; font-size: 10px' onClick='self.close()'>");
        NewWindow.document.write ("</td></tr></table>");

        NewWindow.document.write ("</form></body></html>");
        NewWindow.document.close();
        NewWindow.resizeTo(xsize,ysize);
}