//festlegen der Höhe der Tabelle mit Hintergrund
 function table_height() {
  table_height = screen.availHeight-281;
  document.write("<td height=" + table_height + "' bgcolor='#000000'>");
 }

//festlegen der Höhe der Tabelle ohne Hintergrund
 function table_height1() {
  table_height = screen.availHeight-350;
  document.write("<td height='" + table_height + "' valign='top' align='left'>");
 }

//festlegen der Höhe der Tabelle ohne Hintergrund
 function table_height1_85Jahre() {
  table_height = screen.availHeight-360;
  document.write("<td height='" + table_height + "' valign='top' align='left'>");
 }

//Bilder-/Pressekategorie löschen
 function deleteCat(del_id) {
  Check = confirm("Wollen Sie diese Bildergalerie wirklich löschen?");
  if(Check == true) document.location.href = "galery-list.php?del_id="+del_id;
 }

 //Linkkategorie löschen
 function deleteLinkCat(del_id) {
  Check = confirm("Wollen Sie diese Link-Kategorie wirklich löschen?");
  if(Check == true) document.location.href = "link-list.php?del_id="+del_id;
 }

 function deleteEvent(del_id) {
  Check = confirm("Wollen Sie diesen Auftritt wirklich löschen?");
  if(Check == true) document.location.href = "event-delete.php?del_id="+del_id;
 }

//Bilder anzeigen
function openPic(img,title, width, height) {
   width_new = width+50;
   if(title ==""){
    height_new = height+25;
   } else {
    height_new = height+47;
   }
   mitte_hoehe = screen.height/2-height/2;
   mitte_breite = screen.width/2-width/2;
   Optionen = 'dependent=yes, left='+mitte_breite+', top='+mitte_hoehe+', toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,height='+height_new+',width='+width_new;
   neues_Fenster = window.open('','',Optionen)
   with (neues_Fenster)
      {
        document.write('<HTML><HEAD><TITLE></TITLE></HEAD>');
        document.write('<BODY><DIV ALIGN=CENTER>');
        document.write('<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=1 VALIGN="MIDDLE"><TR><TD>');
        document.write('<a href="javascript: window.close()" alt="Dieses Fenster schließen"><IMG SRC='+img+' WIDTH='+width+' HEIGHT='+height+' BORDER=0></a></TD></TR>');
        if(title != "") { document.write('<TR><TD align=center>'+title+'</TD></TR>'); }
        document.write('</TR></TABLE></DIV></BODY></HTML>');
      }
}

function openPic_new(img,title, width, height) {
   width_new = width+50;
   if(title ==""){
    height_new = height+25;
   } else {
    height_new = height+47;
   }
   mitte_hoehe = screen.height/2-height/2;
   mitte_breite = screen.width/2-width/2;
   Optionen = 'dependent=yes, left='+mitte_breite+', top='+mitte_hoehe+', toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=1,height='+height_new+',width='+width_new;
   neues_Fenster = window.open('','',Optionen)
   with (neues_Fenster)
      {
        window.moveTo((screen.width-width_new)/2, 100);
        window.location.href = img;
      }
}

//Bilder löschen
function deletePic(update_id,is_press,del_id,del_text) {

Check = confirm("Wollen Sie dieses Bild wirklich löschen?");
if(Check == true) document.location.href = "galery-edit.php?id="+update_id+"&press="+is_press+"&del_id="+del_id;

}

//Paßfoto löschen (im Mitgliederbereich)
function passfoto_loeschen(update_id) {
 Check = confirm("Wollen Sie dieses Paßfoto wirklich löschen?");
 if(Check == true) document.location.href = "mitglieder-aendern-eingabe.php?id="+update_id+"&del_id=1";
}

//Bilder löschen
function Musikantengalerie_Bild_loeschen(update_id,del_id) {

Check = confirm("Wollen Sie dieses Bild wirklich löschen?");
if(Check == true) document.location.href = "mitglieder-aendern-bilder.php?id="+update_id+"&del_id="+del_id;

}


