//---------------------------------------------------
//
//  MidiShop
//
//  Hilfsfunktionen (lokal)
//
//---------------------------------------------------


//---- Allgemein ----
CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("index.html")+1),10);
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) {
  if (CSBVers < 4) return document[n];
  var curDoc = ly ? ly.document : document; var elem = curDoc[n];
  if (!elem) {
    for (var i=0;i<curDoc.layers.length;i++) {
      elem = CSFindElement(n,curDoc.layers[i]);
      if (elem) return elem;
    }
  }
  return elem;
}

//---- Formular finden ----
function find(form) {
  var index = form.nextpage.selectedIndex;
  if (form.nextpage.options[index].value != '0') self.location = form.nextpage.options[index].value;
}

//---- Neues Fenster öffnen ----
function openWin(url, windowname, w, h) {
  if (document.location.protocol == 'https:') {
    url = parent.homeSSL + url
  }
  //newWin=window.open(url, windowname, "scrollbars=yes,width=" + w + ",height=" + h);
  newWin=window.open(url,windowname, "toolbar=no,location=no,directories=no,menubar=no,status=yes,scrollbars=yes,width=" + w + ",height=" + h);
  newWin.focus();
  if (navigator.appName.indexOf("Netscape") != -1)
    newWin.focus();
}

//---- Quelle auf Server finden und Seite per Email empfehlen ----
function emailSite() {
  var s = "";
  var href = document.location.href;
  s += "<a href=";
  s += "mailto:?";
  s += "subject=Linktipp&nbsp;auf&nbsp;Boyskin&nbsp;f&uuml;r&nbsp;Sie&";
  s += "body=";
  s += href;
  s += ">Seite per E-Mail empfehlen</a>";
  return s;
}

//---- Header schreiben ----
function showHeader() {
  var s= "";
  s += "<table width=\"100%\" height=\"85\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
  s += "<tr>";
  s += "<td width=\"100%\" class=\"head\"><img src=\"images_site/nix.gif\" ";
  s += "height=\"1\" width=\"30\" border=\"0\" alt=\"\"></td>";
  s += "</tr>";
  s += "</table>";
  s += "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
  s += "<tr>";
  s += "<td align=\"right\">";
//s += "<a href=\"javascript:openWin('partnerprogramm.html','newWindow','450','450')\">Partnerprogramm</a> &nbsp; ";
  s += "<a href=\"javascript:openWin('kontakt.asp','newWindow','450','450')\">Kontakt</a> &nbsp; ";
  s += "<a href=\"javascript:parent.getURL('index_home.html')\">Home</a> &nbsp;";
  s += "<img src=\"images_site/nix.gif\" height=\"1\" width=\"30\" border=\"0\" alt=\"\">";
  s += "</td>";
  s += "</tr><tr>";
  s += "<td>";
  s += "<img src=\"images_site/nix.gif\" height=\"1\" width=\"30\" border=\"0\" alt=\"\">";
  s += "<a href=\"http://www.boyskin.com/shop\" target=\"_top\"><img src=\"images_site/shop1.gif\" alt=\"Zum Shop\" border=\"0\"></a>&nbsp;";
  s += "<a href=\"http://www.boyskin.com/en\" target=\"_top\"><img src=\"images_site/en_uk.gif\" alt=\"English\" border=\"0\"></a>&nbsp;";
  s += "<a href=\"http://www.boyskin.com/es\" target=\"_top\"><img src=\"images_site/es.gif\" alt=\"Español\" border=\"0\"></a>&nbsp;";
  s += "<a href=\"http://www.boyskin.com/fr\" target=\"_top\"><img src=\"images_site/fr.gif\" alt=\"Français\" border=\"0\"></a>&nbsp;";
  s += "<a href=\"http://www.boyskin.com/it\" target=\"_top\"><img src=\"images_site/it.gif\" alt=\"Italiano\" border=\"0\"></a>&nbsp;";
  s += "<a href=\"http://www.boyskin.com/de\" target=\"_top\"><img src=\"images_site/de.gif\" alt=\"German\" border=\"0\"></a>&nbsp;";
  s += "</td>";
  s += "</tr>";
  s += "</table>";
  s += "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
  s += "</table>";
  return s;
}
//---- Footer schreiben ----
function showFooter() {
  var s = "";
  s += "<p align=\"center\">";
  s += "<a href=\"#top\">Nach oben</a> &nbsp; ";
  s += "<a href=\"javascript:self.print()\">Seite drucken</a> &nbsp; ";
  s += emailSite();
  s += " &nbsp; ";
  s += "<a href=\"mailto:werbekondome@boyskin.com\">E-Mail an Boyskin</a>";
  s += "<br>";
  s += "&copy; Copyright Boyskin. Alle Rechte vorbehalten.";
  s += "</p>";
  return s;
}

