<!--
 function inserat()  {
  if(document.location.search == "?inserat") {
   window.setTimeout("Annonce();",1000);
  }
 }

 function weiter()  {
 /********
   var laenge = document.images.length;
    for(i = 0,x = 0; i < document.images.length;i++)  {
        if(document.images[i].complete == true) {
         x++;
        }
     }
     *****/
     if(document.images) {
       window.setTimeout('document.getElementById("alles").style.visibility = "visible";',300);  // ----
     }
 }

 function MainPos(seite)  {
 if(document.URL == "http://www.sexy-berlinmodelle.de/erotikportal/begin.php") {
  window.location.href = "http://www.sexy-berlinmodelle.de/erotikportal/berlin.html";
 }
 var breit, hoch, allLeft, textTopHoch, LB_Box_Hoch, InhaltHoch, Inhalt_all, Navi_all;
 var imp_img1      = new Image();
  imp_img1.src     = "grafik/imprint_hg_k.jpg";
 var imp_img2      = new Image();
  imp_img2.src     = "grafik/imprint_hg_k2.jpg";
   if(navigator.appName == "Microsoft Internet Explorer") {
     breit      = document.body.clientWidth;
     hoch       = document.body.clientHeight;
     } else {
        breit      = window.innerWidth;
        hoch       = window.innerHeight;
       }
    allLeft  = breit * 0.05;
    document.getElementById("alles").style.width = (breit * 0.9)+"px";
    document.getElementById("alles").style.left = allLeft+"px";

    textTopHoch = document.getElementById("textTop").offsetHeight;   // + 280 und nochmal 10 dazu beginnt der Hauptinhalt, wenn mindestens 412px
    if(textTopHoch + 240 > 410)  {
     inhaltTop = textTopHoch + 200;
    } else {
        inhaltTop = 360;
       }
    LB_Box_Hoch = document.getElementById("linkbox").offsetHeight;
    InhaltHoch  = document.getElementById("inhalte").offsetHeight;
    Inhalt_all  = inhaltTop + InhaltHoch;
    Navi_all    = LB_Box_Hoch + 320;

    var End_Hoch;
    End_Hoch = 0;
    if(Navi_all > Inhalt_all)  {
     End_Hoch = Navi_all + 30;
    } else if(Navi_all < Inhalt_all) {
       End_Hoch = Inhalt_all + 30;
      }
     document.getElementById("inhalte").style.top = inhaltTop+"px";
     var fertig = document.getElementById("alles").style.height = End_Hoch+"px";   // eventuell mit Zeile darunter tauschen -----
     if(fertig) {
       weiter(); //window.setTimeout('document.getElementById("alles").style.visibility = "visible";',500);
        if(seite == "anfang") {
       window.setTimeout('document.getElementById("neugirlis").style.visibility="visible";',2500);
       window.setTimeout('document.getElementById("neugirlis").src="neugirls.php";',2000);
       }
      }

     inserat();
 }
 //window.onload=MainPos

 function ImprintBG(maus)   {
  switch(maus)  {
   case "over" : HG_Bild = "url(grafik/imprint_hg_k2.jpg)";break;
   case "out"  : HG_Bild = "url(grafik/imprint_hg_k.jpg)";break;
  }
  document.getElementById("imprint").style.backgroundImage = HG_Bild;
 }
 function weiterLesen() {
  w_anf = document.getElementById("content1").offsetTop;
  scrollTo(0,w_anf);
 }
 function insFormChk(soll) {
  var head   = document.getElementById("INS_Head").value;
  var mess   = document.getElementById("textfeld").value;
  var kont   = document.getElementById("INS_Kont").value;
  var inFe   = new Array(head,mess,kont);
  for(t=0;t<inFe.length;t++) {
    if(inFe[t] == "") {
     alert("Bitte Felder ausfüllen!");
     return false;
    }
  }
  var eingabe;
  eingabe = document.T_INS.s_eingabe.value;
  if(eingabe != soll) {
   alert('Falscher Sicherheitscode!');
   return false;
  }
 }

 function camaeleon(wer,maus) {
  switch(maus)  {
   case "over" : bg_col = "#7F0000"; s_col = "#C2B898";r_col = "#C2B898";break;
   case "out"  : bg_col = "#C2B898"; s_col = "#7F0000";r_col = "#7F0000";break;
  }
  document.getElementById(wer).style.color           = s_col;
  document.getElementById(wer).style.backgroundColor = bg_col;
  document.getElementById(wer).style.borderColor     = r_col;
 }

 function langeKontr(wer,wo,maximal) {
  eingabe = document.getElementById(wer).value;
  ist     = maximal - eingabe.length;
  if(ist == "-1") {
   ist = 0;
  }
  document.getElementById(wo).innerHTML = ist;
  if(ist <= 0) {
    bisher = eingabe.substr(0,maximal);
    document.getElementById(wer).value = bisher;
    alert("Limit erreicht!");
    return false;
  }
 }
// Nachricht an die Mädels prüfen --------------------------------------------
 function chkMssg(code) {
  var kontakt, nachricht, doppel;
   kontakt   = document.GMS.head.value;
   nachricht = document.GMS.message.value;
   doppel    = Array(kontakt,nachricht);
    for(i=0;i<doppel.length;i++) {
      if(doppel[i] == "") {
       alert("Bitte Felder ausfüllen!");
       return false;
       break;
      }
    }
 // ----------- falsche E-mail Adresse abfangen -------------------------
    var fehler       = "Ungültige E-Mail Adresse";
    var mail_soll    = /^([_a-zA-Z0-9-]+)(\.[_a-zA-Z0-9-]+)*@([_a-zA-Z0-9-]+\.)+([a-zA-Z]{2,})$/;
    var m_string     = kontakt.search(mail_soll);
    if(kontakt.length < 6) {
          alert(fehler);
          return false;
          kontakt = "";
      }  else if(m_string == -1) {
              alert(fehler);
             return false;
              kontakt = "";
          }
 // ----------------  falschen Sicherheitscode abfangen -------------------
    var eingabe;
    eingabe = document.GMS.s_eingabe.value;
    if(eingabe != code) {
     alert('Falscher Sicherheitscode!');
     return false;
    }
 }

 function NformChk(soll) {
  var eingabe1 = document.nBV.kTxt.value;
  var eingabe2 = document.nBV.HTxt.value;
  var probe    = new Array(eingabe1,eingabe2);

  for(t=0;t<probe.length;t++) {
    if(probe[t] == "" || probe[t].length < 20) {
     alert("Bitte Textfelder ausfüllen!\nMindestens 20 Zeichen pro Feld.");
     return false;
    }
  }
  var eingabe;
  eingabe = document.nBV.s_eingabe.value;
  if(eingabe != soll) {
   alert('Falscher Sicherheitscode!');
   return false;
  }
 }