//Link löschen
function deleteLink(update_id,del_id,del_text) {

Check = confirm("Wollen Sie diesen Link wirklich löschen?");
if(Check == true) document.location.href = "link-change.php?id="+update_id+"&del_id="+del_id;

}
//Auftrittsdetails anzeigen
function openEvent(veranstaltung, ort, zeit, treffpunkt, sonstig, datum) {
 width_new = 360;
 height_new = 260;
 mitte_hoehe = screen.height/2 - 125;
 mitte_breite = screen.width/2 - 175;
 Optionen = 'dependent=yes, left='+mitte_breite+', top='+mitte_hoehe+', toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0,height='+height_new+',width='+width_new;
 neues_Fenster = window.open('','',Optionen)
 with (neues_Fenster)
    {
      document.write('<HTML><HEAD><TITLE>Auftrittsdetails</TITLE><LINK REL= "stylesheet" TYPE="text/css" HREF="admin/data/style.css"></LINK></HEAD>');
      document.write('<BODY background="admin/data/pics/images/noten.gif"><DIV ALIGN="CENTER">');
      document.write('<TABLE BORDER=0 CELLSPACING=3 CELLPADDING=2 VALIGN="MIDDLE" WIDTH="320" class="table_border1" height="230" bgcolor="#FFEDAB">');
      document.write('<TR><TD height="20" width="70">Auftritt</TD><TD>'+veranstaltung+'</TD></TR>');
      document.write('<TR><TD height="20">Ort</TD><TD>'+ort+'</TD></TR>');
      document.write('<TR><TD height="20">Datum</TD><TD>'+datum+'</TD></TR>');
      document.write('<TR><TD height="20">Zeit</TD><TD>'+zeit+' Uhr</TD></TR>');
      document.write('<TR><TD height="1" colspan="2"><hr color="#000000"></TD></TR>');
      document.write('<TR><TD height="20" >Treffpunkt</TD><TD>'+treffpunkt+'</TD></TR>');
      document.write('<TR><TD valign="top">sonstiges</TD><TD valign="top">'+sonstig+'</TD></TR>');
      document.write('</TABLE>');
      document.write('</DIV></BODY></HTML>');
    }
}

function openEventAdmin(veranstaltung, ort, zeit, treffpunkt, sonstig, datum) {
 width_new = 350;
 height_new = 250;
 mitte_hoehe = screen.height/2 - 125;
 mitte_breite = screen.width/2 - 175;
 Optionen = 'dependent=yes, left='+mitte_breite+', top='+mitte_hoehe+', toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0,height='+height_new+',width='+width_new;
 neues_Fenster = window.open('','',Optionen)
 with (neues_Fenster)
    {
      document.write('<HTML><HEAD><TITLE>Auftrittsdetails</TITLE><LINK REL= "stylesheet" TYPE="text/css" HREF="data/style.css"></LINK></HEAD>');
      document.write('<BODY background="data/pics/images/noten.gif"><DIV ALIGN="CENTER">');
      document.write('<TABLE BORDER=0 CELLSPACING=3 CELLPADDING=2 VALIGN="MIDDLE" WIDTH="320" class="table_border1" height="230" bgcolor="#FFEDAB">');
      document.write('<TR><TD height="20" width="70">Auftritt</TD><TD>'+veranstaltung+'</TD></TR>');
      document.write('<TR><TD height="20">Ort</TD><TD>'+ort+'</TD></TR>');
      document.write('<TR><TD height="20">Datum</TD><TD>'+datum+'</TD></TR>');
      document.write('<TR><TD height="20">Zeit</TD><TD>'+zeit+' Uhr</TD></TR>');
      document.write('<TR><TD height="1" colspan="2"><hr color="#000000"></TD></TR>');
      document.write('<TR><TD height="20" >Treffpunkt</TD><TD>'+treffpunkt+'</TD></TR>');
      document.write('<TR><TD valign="top">sonstiges</TD><TD valign="top">'+sonstig+'</TD></TR>');
      document.write('</TABLE>');
      document.write('</DIV></BODY></HTML>');
    }
}