//---- Box links Nr. 1 schreiben ----
function showBoxLeft1() {
  var s = "";
  //--- Kondomwerbung ----
  s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
  s += "<tr>";
  s += "<td width=\"100%\"><img src=\"images_site/cat_kondomwerbung.gif\" ";
  s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Kondome\"></td>";
  s += "</tr><tr>";
  s += "<td width=\"100%\">";
  s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
  s += "<tr>";
  s += "<td><a href=\"c101.html\">Warum Kondome?</a><br>";
//s += "<a href=\"c102.html\">Hochwertige Produkte</a><br>";
  s += "<a href=\"c103.html\">Angebotspalette</a><br>";
  s += "<a href=\"c104.html\">Variantenreichtum</a><br>";
  s += "<a href=\"c105.html\">Kondomstyle & Farben</a><br>";
  s += "<a href=\"c106.html\">Einsatzfeld</a><br>";
//s += "<a href=\"c107.html\">Abwicklung</a><br>";
  s += "<a href=\"c108.html\">FAQ</a><br>";
  s += "<a href=\"c109.html\">Kontakt</a><br>";
  s += "</tr></table></td></tr></table>";
  //--- Fire & Love ----
  s += "<br><img src=\"images_site/nix.gif\" height=\"10\" width=\"1\" border=\"0\" alt=\"\"><br>";
  s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
  s += "<tr>";
  s += "<td width=\"100%\"><img src=\"images_site/cat_firelove.gif\" ";
  s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Kondommarken\"></td>";
  s += "</tr><tr>";
  s += "<td width=\"100%\">";
  s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
  s += "<tr>";
  s += "<td><a href=\"c401.html\">Z&uuml;ndholzbriefchen</a><br>";
  s += "<a href=\"c405.html\">Kontakt</a></td>";
  s += "</tr></table></td></tr></table>";
  //--- Pr&auml;sentationthiszubeh&ouml;r ----
  s += "<br><img src=\"images_site/nix.gif\" height=\"10\" width=\"1\" border=\"0\" alt=\"\"><br>";
  s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
  s += "<tr>";
  s += "<td width=\"100%\"><img src=\"images_site/cat_praesentationsdisplays.gif\" ";
  s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Kondomzubeh&ouml;r\"></td>";
  s += "</tr><tr>";
  s += "<td width=\"100%\">";
  s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
  s += "<tr>";
  s += "<td><a href=\"c201.html\">Thekendisplay</a><br>";
  s += "<a href=\"c202.html\">H&auml;ngedisplay</a><br>";
  s += "<a href=\"c203.html\">St&auml;nder</a><br>";
  s += "<a href=\"c204.html\">Kontakt</a><br>";
  s += "</tr></table></td></tr></table>";
  //--- Firmeninfo ----
  s += "<br><img src=\"images_site/nix.gif\" height=\"10\" width=\"1\" border=\"0\" alt=\"\"><br>";
  s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
  s += "<tr>";
  s += "<td width=\"100%\"><img src=\"images_site/cat_firmeninfo.gif\" ";
  s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Shopinfo\"></td>";
  s += "</tr><tr>";
  s += "<td width=\"100%\">";
  s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
  s += "<tr>";
  s += "<td><a href=\"javascript:openWin('impressum.html','newWindow','450','450')\">Impressum</a><br>";
  s += "<a href=\"javascript:openWin('agb.html','newWindow','450','450')\">AGB</a><br>";
  s += "<a href=\"javascript:openWin('ecg.html','newWindow','450','450')\">Info lt. &sect;5 Abs1 ECG</a></td>";
  s += "</tr></table></td></tr></table>";
  return s;
}
//---- Box links Nr. 2 schreiben ----
function showBoxLeft2() {
  var s = "";
  return s;
}
//---- Box links Nr. 3 schreiben ----
function showBoxLeft3() {
  var s = "";
  return s;
}
//---- Box rechts Nr. 1 schreiben ----
function showBoxRight1() {
  var s = "";
  //--- Unsere Leistungen ----

  s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
  s += "<tr>";
  s += "<td width=\"100%\"><img src=\"images_site/cat_werbekondome.gif\" ";
  s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Werbekondome\"></td>";
  s += "</tr><tr>";
  s += "<td width=\"100%\">";
  s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
  s += "<tr>";
  s += "<td><a href=\"c301.html\" class=\"blue\">Unsere Leistungen</a><br>";
  s += "<a href=\"c302.html\" class=\"blue\">Hochwertige Produkte</a><br>";
  s += "<a href=\"c303.html\" class=\"blue\">Schnelle Abwicklung</a><br>";
  s += "<a href=\"c304.html\" class=\"blue\">Qualit&auml;tsmanagement</a><br>";
  s += "<a href=\"c306.html\" class=\"blue\">Referenzen</a><br>";
  s += "<a href=\"c305.html\" class=\"blue\">Kontakt</a>";
  s += "<p><a href=\"c301.html\"><img src=\"images_site/news_werbekondome1.gif\" width=\"140\" height=\"193\" border=\"0\"></a></td>";
  s += "</tr></table></td></tr></table>";
//--- Partnerprogramm ----
//s += "<br><img src=\"images_site/nix.gif\" height=\"10\" width=\"1\" border=\"0\" alt=\"\"><br>";
//s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
//s += "<tr>";
//s += "<td width=\"100%\"><img src=\"images_site/cat_partner.gif\" ";
//s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Dein Gewinn\"></td>";
//s += "</tr><tr>";
//s += "<td width=\"100%\">";
//s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
//s += "<tr>";
//s += "<td><a href=\"javascript:openWin('partnerprogramm.html','newWindow','450','450')\" class=\"blue\">PARTNER WERDEN</a><br>";

//s += "<div class=\"fontblue\">Profitieren Sie mit Boyskin Kondome und sichern Sie sich Ihre Vorteile!</div></td>";
//s += "</tr></table></td></tr></table>";
  return s;
}
//---- Box rechts Nr. 2 schreiben ----
function showBoxRight2() {
  var s = "";
  return s;
}
//---- Box rechts Nr. 3 schreiben ----
function showBoxRight3() {
  var s = "";
  return s;
}
//---- Box f&uuml;r Bestellung schreiben ----
function showBoxOrder(Status) {
  var s = "";
  if (Status == "1") {
    s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
    s += "<tr>";
    s += "<td width=\"100%\"><img src=\"images_site/cat_bestelluebersicht.gif\" ";
    s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Bestellstatus\"></td>";
    s += "</tr><tr>";
    s += "<td width=\"100%\">";
    s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#FFFFFF\">";
    s += "<tr>";
    s += "<td>";
    s += "<a href=\"order1.html\">&raquo; Schritt 1:</a><br>";
    s += "<div class=\"fontred\">";
    s += "Wahl der Zahlungs- und Versandart<br>";
    s += "&raquo; Schritt 2:<br>";
    s += "Eingabe von Namen und Postanschrift<br>";
    s += "&raquo; Schritt 3:<br>";
    s += "Kontrolle deiner Angaben und Absenden";
    s += "</div>";
    s += "</td></tr></table></td></tr></table>";
  } else if (Status == "2") {
    s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
    s += "<tr>";
    s += "<td width=\"100%\"><img src=\"images_site/cat_bestelluebersicht.gif\" ";
    s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Bestellstatus\"></td>";
    s += "</tr><tr>";
    s += "<td width=\"100%\">";
    s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#FFA710\">";
    s += "<tr>";
    s += "<td>";
    s += "<a href=\"order1.html\">&raquo; Schritt 1:</a><br>";
    s += "<div class=\"fontred\">";
    s += "Wahl der Zahlungs- und Versandart<br>";
    s += "</div>";
    s += "<a href=\"order2.html\">&raquo; Schritt 2:</a><br>";
    s += "<div class=\"fontred\">";
    s += "Eingabe von Namen und Postanschrift<br>";
    s += "&raquo; Schritt 3:<br>";
    s += "Kontrolle deiner Angaben und Absenden";
    s += "</div>";
    s += "</td></tr></table></td></tr></table>";
  } else if (Status == "3") {
    s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
    s += "<tr>";
    s += "<td width=\"100%\"><img src=\"images_site/cat_bestelluebersicht.gif\" ";
    s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Bestellstatus\"></td>";
    s += "</tr><tr>";
    s += "<td width=\"100%\">";
    s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#FFA710\">";
    s += "<tr>";
    s += "<td>";
    s += "<a href=\"order1.html\">&raquo; Schritt 1:</a><br>";
    s += "<div class=\"fontred\">";
    s += "Wahl der Zahlungs- und Versandart<br>";
    s += "</div>";
    s += "<a href=\"order2.html\">&raquo; Schritt 2:</a><br>";
    s += "<div class=\"fontred\">";
    s += "Eingabe von Namen und Postanschrift<br>";
    s += "</div>";
    s += "<a href=\"order3.html\">&raquo; Schritt 3:</a><br>";
    s += "<div class=\"fontred\">";
    s += "Kontrolle deiner Angaben und Absenden";
    s += "</div>";
    s += "</td></tr></table></td></tr></table>";
  }
  return s;
}