// ------------------ Newseintragsformular -------
function absTop(el) {
     return (el.offsetParent)?
     el.offsetTop+absTop(el.offsetParent) : el.offsetTop;
}
function absLeft(el) {
     return (el.offsetParent)?
     el.offsetLeft+absLeft(el.offsetParent) : el.offsetLeft;
}
function newsmaker(code,str,Nvob)  {
var newsform = '<br />\n<form action="newsmaker.php" enctype="multipart/form-data" name="nBV" method="POST" onsubmit="return NformChk(\''+str+'\')">\n'
                 +'<p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Alle Einträge zum Thema "News der Berliner Erotikszene" sind'
                 +' kostenlos und werden redaktionell geprüft.'
                 +' Ein Recht auf Veröffentlichung besteht nicht.</span></p><br />\n'
                 +'<p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Kurztext / Überschrift:</span>&nbsp;(max. 200 Zeichen)</p>\n'
                 +'<textarea name="kTxt" id="textfeldK" class="k_form_text" style="height:75px;" onfocus="this.style.backgroundColor=\'#eee8aa\';"'
                 +' onblur="this.style.backgroundColor=\'#ffffff\';" onKeyUp="return langeKontr(this.id,\'RESTZ_K\',\'200\')"></textarea>\n'
                 +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_K" style="color:#7F0000;">200</span>&nbsp;Zeichen</p><br />\n'
                 +'<p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Haupttext:</span>&nbsp;(max. 2000 Zeichen)</p>\n'
                 +'<textarea name="HTxt" id="textfeldH" class="k_form_text" style="height:200px;" onfocus="this.style.backgroundColor=\'#eee8aa\';"'
                 +' onblur="this.style.backgroundColor=\'#ffffff\';" onKeyUp="return langeKontr(this.id,\'RESTZ_H\',\'2000\')"></textarea>\n'
                 +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_H" style="color:#7F0000;">2000</span>&nbsp;Zeichen</p><br />\n'
                 +'<p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Ein Bild</span>&nbsp;'
                 +'(optional - nur als .jpg - max. 1MB)</p>\n'
                 +'<input type="file" name="bild" /><br /><br />\n'
                 +'<p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Bitte Sicherheitscode eingeben</span>'
                 +'<img src="grafik2/Code-Bild_'+code+'.gif" border="0" style="vertical-align:middle;margin-left:.5em;margin-right:.5em;">'
                 +'<input type="text" name="s_eingabe" style="width:3em;font:1.1em arial,helvetica,verdana;color:#000000;" maxlength=4 /></p>\n'
                 +'<input type="submit" value="senden&nbsp;&raquo;" class="sender" id="Ab_S" onMouseOver="camaeleon(this.id,\'over\')"'
                 +' onMouseOut="camaeleon(this.id,\'out\')" onfocus="this.blur()" />\n<br />\n</form>\n';


  HochAlt  = document.getElementById("alles").offsetHeight;
  document.getElementById("newsneu").innerHTML = newsform;
  var closeForm = '<a href="'+document.URL+'" class="u_S_Zahl"'
                 +' onfocus="this.blur()">&laquo;&nbsp;Formular schliessen</a>\n';
  document.getElementById("N_offer").innerHTML = closeForm;
  hochForm = document.forms[0].offsetHeight;
  hochNeu  = hochForm + HochAlt + 30;
  document.getElementById("alles").style.height = hochNeu+"px";
  Nvob    = Nvob -30;
  scrollTo(0,Nvob);
 }
 function setCchk(soll) {
  var eingabe1 = document.SCM.echt_name.value;
  var eingabe2 = document.SCM.mail.value;
  var eingabe3 = document.SCM.firma.value;
  var eingabe4 = document.SCM.telefon.value;
  var eingabe5 = document.SCM.adresse.value;
  var probe    = new Array(eingabe1,eingabe2,eingabe3,eingabe4,eingabe5);

  for(t=0;t<probe.length;t++) {
    if(probe[t] == "") {
     alert("Bitte Textfelder ausfüllen!");
     return false;
    }
  }
 // ----------- falsche E-mail Adresse abfangen -------------------------
  var mail         = document.SCM.mail.value;
  var fehler       = "Ungültige E-Mail Adresse";
  var mail_soll    = /^([_a-zA-Z0-9-]+)(\.[_a-zA-Z0-9-]+)*@([_a-zA-Z0-9-]+\.)+([a-zA-Z]{2,})$/;
  var m_string     = mail.search(mail_soll);
  if(mail.length < 6) {
          alert(fehler);
          return false;
          mail = "";
       }  else if(m_string == -1) {
              alert(fehler);
             return false;
              mail = "";
          }
 // ----------------  falschen Sicherheitscode abfangen -------------------
  var eingabe;
  eingabe = document.SCM.s_eingabe.value;
  if(eingabe != soll) {
   alert('Falscher Sicherheitscode!');
   return false;
  }
 }
 function setcard(code,str,vob,seite)  {
  var kopf = '<p class="forminserto" style="width:90%;margin-left:5%;"><br />\n'
            +'<span style="color:#4F4F4F;font-size:1.2em;"><b>Erotikinserate</b> als <b>Setcard</b> mit <b>Fotogalerie</b>, <b>Video</b>, Mailbox,'
            +' <b>News</b> und <b>Voting</b> für Modelle'
            +' können hier bei sexy <b>berlinmodelle</b> kostenlos* erstellt werden.<br />\n'
            +'Auch <b>Agenturen</b> oder <b>Bordelle</b> können Setcards für ihre <b>Modelle</b> erstellen, '
            +' in den 3 Rubriken <b>Privatmodelle</b>, <b>Haus & Hotelbesuche</b> und <b>Escort Begleitservice</b>. Die Rubrik'
            +' <em><b>Hobbyhuren</b></em> sollte möglichst auch wirklich <b>privaten, unabhängigen Modellen</b> (Hobbyhuren) vorbehalten sein.<br />\n'
            +'Bitte alle Felder korrekt ausfüllen - insbesondere muß die <b>E-Mail</b> Adresse <b>korrekt</b> eingetragen sein, weil die Zugangsdaten'
            +' an diese E-Mail Adresse geschickt werden.<br />\n<br />\n'
            +'&raquo;&nbsp;Alle deine Daten werden <b>vertraulich</b> behandelt, nicht veröffentlicht und nicht an Dritte weitergegeben.</span>\n'
            +'<br />\n'
            +'<br />\n'
            +'<br />\n';
  if(document.URL != "http://www.sexy-berlinmodelle.de/erotikportal/rubrik/inserieren.html") {
  var LI_IN = '<a href="'+document.URL+'" class="u_S_Zahl"'
             +' onfocus="this.blur()" style="letter-spacing:.2em;" id="schliesser"'
             +' onclick="document.location.reload();return false">&laquo;&nbsp;Formular schliesen</a>\n';
  } else {
     var LI_IN = '';
    }

  var sC   = '<div id="SEFK">\n'
             +kopf+'<form action="setcardmaker.php" method="POST" name="SCM" style="width:90%;margin-left:5%;margin-top:.5em;"'
             +' onsubmit="return setCchk(\''+str+'\')">\n'
             +'<table style="width:100%;border:none;">\n'
             +' <tr>\n'
             +'  <td style="width:35%;text-align:right;vertical-align:top;">\n'
             +'   <p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Dein Name:</span></p>\n'
             +'  </td>\n'
             +'  <td style="width:65%;vertical-align:top;">\n'
             +'   <input type="text" name="echt_name" class="head_n_phone" onfocus="this.style.backgroundColor=\'#eee8aa\'"'
             +'          onblur="this.style.backgroundColor=\'#ffffff\'" />\n'
             +'  </td>\n'
             +' </tr>\n'
             +' <tr>\n'
             +'  <td style="width:35%;text-align:right;vertical-align:top;">\n'
             +'   <p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Deine E-Mail Adresse:</span></p>\n'
             +'  </td>\n'
             +'  <td style="width:65%;vertical-align:top;">\n'
             +'   <input type="text" name="mail" class="head_n_phone" onfocus="this.style.backgroundColor=\'#eee8aa\'"'
             +'          onblur="this.style.backgroundColor=\'#ffffff\'" />\n'
             +'  </td>\n'
             +' </tr>\n'
             +' <tr>\n'
             +'  <td style="width:35%;text-align:right;vertical-align:top;">\n'
             +'   <p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Agentur / Privat&nbsp;&nbsp;'
             +'   <span style="font-size:.8em;">(bitte wählen)</span></p>\n'
             +'  </td>\n'
             +'  <td style="width:65%;vertical-align:top;">\n'
             +'   <input type="radio" name="firma" value="Agentur" style="margin-left:.5em;border:none;" />\n'
             +'   <input type="radio" name="firma" value="Privat" checked="checked" style="margin-left:.5em;border:none;" />\n'
             +'  </td>\n'
             +' </tr>\n'
             +' <tr>\n'
             +'  <td style="width:35%;text-align:right;vertical-align:top;">\n'
             +'   <p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Deine Tel.(Handy) Nr.:</span></p>\n'
             +'  </td>\n'
             +'  <td style="width:65%;vertical-align:top;">\n'
             +'   <input type="text" name="telefon" class="head_n_phone" onfocus="this.style.backgroundColor=\'#eee8aa\'"'
             +'          onblur="this.style.backgroundColor=\'#ffffff\'" />\n'
             +'  </td>\n'
             +' </tr>\n'
             +' <tr>\n'
             +'  <td style="width:35%;text-align:right;vertical-align:top;">\n'
             +'   <p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Deine Adresse:</span></p>\n'
             +'  </td>\n'
             +'  <td style="width:65%;vertical-align:top;">\n'
             +'   <input type="text" name="adresse" class="head_n_phone" onfocus="this.style.backgroundColor=\'#eee8aa\'"'
             +'          onblur="this.style.backgroundColor=\'#ffffff\'" />\n'
             +'  </td>\n'
             +' </tr>\n'
             +' <tr>\n'
             +'  <td style="width:35%;text-align:right;vertical-align:middle;">\n'
             +'   <p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Sicherheitscode eintragen:</span></p>\n'
             +'  </td>\n'
             +'  <td style="width:65%;vertical-align:top;">\n'
             +'   <p style="margin:0;">\n'
             +'    <img src="grafik2/Code-Bild_'+code+'.gif" border="0" style="vertical-align:middle;margin-left:.5em;margin-right:.5em;">\n'
             +'    <input type="text" name="s_eingabe" style="width:3.2em;font:bold .9em arial,helvetica,verdana;color:#000000;" maxlength=4 />\n'
             +'   </p>\n'
             +'  </td>\n'
             +' </tr>\n'
             +' <tr>\n'
             +'  <td colspan="2" style="text-align:center;">\n'
             +'   <input type="submit" value="senden&nbsp;&raquo;" class="sender" id="Ab_S" onMouseOver="camaeleon(this.id,\'over\')"'
             +'          onMouseOut="camaeleon(this.id,\'out\')" onfocus="this.blur()" />\n<br />\n'
             +'  </td>\n'
             +' </tr>\n'
             +'</table>\n'
             +'</form><br />\n'
             +'<p style="font:.7em arial,verdana,sans-serif;color:#000000;">'
             +'Du bist dir nicht sicher und willst mehr Informationen? Oder Du brauchst Hilfe bei Erstellung und Aktualisierung deines Profils.'
             +' Dann bitte eine Anfrage über die <span style="font-weight:600;color:#8b0000;cursor:pointer;"'
             +' onclick="location.href=\'http://www.sexy-berlinmodelle.de/erotikportal/BerlinModelleIntern/nachricht.html\'">KONTAKT</span>'
             +' Seite stellen.</p>\n<br />\n'
             +'<p style="font:.7em arial,verdana,sans-serif;color:#696969;"><sup>*</sup>&nbsp;Inserate mit kostenpflichtigen Rückrufnummern'
             +' werden nicht kostenlos aufgenommen.</p>\n'
             +LI_IN+'<br />\n'
             +'</div>\n';

  var HochAlt, hochForm, hochNeu, Nvob;
  HochAlt  = document.getElementById("alles").offsetHeight;
  document.getElementById("setC_ann").innerHTML = sC;
  hochForm = document.getElementById("SEFK").offsetHeight;
  hochNeu  = hochForm + HochAlt + 30;
  document.getElementById("alles").style.height = hochNeu+"px";
 // Nvob   = document.forms[0].offsetTop +150;
  scrollTo(0,vob);
  if(seite != "direkt") {
  document.getElementById("SD_INS").innerHTML = LI_IN;
  }
 }
 function Chk_SCE(soll)  {
  var eingabe1 = document.SCE.user.value;
  var eingabe2 = document.SCE.pass.value;
  var eingabe3 = document.SCE.pass1.value;
  var eingabe4 = document.SCE.s_eingabe.value;
  var probe    = new Array(eingabe1,eingabe2,eingabe3);
   for(t=0;t<probe.length;t++) {
    if(probe[t] == "" || probe[t] < 4) {
     alert("Bitte Felder ausfüllen!\nMindestens 4 Zeichen pro Feld.");
     return false;
    }
  }
 // verbotene Zeichen nicht zulassen ---------------------
   var  c,d,y,inhalt, erlaubt = 'abcdefghijklmnopqrstuvwxyz0123456789', laenge;
             inhalt  = eingabe1.toLowerCase();
             laenge  = eingabe1.length;
              y = 0;
              for (c = 0; c < laenge; c++){
               d = inhalt.charAt(c);
                if (erlaubt.indexOf(d) == -1){
                  y++;
                 }
              }
             if(y > 0)  {
              alert("Bitte nur Buchstaben und Ziffern eingeben!");
              return false;
             } else {
                 d = "";
                 inhalt  = eingabe2.toLowerCase();
                 laenge  = eingabe2.length;
                 y = 0;
                 for (c = 0; c < laenge; c++){
                  d = inhalt.charAt(c);
                   if (erlaubt.indexOf(d) == -1){
                    y++;
                    }
                  }
                 if(y > 0)  {
                  alert("Bitte nur Buchstaben und Ziffern eingeben!");
                  return false;
                  }
                }
 // ----------- Passwortfelder vergleichen -------------
    if(eingabe2 != eingabe3)  {
     alert("Passworteingaben stimmen nicht überein!");
     return false;
    }
 // --- Sicherheitscode -------------------
   if(eingabe4 != soll) {
    alert("Falscher Sicherheitscode!");
    return false;
   }
 }
 function SC_ein(mailV,name,code,str) {
  var eintrager = '<div style="width:98%;height:auto;background:#fff5ee;border-left:solid 1px #826A3E;border-right:solid 1px'
                 +' #826A3E;margin-top:1em;margin-left:1%;margin-bottom:.5em;">\n'
                 +' <p class="forminserto" style="width:90%;margin-left:5%;"><br />\n'
                 +'<span style="color:#4F4F4F;font-weight:600;font-size:1.2em;">Hallo '+name+',<br />\ndanke für Deine Setcard - Anmeldung.'
                 +' Bitte wähle jetzt noch Deinen Benutzernamen und ein Passwort</span> (jeweils min. 4, max. 8 Zeichen und nur Buchstaben und/oder'
                 +' Ziffern - keine Umlaute und keine Sonderzeichen).<br />\n<span style="color:#4F4F4F;font-weight:600;font-size:1.2em;">'
                 +'Danach kannst Du dich einloggen (ganz unten links) und deine Setcard(s) erstellen.<br />\nBitte die Zugangsdaten gut merken  - '
                 +' auch Gross- und Kleinschreibung beachten!</span>\n</p>\n'
                 +'<br /><br />\n'
                 +'<form name="SCE" action="membermaker.php" method="POST" onsubmit="return Chk_SCE(\''+str+'\')">\n'
                 +'<table style="width:70%;margin-left:10%;border:none;">\n'
                 +' <tr>\n'
                 +'  <td style="width:50%;text-align:right;vertical-align:middle;">\n'
                 +'   <p class="forminserto" style="font-weight:600;">Benutzername:</p>\n'
                 +'  </td>\n'
                 +'  <td style="width:50%;text-align:left;vertical-align:middle;">\n'
                 +'   <input type="text" name="user" class="head_n_phone" onfocus="this.style.backgroundColor=\'#eee8aa\'"'
                 +'          onblur="this.style.backgroundColor=\'#ffffff\';doChallengeResponse()" maxlength="8" />\n'
                 +'  </td>\n'
                 +' </tr>\n'
                 +' <tr>\n'
                 +'  <td style="width:50%;text-align:right;vertical-align:middle;">\n'
                 +'   <p class="forminserto" style="font-weight:600;">Passwort:</p>\n'
                 +'  </td>\n'
                 +'  <td style="width:50%;text-align:left;vertical-align:middle;">\n'
                 +'   <input type="password" name="pass" class="head_n_phone" onfocus="this.style.backgroundColor=\'#eee8aa\'"'
                 +'          onblur="this.style.backgroundColor=\'#ffffff\'" maxlength="8" />\n'
                 +'  </td>\n'
                 +' </tr>\n'
                 +' <tr>\n'
                 +'  <td style="width:50%;text-align:right;vertical-align:middle;">\n'
                 +'   <p class="forminserto" style="font-weight:600;">Passwort wiederholen:</p>\n'
                 +'  </td>\n'
                 +'  <td style="width:50%;text-align:left;vertical-align:middle;">\n'
                 +'   <input type="password" name="pass1" class="head_n_phone" onfocus="this.style.backgroundColor=\'#eee8aa\'"'
                 +'          onblur="this.style.backgroundColor=\'#ffffff\'" maxlength="8" />\n'
                 +'  </td>\n'
                 +' </tr>\n'
                 +' <tr>\n'
                 +'  <td style="text-align:right;vertical-align:middle;>\n"'
                 +'   <p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Sicherheitscode eintragen:</p>\n'
                 +'  </td>\n'
                 +'  <td style="vertical-align:top;">\n'
                 +'   <p style="margin:0;">\n'
                 +'    <img src="grafik2/Code-Bild_'+code+'.gif" border="0" style="vertical-align:middle;margin-left:.5em;margin-right:.5em;">\n'
                 +'    <input type="text" name="s_eingabe" style="width:3.2em;font:bold .9em arial,helvetica,verdana;color:#000000;" maxlength=4 />\n'
                 +'   </p>\n'
                 +'  </td>\n'
                 +' </tr>\n'
                 +' <tr>\n'
                 +'  <td colspan="2" style="text-align:center;">\n'
                 +'  <input type="hidden" name="mail" value="'+mailV+'" />\n'
                 +'   <input type="submit" value="senden&nbsp;&raquo;" class="sender" id="Ab_S" onMouseOver="camaeleon(this.id,\'over\')"'
                 +'          onMouseOut="camaeleon(this.id,\'out\')" onfocus="this.blur()" />\n<br />\n'
                 +'  </td>\n'
                 +' </tr>\n'
                 +'</table>\n'
                 +'</form>'
                 +'</div>\n';
      document.write(eintrager);
 }
