
if (document.getElementById){
  document.write('<style type=\"text/css\">');
  document.write('.ttip{display: none;}');
  document.write('<\/style>');
}

function basket_back() {
  document.write('<font face=Arial size=1>');
  document.write('<a href=\"javascript:history.back();\">&lt;zurück</a>');
  document.write('</font><br>');
}


function showPage(NewPage,NewWidth,NewHeight) {
  if (!NewWidth) { NewWidth = 640; }
  if (!NewHeight) { NewHeight = 480; }
  Fenster1 = window.open(NewPage,'Info','width='+NewWidth+',height='+NewHeight+',scrollbars=yes,toolbar=no');
  Fenster1.resizeTo(NewWidth,NewHeight);
  Fenster1.focus();
}

function showFixedPage(NewPage,NewWidth,NewHeight) {
  if (!NewWidth) { NewWidth = 640; }
  if (!NewHeight) { NewHeight = 480; }
  Fenster1 = window.open(NewPage,'Info','width='+NewWidth+',height='+NewHeight+',scrollbars=no,toolbar=no,statusline=no');
  Fenster1.resizeTo(NewWidth,NewHeight);
  Fenster1.focus();
}


function showAngebot() {
  Fenster2 = window.open('http://www.armaturen-versand.de/angebot.html','Angebot','width=640,height=450,scrollbars=yes,toolbar=no');
  Fenster2.focus();
}


function showVK() {
  Fenster3 = window.open('http://www.armaturen-versand.de/cgi-bin/show.pl?versandkosten=druck','Versandkosten','width=760,height=480,scrollbars=yes,toolbar=1');
  Fenster3.focus();
}


function linkVK() {
  document.write('<font size=1 color=white>zuzügl. <a style=\"color: white; text-decoration: underline;\" href=\"javascript:showVK();\">Versandkosten</a></font>');
}


function showMWST() {
  document.write('<font size=1 color=white>inkl. 16% MwSt. zuzügl.  <a style=\"color: white; text-decoration: underline;\" href=\"javascript:showVK();\">Versandkosten</a></font>');
}


function showMWST2() {
  document.write('Alle Preise inkl. 16% MwSt. zuzügl.  <a style=\"color: #006699; text-decoration: underline;\" href=\"javascript:showVK();\">Versandkosten</a>');
}

function Bestellen(bestellung) {
  Fenster4 = window.open(bestellung, "Bestellwin", "width=800,height=600,left=100,top=50,scrollbars=yes,toolbar=no,status=no,menubar=no,location=no");
  Fenster4.focus();
}


function showPic(NewPic,NewWidth,NewHeight) {
  if (NewWidth == 0) { NewWidth = parseInt(screen.availWidth*0.8); }
  if (NewHeight == 0) { NewHeight = parseInt(screen.availHeight*0.8); }
  
  NewHeight = NewHeight+30;
  PopPage = window.open('','Details','width='+NewWidth+',height='+NewHeight+',top=10,left=10');
  PopPage.resizeTo(NewWidth,NewHeight);
  PopPage.focus();
  PopPage.document.open();
  PopPage.document.writeln('<html><head>');
  PopPage.document.writeln('<title>Vergr&ouml;&szlig;erung</title>');
  PopPage.document.writeln('</head>');
  PopPage.document.writeln('<body bgcolor=\"white\">');
  PopPage.document.writeln('<center><table border=0 cellpadding=0 cellspacing=0 width=\"100%\" height=\"100%\"><tr>');
  PopPage.document.writeln('<td align=center valign=middle height=\"100%\" style=\"font-family: Arial,Helvetica,sans-serif; font-size: 9px;\">');
  PopPage.document.writeln('<img src=\"'+NewPic+'\" border=0><br><br>');
  PopPage.document.writeln('<a title=\"Fenster schlie&szlig;en\" href=\"javascript:window.close();\">Fenster schlie&szlig;en</a><br>');
  PopPage.document.writeln('</td></tr></table>');
  PopPage.document.writeln('</center></body></html>');
  PopPage.document.close();
  PopPage.focus();
}


function ShowDetails(PopGFX,NewWidth,NewHeight) {
  if (NewWidth == 0) { NewWidth = parseInt(screen.availWidth*0.8); }
  if (NewHeight == 0) { NewHeight = parseInt(screen.availHeight*0.8); }
  
  PopPage = window.open('','Details','width='+NewWidth+',height='+NewHeight+',top=10,left=10,scrollbars=1,');
  PopPage.focus();
  PopPage.document.open();
  PopPage.document.writeln('<html><head>');
  PopPage.document.writeln('<title>Detail-Skizze</title>');
  PopPage.document.writeln('</head>');
  PopPage.document.writeln('<body bgcolor=\"white\">');
  PopPage.document.writeln('<p align=right><font face=\"Arial,Helvetica,sans-serif\" size=1>');
  PopPage.document.writeln('<input type=\"button\" name=\"button\" value=\"Drucken\" onClick=\"javascript:self.print();\">');
  PopPage.document.writeln('</font></p>');
  PopPage.document.writeln('<center>');
  PopPage.document.writeln('<img src=\"'+PopGFX+'\" border=0>');
  PopPage.document.writeln('</center></body></html>');
  PopPage.document.close();
  PopPage.focus();
}


function ShowTip(obj){
  if(document.getElementById){
    var tip = document.getElementById(obj);
    if (tip.style.display != "block") {
      tip.style.display = "block";
      var cnt = 1;
      
      while (document.getElementById("z"+cnt)){
        if ("z"+cnt != obj) {
     	  document.getElementById("z"+cnt).style.display="none";
     	}
        cnt++;
      }

    } else {
      tip.style.display = "none";
    }
  }
}

