function del(name,id) {
Check = confirm('Zahlungseingang für ' + name + ' wirklich eintragen? \n\n (' + name + ' erhält eine Bestätigungsmail)');
if(Check != false) self.location.href='bezahlen.php?id=' + id + '&bezahlt=yes';
            }

function checkin(name,id) {
Check = confirm(name + ' wirklich einchecken?');
if(Check != false) self.location.href='checkin.php?id=' + id + '&checkin=yes';
            }

function del_2(name,id) {
Check = confirm('Zahlungseingang für ' + name + ' wirklich eintragen?');
if(Check != false) self.location.href='bezahlen_2.php?id=' + id + '&bezahlt=yes';
	}

// OnMouseOver
    Normal1 = new Image();
    Normal1.src = "/site/bilder/menu_01_orange.jpg";
    Highlight1 = new Image();
    Highlight1.src = "/site/bilder/menu_01_grau.jpg";

    Normal2 = new Image();
    Normal2.src = "/site/bilder/menu_07_orange.jpg";
    Highlight2 = new Image();
    Highlight2.src = "/site/bilder/menu_07_grau.jpg";

    Normal3 = new Image();
    Normal3.src = "/site/bilder/menu_02_orange.jpg";
    Highlight3 = new Image();
    Highlight3.src = "/site/bilder/menu_02_grau.jpg";

    Normal4 = new Image();
    Normal4.src = "/site/bilder/menu_03_orange.jpg";
    Highlight4 = new Image();
    Highlight4.src = "/site/bilder/menu_03_grau.jpg";

    Normal5 = new Image();
    Normal5.src = "/site/bilder/menu_04_orange.jpg";
    Highlight5 = new Image();
    Highlight5.src = "/site/bilder/menu_04_grau.jpg";

    Normal6 = new Image();
    Normal6.src = "/site/bilder/menu_09_orange.jpg";
    Highlight6 = new Image();
    Highlight6.src = "/site/bilder/menu_09_grau.jpg";

    Normal7 = new Image();
    Normal7.src = "/site/bilder/menu_06_orange.jpg";
    Highlight7 = new Image();
    Highlight7.src = "/site/bilder/menu_06_grau.jpg";


     function Bildwechsel(Bildnr,Bildobjekt)
    {
     window.document.images[Bildnr].src = Bildobjekt.src;
    }

// Favicon
document.write('<link rel="shortcut icon" href="http://www.krisenkommunikationskongress.de/site/bilder/favicon.ico">')

//Antispam

function ch1(x){var yy=2;var z=0;var xx="";for(var y=0;y<x.length;y++){z=x.charCodeAt(y);xx+=String.fromCharCode(z-yy);}return xx;}function kki_antispam(x){location.href=ch1(x);}

// Anmeldung (klein) überprüfen
function chk_felder()
{

 if(document.kleine_anmeldung.vorname.value == "")  {
   alert("Bitte trage deinen Vornamen ein.");
   document.kleine_anmeldung.vorname.focus();
   return false;
  }
 if(document.kleine_anmeldung.nachname.value == "") {
   alert("Bitte trage deinen Nachnamen ein.");
   document.kleine_anmeldung.nachname.focus();
   return false;
  }
 if(document.kleine_anmeldung.mail.value == "") {
   alert("Wie können wir dich per Mail erreichen?");
   document.kleine_anmeldung.mail.focus();
   return false;
  }
 if(document.kleine_anmeldung.mail.value.indexOf('@') == -1) {
   alert("Bitte überprüfe deine E-Mail-Adresse.");
   document.kleine_anmeldung.mail.focus();
   return false;
  }
return true;
}


// Funktionen
function PopUp(loc,b,h,sc)
  {
      PopUpWin =
      window.open(loc, "popup_normal", "width="+b+",height="+h+",scrollbars="+sc);
      PopUpWin.focus();
  }

function PopUpOhne(loc,b,h,sc)
  {
      PopUpWin =
      window.open(loc, "popup_ohnealles", "width="+b+",height="+h+",menubar=no,locationbar=no,personalbar=no,statusbar=no,toolbar=no,scrollbars="+sc);
      PopUpWin.focus();
  }

function Go(x) {
 if(x == "nothing") {
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   return;
 }
 else if(x == "end")
   top.location.href = parent.frames[1].location;
 else {
   location.href = x;
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
 }
}

  function start(){
                  xPos = (screen.availWidth/2-350);
                  yPos = (screen.availHeight/2-250);

                  setTimeout('window.moveTo(xPos,yPos);',100);
                  setTimeout('window.focus();',100);
          }

  function start_info(){
                  xPos = (screen.availWidth/2-275);
                  yPos = (screen.availHeight/2-175);

                  setTimeout('window.moveTo(xPos,yPos);',100);
                  setTimeout('window.focus();',100);
          }

  function start_anmeldung(){
                  xPos = (screen.availWidth/2-350);
                  yPos = (screen.availHeight/2-250);

                  setTimeout('window.moveTo(xPos,yPos);',100);
                  setTimeout('window.focus();',100);
          }

  function start_team(){
                  xPos = (screen.availWidth/2-300);
                  yPos = (screen.availHeight/2-150);

                  setTimeout('window.moveTo(xPos,yPos);',100);
                  setTimeout('window.focus();',100);
          }


// Anti Spam
function AntiSpam( name, domn, text ) {
if( ! text || text == "" ) text = name + "@" + domn;
document.write( "<a href=\"mailto:" + name + "@" + domn + "\">" +
text + "</a>" )
}