// ------------------ Kontakt Formular --------------------------

 function chkFrm() {
 var text,sec;
  text   = document.T_INS.message.value;
  sec  = document.T_INS.s_eingabe.value;
  if(text.length < 8) {
   alert("Bitte Text eingeben!");
   return false;
  }
 // nachricht aus Leerzeichen abfangen ---------------------
   var  c,r,inhalt, erlaubt = ' ', laenge;
             inhalt  = text.toLowerCase();
             laenge  = inhalt.length;
             r = 0;
              for (c = 0; c < laenge; c++){
               d = inhalt.charAt(c);
                if (erlaubt.indexOf(d) == -1){
                 r++;
                 }
              }
              if(r < 8) {
                alert("Bitte Text eingeben!");
                return false;
              }
 // -------------------------------------------------------
  if(sec.length < 4) {
   alert("Bitte vollständigen Sicherheitscode eingeben!");
   return false;
  }
 }
 function K_Form(code)  {
   document.write('<form action="mailer.php" method="POST" style="margin:.3em;" name="T_INS" onsubmit="return chkFrm()">\n'
          +'<p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Ihr Text:</span>&nbsp;(max. 800 Zeichen)</p>'
          +'<textarea name="message" id="textfeld" class="k_form_text" onKeyUp="return langeKontr(this.id,\'RESTZ_T\',\'800\')"'
          +' onfocus="this.style.backgroundColor=\'#fff8dc\'" onblur="this.style.backgroundColor=\'#ffffff\'"></textarea>\n'
          +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_T" style="color:#7F0000;">800</span>&nbsp;Zeichen</p><br />\n'
          +'<p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Ihr Telefon (Handy) und / oder E-Mail:</span>&nbsp;'
          +' (max. 120 Zeichen)</p>'
          +'<input type="text" name="kontakt" class="head_n_phone" id="INS_Kont" onKeyUp="return langeKontr(this.id,\'RESTZ_Kt\',\'120\')"'
          +' onfocus="this.style.backgroundColor=\'#fff8dc\'" onblur="this.style.backgroundColor=\'#ffffff\'" /><br />\n'
          +' <input type="hidden" name="steuerung" value="admin" />\n'
          +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_Kt" style="color:#7F0000;">120</span>&nbsp;Zeichen</p>\n'
          +'<p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Bitte Sicherheitscode eingeben</span>'
          +'<img src="grafik2/Code-Bild_'+code+'.gif" border="0" style="vertical-align:middle;margin-left:.5em;margin-right:.5em;">'
          +'<input type="text" name="s_eingabe" style="width:3em;font:1.1em arial,helvetica,verdana;color:#000000;" maxlength=4 /></p>\n'
          +'<input type="submit" value="senden&nbsp;&raquo;" class="sender" id="Ab_S" onMouseOver="camaeleon(this.id,\'over\',\'gold\')"'
          +' onMouseOut="camaeleon(this.id,\'out\',\'gold\')" onfocus="this.blur()" />\n<br />\n</form>\n');
 }
// ----------------------------------------- Daniel schützen Mail an Jugendschutz -----------
 function mailStop() {
  frage = window.confirm("Wollen Sie wirklich eine Nachricht an Rechtsanwalt Daniel Sebastian senden?\nDafür muß in Ihrem Standard E-Mail Programm"
                        +" ein E-Mail Account eingerichtet sein.");
  if(frage == true) {
   document.location.href = "mailto:ra@danielsebastian.de?subject=Jugendschutz auf www.sexy-berlinmodelle.de";
  } else {
      return false;
     }
 }
// -------- Erotikmagazin ---------------------------------------------------------------
 function chkMagF(soll)  {
  var kopf, beschr, schlW, inhalt, alle;
      kopf   = document.sitemaker.titel.value;
      beschr = document.sitemaker.description.value;
      schlW  = document.sitemaker.keywords.value;
      inhalt = document.sitemaker.text.value;
      alle   = Array(kopf,beschr,schlW,inhalt);
        for(u = 0;u < alle.length;u++) {
          if(alle[u] == "") {
           alert("Alle Felder müßen ausgefüllt werden!");
           return false;
           break;
          }
        }
  // ---------------- einzelne Felder bearbeiten ----------------------
   // verbotene Zeichen nicht zulassen ---------------------
   var  c,d,inhalt1, erlaubt = 'abcdefghijklmnopqrstuvwxyz0123456789-_äöüß ', laenge, fehler1;
             inhalt1  = kopf.toLowerCase();
             laenge   = inhalt1.length;
   fehler1 = "Bitte nur Buchstaben, Ziffern und erlaubte Zeichen (`-` `_`) als Titel eingeben!\nAlle Sonderzeichen außer Bindestrich und"
            +" Unterstrich sind unzulässig.\nLeerzeichen sollten vermieden werden.";
              for (c = 0; c < laenge; c++){
               d = inhalt1.charAt(c);
                if (erlaubt.indexOf(d) == -1){
                    alert(fehler1);
                    return false;
                    break;
                 }
              }
// ---------------------------------- Beschreibung nur ohne spitze und geschweifte Klammern ---------
   var descNO     = /[<>{}]/;
   var des_str    = beschr.search(descNO);
   if(des_str != -1) {
     alert("Unerlaubte Zeichen in der Beschreibung!");
     return false;
   }
// --------------------------------------------- Keywords --------------------------------------------
   var kW_soll    = /^([_a-zA-Z0-9- ]+)$/;
   var m_string   = schlW.search(kW_soll);
   if(m_string == -1) {
        alert("Die Schlüsselwörter dürfen nur Buchstaben, Ziffern, Leerzeichen, Unterstriche und Bindestriche enthalten!");
        return false;
     }
   if(inhalt.length < 100) {
    alert("Der Text ist zu kurz!\nMindestens 100 Zeichen müssen sein.");
    return false;
   }
// --- Sicherheitscode -------------------
  var eingabe4 = document.sitemaker.s_eingabe.value;
   if(eingabe4 != soll) {
    alert("Falscher Sicherheitscode!");
    return false;
   }
 }
 function magazin(code,soll) {
 document.write('<form action="../sexyberlin/magazin/htmlmaker.php" method="POST" enctype="multipart/form-data"'
 +' name="sitemaker" onsubmit="return chkMagF(\''+soll+'\')">\n'
 +'<p class="forminserto" style="font-weight:600;">Überschrift / Titel <span style="font-size:.9em;font-weight:500;">max. 100 Zeichen</span></p>\n'
 +'<input type="text" class="head_n_phone" style="font-weight:500;" name="titel" id="INS_Kont"'
 +'       onKeyUp="return langeKontr(this.id,\'RESTZ_Kt\',\'100\')"'
 +'       onfocus="this.style.backgroundColor=\'#fff8dc\'" onblur="this.style.backgroundColor=\'#ffffff\'" />\n'
 +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_Kt" style="color:#7F0000;">100</span>&nbsp;Zeichen</p>\n'
 +'<br /><br />\n'
 +'<p class="forminserto" style="font-weight:600;">Kurzbeschreibung <span style="font-size:.9em;font-weight:500;">max. 200 Zeichen</span></p>\n'
 +'<textarea name="description" class="k_form_text" id="KBS" style="height:5em;" onfocus="this.style.backgroundColor=\'#fff8dc\'"'
 +'          onblur="this.style.backgroundColor=\'#ffffff\'" onKeyUp="return langeKontr(this.id,\'RESTZ_T\',\'200\')"></textarea>\n'
 +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_T" style="color:#7F0000;">200</span>&nbsp;Zeichen</p>\n'
 +'<br /><br />\n'
 +'<p class="forminserto" style="font-weight:600;">max. 10 Schlüsselwörter - nur durch Leerzeichen getrennt\n'
 +'<span style="font-size:.9em;font-weight:500;">max. 200 Zeichen</span></p>\n'
 +'<input type="text" name="keywords"  style="font-weight:500;"'
 +'       onfocus="this.style.backgroundColor=\'#fff8dc\'" onblur="this.style.backgroundColor=\'#ffffff\'" class="head_n_phone" id="KWS"'
 +'       onKeyUp="return langeKontr(this.id,\'RESTZ_Kk\',\'200\')" />\n'
 +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_Kk" style="color:#7F0000;">200</span>&nbsp;Zeichen</p><br />\n'
 +'<p class="forminserto" style="font-weight:600;">Text <span style="font-size:.9em;font-weight:500;">max. 2000 Zeichen</span></p>\n'
 +'<textarea name="text" class="k_form_text" id="SeiTX" onKeyUp="return langeKontr(this.id,\'RESTZ_LT\',\'2000\')"'
 +'          onfocus="this.style.backgroundColor=\'#fff8dc\'" onblur="this.style.backgroundColor=\'#ffffff\'"></textarea>\n'
 +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_LT" style="color:#7F0000;">2000</span>&nbsp;Zeichen</p>\n'
 +'<br />\n'
 +'<p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">(optional) ein Bild</span> (".jpg" - max. 1MB)</p>\n'
 +'<input type="file" name="foto" />\n<br /><br />\n'
 +'<p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Bitte Sicherheitscode eingeben</span>'
 +'<img src="grafik2/Code-Bild_'+code+'.gif" border="0" style="vertical-align:middle;margin-left:.5em;margin-right:.5em;">'
 +'<input type="text" name="s_eingabe" style="width:3em;font:1.1em arial,helvetica,verdana;color:#000000;" maxlength=4 /></p>\n'
 +'<input type="submit" value="eintragen&nbsp;&raquo;" class="sender" id="Ab_S" onMouseOver="camaeleon(this.id,\'over\',\'gold\')"'
 +'       onMouseOut="camaeleon(this.id,\'out\',\'gold\')" onfocus="this.blur()" />\n'
 +'</form>\n');
 }
 function chkEmpf(soll) {
  var eingabe1, eingabe2, eingabe3, eingaben, i;
      eingabe1  = document.empfehler.absender.value;
      eingabe2  = document.empfehler.mail.value;
      eingabe3  = document.empfehler.s_eingabe.value;
      eingaben  = new Array(eingabe1,eingabe2);
      for(i = 0;i < eingaben.length;i++) {
        if(eingaben[i] == "") {
         alert("Bitte eigenen Namen und E-mail Adresse des Empfängers eintragen!");
         return false;
         break;
        }
// Name aus Leerzeichen abfangen --
  var  c,d, erlaubt = ' ', laenge;
             laenge   = eingabe1.length;
              for (c = 0,x = 0; c < laenge; c++){
               d = eingabe1.charAt(c);
                if (erlaubt.indexOf(d) != -1){
                  x++;
                 }
              }
              if(x == laenge) {
               alert("Der Name kann nicht nur aus Leerzeichen bestehen!");
                    return false;
              }
      }
 // ----------- falsche E-mail Adresse abfangen -------------------------
  var fehler       = "Ungültige E-Mail Adresse";
  var mail_soll    = /^([_a-zA-Z0-9-]+)(\.[_a-zA-Z0-9-]+)*@([_a-zA-Z0-9-]+\.)+([a-zA-Z]{2,})$/;
  var m_string     = eingabe2.search(mail_soll);
  if(eingabe2.length < 6) {
          alert(fehler);
          return false;
          eingabe2 = "";
       }  else if(m_string == -1) {
              alert(fehler);
             return false;
              eingabe2 = "";
          }
 // ----------------  falschen Sicherheitscode abfangen -------------------
     if(eingabe3 != soll) {
      alert('Falscher Sicherheitscode!');
      return false;
     }
 }
 function empfehl(code,soll,Nvob) {
   var kopf  = '<p class="rubr_head" style="font-weight:600;margin-left:.5em;">Empfehle das Erotikportal sexy-berlinmodelle weiter!<br />\n'
              +'Die besten Erotikinserate, Setcards und Erotikkontakt-Anzeigen!</p>'
              +'<p class="M_vorschau">Trage einfach unten die E-mail Adresse eines Freundes / einer Freundin ein und klicke auf'
              +' "senden", um einen Link zu sexy Berlinmodelle zu schicken. Optional kannst Du auch noch einen kurzen Kommentar'
              +' senden.</p>\n<br /><br />\n';

   var sende = '<form action="meinfreund.php" method="POST" style="margin-left:.5em;" name="empfehler" onsubmit="return chkEmpf(\''+soll+'\')">\n'
              +'<p class="forminserto" style="font-weight:600;">Dein Name:&nbsp;&nbsp;'
              +'<span style="font-size:.9em;font-weight:500;">max. 100 Zeichen</span></p>\n'
              +'<input type="text" class="head_n_phone" style="font-weight:500;width:60%;" name="absender" id="INS_KontN"'
              +'       onKeyUp="return langeKontr(this.id,\'RESTZ_KtN\',\'100\')"'
              +'       onfocus="this.style.backgroundColor=\'#fff8dc\'" onblur="this.style.backgroundColor=\'#ffffff\'" />\n'
              +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_KtN" style="color:#7F0000;">100</span>&nbsp;Zeichen</p>\n'
              +'<br />\n'
              +'<p class="forminserto" style="font-weight:600;">E-Mail Adresse des Empfängers:&nbsp;&nbsp;'
              +'<span style="font-size:.9em;font-weight:500;">max. 100 Zeichen</span></p>\n'
              +'<input type="text" class="head_n_phone" style="font-weight:500;width:60%;" name="mail" id="INS_KontNM"'
              +'       onKeyUp="return langeKontr(this.id,\'RESTZ_KtNM\',\'100\')"'
              +'       onfocus="this.style.backgroundColor=\'#fff8dc\'" onblur="this.style.backgroundColor=\'#ffffff\'" />\n'
              +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_KtNM" style="color:#7F0000;">100</span>&nbsp;Zeichen</p>\n'
              +'<br /><br />\n'
              +'<p class="forminserto" style="font-weight:600;">Kurznachricht: <span style="font-size:.9em;font-weight:500;"> optional, '
              +'max. 200 Zeichen</span></p>\n'
              +'<textarea name="description" class="k_form_text" id="KBSM" style="height:5em;width:60%;"'
              +' onfocus="this.style.backgroundColor=\'#fff8dc\'"'
              +'          onblur="this.style.backgroundColor=\'#ffffff\'" onKeyUp="return langeKontr(this.id,\'RESTZ_TM\',\'200\')"></textarea>\n'
              +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_TM" style="color:#7F0000;">200</span>&nbsp;Zeichen</p>\n'
              +'<br />\n'
              +'<p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Bitte Sicherheitscode eingeben</span>'
              +'<img src="grafik2/Code-Bild_'+code+'.gif" border="0" style="vertical-align:middle;margin-left:.5em;margin-right:.5em;">'
              +'<input type="text" name="s_eingabe" style="width:3em;font:1.1em arial,helvetica,verdana;color:#000000;" maxlength=4 /></p>\n'
              +'<input type="submit" value="senden&nbsp;&raquo;" class="sender" id="EMFAb_S" onMouseOver="camaeleon(this.id,\'over\',\'gold\')"'
              +'       onMouseOut="camaeleon(this.id,\'out\',\'gold\')" onfocus="this.blur()" />\n<br />\n'
              +'</form>\n<br />\n';

   var ladNeu   = '<a href="'+document.URL+'" onfocus="this.blur()">&laquo;&nbsp;schliessen</a>\n';
   var HochAlt  = document.getElementById("alles").offsetHeight;
   document.getElementById("meinFreund").innerHTML = kopf+sende;
   document.getElementById("empfehlung").innerHTML = ladNeu;
   var HochNeu  = document.getElementById("meinFreund").offsetHeight +HochAlt +30;
   var HochNeuK = HochNeu *0.6;
   document.getElementById("alles").style.height = HochNeu+"px";
   scrollTo(0,Nvob);
 }
 function chkBewert(soll) {
  var eingabe1, eingabe2, eingabe3, eingabe4, eingaben, i, frage;
  eingabe1 = document.bewerter.absender.value;
  eingabe2 = document.bewerter.mail.value;
  eingabe3 = document.bewerter.text.value;
  eingabe4 = document.bewerter.s_eingabe.value;
  eingaben = new Array(eingabe1,eingabe2,eingabe3);
  for(i = 0; i < eingaben.length;i++) {
   if(eingaben[i] == "")  {
    alert("Bitte alle Felder ausfüllen!");
    return false;
    break;
   }
  }
 // ----------- falsche E-mail Adresse abfangen -------------------------
  var fehler       = "Ungültige E-Mail Adresse";
  var mail_soll    = /^([_a-zA-Z0-9-]+)(\.[_a-zA-Z0-9-]+)*@([_a-zA-Z0-9-]+\.)+([a-zA-Z]{2,})$/;
  var m_string     = eingabe2.search(mail_soll);
  if(eingabe2.length < 6) {
          alert(fehler);
          return false;
          eingabe2 = "";
       }  else if(m_string == -1) {
              alert(fehler);
             return false;
              eingabe2 = "";
          }

 // ----------------  falschen Sicherheitscode abfangen -------------------
     if(eingabe4 != soll) {
      alert('Falscher Sicherheitscode!');
      return false;
     }
 // ------------- negative Bewertung noch mal nachfragen -------------
    if(document.bewerter.was[1].checked == true) {
    frage = window.confirm("Soll es wirklich eine kritische, eventuell negative Bewertung sein?");
     if(frage == false)  {
      return false;
      } else {
        document.bewerter.submit();
       }
    }
 }
 function bewertung(modell,pfad,code,soll,rubrik) {
  if(rubrik) {
   var bearbeiter = "hobbyhuren/bewerter.php";
  } else {
     var bearbeiter = "bewerter.php";
    }
  var kopf  = '<p class="rubr_head" style="font-weight:600;margin-left:.5em;">Hier kannst Du '+modell+' bewerten.<br />\nWähle dazu, ob Du eine positive'
             +' oder kritische Bewertung vornehmen willst, trage den Text und vor allem Deine E-Mail Adresse ein.<br />\nAn diese E-Mail Adresse wird'
             +' anschließend automatisch ein Bestätigungslink geschickt, um den Eintrag zu aktivieren. Sie wird nicht veröffentlicht oder'
             +' gespeichert.</p>\n<br />\n';

  var sende = '<form action="'+bearbeiter+'" method="POST" style="margin-left:.5em;" name="bewerter" onsubmit="return chkBewert(\''+soll+'\')">\n'
              +'<p class="forminserto" style="font-weight:600;">Dein (Nick)Name:&nbsp;&nbsp;'
              +'<span style="font-size:.9em;font-weight:500;">max. 100 Zeichen</span></p>\n'
              +'<input type="text" class="head_n_phone" style="font-weight:500;width:60%;" name="absender" id="INS_KontBN"'
              +'       onKeyUp="return langeKontr(this.id,\'RESTZ_KtBN\',\'100\')"'
              +'       onfocus="this.style.backgroundColor=\'#fff8dc\'" onblur="this.style.backgroundColor=\'#ffffff\'" />\n'
              +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_KtBN" style="color:#7F0000;">100</span>&nbsp;Zeichen</p>\n'
              +'<br />\n'
              +'<p class="forminserto" style="font-weight:600;">Deine E-Mail Adresse:&nbsp;&nbsp;'
              +'<span style="font-size:.9em;font-weight:500;">max. 100 Zeichen</span></p>\n'
              +'<input type="text" class="head_n_phone" style="font-weight:500;width:60%;" name="mail" id="INS_KontBM"'
              +'       onKeyUp="return langeKontr(this.id,\'RESTZ_KtBM\',\'100\')"'
              +'       onfocus="this.style.backgroundColor=\'#fff8dc\'" onblur="this.style.backgroundColor=\'#ffffff\'" />\n'
              +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_KtBM" style="color:#7F0000;">100</span>&nbsp;Zeichen</p>\n<br />\n'
              +'<p class="forminserto">'
              +'<input type="radio" name="was" value="positiv" checked style="margin-right:.5em;vertical-align:middle;" />'
              +'&nbsp;positive Bewertung</p>\n'
              +'<p class="forminserto">'
              +'<input type="radio" name="was" value="kritik" style="margin-right:.5em;vertical-align:middle;" />'
              +'&nbsp;kritische Bewertung</p>\n<br />\n'
              +'<p class="forminserto" style="font-weight:600;">Bewertungstext: <span style="font-size:.9em;font-weight:500;"> '
              +'max. 1000 Zeichen</span></p>\n'
              +'<textarea name="text" class="k_form_text" id="KBSBT" style="width:60%;"'
              +' onfocus="this.style.backgroundColor=\'#fff8dc\'"'
              +'          onblur="this.style.backgroundColor=\'#ffffff\'" onKeyUp="return langeKontr(this.id,\'RESTZ_SBT\',\'1000\')"></textarea>\n'
              +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_SBT" style="color:#7F0000;">1000</span>&nbsp;Zeichen</p>\n'
              +'<br />\n'
              +'<input type="hidden" name="pfad" value="'+pfad+'" />\n'
              +'<p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Bitte Sicherheitscode eingeben</span>'
              +'<img src="grafik2/Code-Bild_'+code+'.gif" border="0" style="vertical-align:middle;margin-left:.5em;margin-right:.5em;">'
              +'<input type="text" name="s_eingabe" style="width:3em;font:1.1em arial,helvetica,verdana;color:#000000;" maxlength=4 /></p>\n'
              +'<input type="submit" value="senden&nbsp;&raquo;" class="sender" id="EMFAb_BW" onMouseOver="camaeleon(this.id,\'over\',\'gold\')"'
              +'       onMouseOut="camaeleon(this.id,\'out\',\'gold\')" onfocus="this.blur()" />\n'
              +'</form>\n';

   var HochAlt = document.getElementById("alles").offsetHeight;
   var schlBWF = '<a href="'+document.URL+'" class="u_S_Zahl" onfocus="this.blur()">&laquo;&nbsp;Formular schliessen</a>';
   document.getElementById("bewerter").innerHTML = kopf+sende;
   document.getElementById("BWLk").innerHTML = schlBWF;
   var HochNeu  = document.getElementById("bewerter").offsetHeight +HochAlt +20;
   document.getElementById("alles").style.height = HochNeu+"px";
 }
 function findeGirl(rubrik) {
 var pfad;
   switch(rubrik) {
    case "privat" : pfad = "Privatmodelle-Berlin";break;
    case "haus"   : pfad = "Hausbesuche-Hotelbesuche";break;
    case "escort" : pfad = "Begleitservice-Escort";break;
    case "hobby"  : pfad = "/erotikportal/hobbyhuren";break;
   }
   box = document.forms['direkt'].damen;
   if(rubrik != "hobby") {
    destination = "/erotikportal/Erotiksetcards-Berlin/"+pfad+"/Setcard_"+box.options[box.selectedIndex].value+"_.html";
   } else {
      destination = pfad+"/"+box.options[box.selectedIndex].value+".html";
     }
    if (destination && box.options[box.selectedIndex].value != "") {
     location.href = destination;
     }
 }
 function stadtbezirk() {
  box = document.stadt.bezirk;
  if(box.options[box.selectedIndex].value != "egal") {
   document.stadt.submit();
  }
 }
// ---------- ########## PROVISORIUM muß dann wieder weg -- ZUSATZFOTOS -------------

 function ichmachmit(modell) {
  var hinweis = "Trag bitte Deine E-Mail Adresse ein.\nDie Daten werden nicht an Dritte weitergegeben.\n"
               +"Wir wollen nur das Interesse an dieser Funktion testen.\n"
               +"Alle Interessenten, die sich hier eintragen, nehmen an einer Sonderverlosung teil, wenn wir diesen Service starten.\nDanke für's "
               +"Mitmachen!";
  var meldung = window.prompt(hinweis,"");
  if(meldung == "") {
   alert("Bitte E-Mail Adresse eintragen, wenn Du dabei sein willst!");
   return false;
  } else {
     // ----------- falsche E-mail Adresse abfangen -------------------------
     var fehler       = "Ungültige E-Mail Adresse";
     var mail_soll    = /^([_a-zA-Z0-9-]+)(\.[_a-zA-Z0-9-]+)*@([_a-zA-Z0-9-]+\.)+([a-zA-Z]{2,})$/;
     var m_string     = meldung.search(mail_soll);
     if(meldung.length < 6) {
          alert(fehler);
          return false;
       }  else if(m_string == -1) {
              alert(fehler);
             return false;
          }
      location.href = "ichwill.php?girl="+modell+"&mail="+meldung;
    }
 }

 function fragnach(girl)  {
  var butti;
  butti = '<input type="button" value="Ich mach mit!&nbsp;&raquo;" class="sender" id="Ab_S" onMouseOver="camaeleon(this.id,\'over\')"'
                 +' onMouseOut="camaeleon(this.id,\'out\')" onfocus="this.blur()"'
                 +' onclick="ichmachmit(\''+girl+'\');" />\n';
  document.getElementById("klardoch").innerHTML = butti;
 }
// ######## --- Ende Provisorium ZUSATZFOTOS ########---
// ----------- Jobanfrage --------------------------------------

 function chkJahr(zahl) {
     // nur Ziffern zulassen ---------------------
   var  c,d,inhalt1, erlaubt = '0123456789', laenge, fehler1;
             laenge   = zahl.length;
   fehler1 = "Bitte nur Ziffern eingeben";
              for (c = 0; c < laenge; c++){
               d = zahl.charAt(c);
                if (erlaubt.indexOf(d) == -1){
                    document.getElementById("INS_Hoch").value = "";
                    alert(fehler1);
                    return false;
                    break;
                 }
               }
 }

 function chkJob(code) {
  var name,lang,hoch,kontakt,bild;
      name    = document.jobfrage.name.value;
      lang    = document.jobfrage.lang.value;
      hoch    = document.jobfrage.hoch.value;
      kontakt = document.jobfrage.kontakt.value;
      bild    = document.jobfrage.bild.value;
  var soll = new Array(name,lang,hoch,kontakt,bild);


  for(i = 0;i < soll.length;i++) {
    if(soll[i] == "") {
    alert("Bitte alle Felder ausfüllen und ein Bild senden!");
    return false;
    break;
   }
  }
 // ----------------  falschen Sicherheitscode abfangen -------------------

     if(document.jobfrage.s_eingabe.value != code) {
      alert('Falscher Sicherheitscode!');
      return false;
     }
 }

 function jobAnfrage(code,soll,adresse) {
  var kopf  = "";
  if(adresse == document.location) {
   kopf = kopf+'<p class=\"vote_succ_info\">&raquo;&nbsp;Deine Anfrage wurde versandt. Vielen Dank! Wir melden uns bei Dir.&nbsp;&laquo;</p>\n';
   setTimeout('document.location.href="http://www.sexy-berlinmodelle.de/erotikportal/Erotikportal-Berlin/anfang-.html";',5000);
  }

  var jahre = "";
  var konf  = "";
  for(i = 18;i < 46;i++) {
   jahre = jahre+"<option value=\'"+i+"\'>"+i+"</option>\n";
  }
  for(i = 32;i < 51;i++) {
   konf = konf+"<option value=\'"+i+"\'>"+i+"</option>\n";
   i++;
  }
    konf  = konf+"<option value=\'xxxl\'>xxxl</option>\n";
  var BH  = new Array("klein","mittel","groß","sehr groß","gigantisch");
  var tit = "";
  for(i = 0; i < BH.length;i++) {
   tit = tit+"<option value=\""+BH[i]+"\">"+BH[i]+"</option>\n";
  }

  var form = '<form enctype="multipart/form-data" action="jobanfrage.php" method="POST" name="jobfrage" onsubmit="return chkJob(\''+soll+'\')">\n'
            +'<p class="forminserto" style="font-weight:600;">Dein Name:&nbsp;&nbsp;'
            +'<span style="font-size:.9em;font-weight:500;">max. 50 Zeichen</span></p>\n'
            +'<input type="text" class="head_n_phone" style="font-weight:500;width:60%;background-color:transparent;" name="name" id="INS_Nam"'
            +'       onKeyUp="return langeKontr(this.id,\'RESTZ_KtN\',\'50\')"'
            +'       onfocus="this.style.backgroundColor=\'#fff8dc\'" onblur="this.style.backgroundColor=\'transparent\'" />\n'
            +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_KtN" style="color:#7F0000;">50</span>&nbsp;Zeichen</p>\n'
            +'<br />\n'
            +'<p class="forminserto" style="font-weight:600;">Welche Sprache(n) sprichst Du:&nbsp;&nbsp;'
            +'<span style="font-size:.9em;font-weight:500;">max. 60 Zeichen</span></p>\n'
            +'<input type="text" class="head_n_phone" style="font-weight:500;width:60%;background-color:transparent;" name="lang" id="INS_Lang"'
            +'       onKeyUp="return langeKontr(this.id,\'RESTZ_Lang\',\'60\')"'
            +'       onfocus="this.style.backgroundColor=\'#fff8dc\'" onblur="this.style.backgroundColor=\'transparent\'" />\n'
            +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_Lang" style="color:#7F0000;">60</span>&nbsp;Zeichen</p>\n'
            +'<br />\n'
            +'<p class="forminserto" style="font-weight:600;">Dein Alter in Jahren:</p>\n'
            +'<select name="jahre" style="cursor:pointer;">\n'+jahre+'</select><br /><br />\n'
            +'<p class="forminserto" style="font-weight:600;">Deine Größe in cm:</p>\n'
            +'<input type="text" class="head_n_phone" style="font-weight:500;width:3em;border-color:#cd853f;background-color:transparent;"'
            +' name="hoch" id="INS_Hoch" maxlength="3"'
            +'       onkeyup="return chkJahr(this.value)"'
            +'       onfocus="this.style.backgroundColor=\'#fff8dc\'" onblur="this.style.backgroundColor=\'transparent\'" /><br /><br />\n'
            +'<p class="forminserto" style="font-weight:600;">Deine Konfektionsgröße:</p>\n'
            +'<select name="konf" style="cursor:pointer;">\n'+konf+'</select>\n'
            +'<p class="forminserto" style="font-weight:600;">Deine BH-Größe:</p>\n'
            +'<p class="forminserto" style="font-weight:600;"><select name="busen" style="margin-right:1em;cursor:pointer;">\n'+tit+'</select>\n'
            +'Natur<input type="radio" name="naturbusen" value="ja" checked="checked" style="vertical-align:top;margin-right:1em;" />'
            +'&nbsp;|&nbsp;bearbeitet <input type="radio" name="naturbusen" value="nein" style="vertical-align:top;margin-left:.2em;" /></p>\n'
            +'<br />\n<p class="forminserto" style="font-weight:600;">Wie kann man Dich erreichen? Bitte E-Mail oder besser eine Handy-Nr. angeben.'
            +'&nbsp;&nbsp;<span style="font-size:.9em;font-weight:500;">max. 60 Zeichen</span></p>\n'
            +'<input type="text" class="head_n_phone" style="font-weight:500;width:60%;background-color:transparent;" name="kontakt" id="INS_Kont"'
            +'       onKeyUp="return langeKontr(this.id,\'RESTZ_Kont\',\'60\')"'
            +'       onfocus="this.style.backgroundColor=\'#fff8dc\'" onblur="this.style.backgroundColor=\'transparent\'" />\n'
            +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_Kont" style="color:#7F0000;">60</span>&nbsp;Zeichen</p>\n'
            +'<br />\n'
            +'<p class="forminserto" style="font-weight:600;">Bitte ein Foto von Dir senden&nbsp;&nbsp;'
            +'<span style="font-size:.9em;font-weight:500;">(max. 1MB gross)</span></p>\n'
            +'<input type="file" name="bild" /><br /><br />\n'
            +'<p class="forminserto" style="font-weight:600;">weitere Mitteilungen an uns (z.B. Erfahrungen):'
            +' <span style="font-size:.9em;font-weight:500;"> '
            +'max. 1000 Zeichen</span></p>\n'
            +'<textarea name="text" class="k_form_text" id="KBSBT" style="width:60%;background-color:transparent;"'
            +' onfocus="this.style.backgroundColor=\'#fff8dc\'"'
            +'          onblur="this.style.backgroundColor=\'transparent\'" onKeyUp="return langeKontr(this.id,\'RESTZ_SBT\',\'1000\')"></textarea>\n'
            +'<p class="forminserto">Es bleiben noch:&nbsp;<span id="RESTZ_SBT" style="color:#7F0000;">1000</span>&nbsp;Zeichen</p>\n'
            +'<p class="forminserto"><span style="color:#4F4F4F;font-weight:600;">Bitte Sicherheitscode eingeben</span>'
            +'<img src="grafik2/Code-Bild_'+code+'.gif" border="0" style="vertical-align:middle;margin-left:.5em;margin-right:.5em;">'
            +'<input type="text" name="s_eingabe" style="width:3em;font:1.1em arial,helvetica,verdana;color:#000000;" maxlength=4 /></p>\n'
            +'<br />\n'
            +'<input type="submit" value="Anfrage senden&nbsp;&raquo;" class="sender" id="EMFAb_BW"'
            +'       onMouseOver="camaeleon(this.id,\'over\',\'gold\')"'
            +'       onMouseOut="camaeleon(this.id,\'out\',\'gold\')" onfocus="this.blur()" />\n'
            +'</form>\n';

  document.getElementById("bewerb").innerHTML = kopf+form;
 }
// Login oben ---------------------
 function topLog()  {
  var user = prompt("Wenn Du registriert bist, kannst Du hier Deine Setcard(s) verwalten.\n\nBitte den Benutzernamen eingeben.","");
  if(user) {
   var pass = prompt("Bitte das Passwort eingeben.","");
   if(pass) {
    document.topLog.user.value = user;
    document.topLog.pass.value = pass;
    document.topLog.submit();
   }
  }
 }
 function BordellZu()  {
  var eintrag = prompt("Wollen Sie noch ein Bordell aus Berlin hinzufügen, das Sie für wichtig halten?\nDann los...","");
  if(eintrag) {
   alert("Danke für den Eintrag");
   document.location.href = "bordellzusatz.php?zusatz="+eintrag;
  }
 }

/**********************  Hobbyhuren *******************************/
 function Hgalery() {
  scrollTo(0,0);
  zeigBilder();
  document.getElementsByTagName("html")[0].style.overflow = "hidden";
  document.getElementById("black").style.visibility       = "visible";
 }
 // ------ Merkzettel -----------------
   function merkzettel(Bezeichner,Wert) {
   /// wenn Bezeichner - das Girl schon vorhanden ist, dann wird die Kontrollvariable um 1 erhöht und wenn sie 0 ist, wird in der navi um eins erhöht
   // muß hier oben ermittelt werden, weil sie nach der nächsten Anweisung ja schon drin ist ---------
        a = document.cookie;
        b = a.split(";");
        c = b.length;
        d = c +1;
          alle = new Array();
          for(i=0;i<c;i++) {
           if(b[i].search(/PHPSESSID.+/) == -1 && b[i].search(/__utm.+/) == -1) {
           alle.push(b[i]);
           }
          }
          yZ = 0;
          for(x = 0; x < alle.length; x++) {
           ModellDat = alle[x].split("=");
           if(ModellDat[0].search(Bezeichner) != -1) {
            yZ++;
           }
          }
/////////////////////////////////////  Cookie setzen -----------------

    aN = document.cookie;
    bN = aN.split(";");
    cN = bN.length;
    dN = 0;

    for(i=0;i<cN;i++) {
     if(bN[i].search(/PHPSESSID.+/) == -1 && bN[i].search(/__utm.+/) == -1) {
     dN++;
     }
    }
      jetzt=new Date();
      Auszeit=new Date(jetzt.getTime()+86400000);
      document.cookie=Bezeichner+"="+Wert+"# ;path=/;expires="+Auszeit.toGMTString()+";";

  if(dN == 0) {
   // document.location.reload();
   rubrik = Wert.split("\/");
   window.location.href = "http://www.sexy-berlinmodelle.de/erotikportal/vote_insert.php?rubrik="+rubrik[1]+"&listenname="+Bezeichner+"&retour="+document.URL;
   } else {
        if(yZ == 0) {
         var aktZ = alle.length +1;
         document.getElementById("MzttZl").innerHTML = aktZ;
         document.getElementById("MzttZl").style.color = "#000000";
         document.getElementById("MzttZl").style.fontSize = "1.5em";
         setTimeout('document.getElementById("MzttZl").style.fontSize = "1em";',2000);
         setTimeout('document.getElementById("MzttZl").style.color = "#ffd700";',2200);
        }
     }
 }
//-->
