
function rechnung(rechnung_id)
    {
  str_tun =  "Soll die Rechnung jetzt per E-Mail versendet werden ?\n\n";
  tun = confirm(str_tun);
  if (tun == true)
    {
    document.editformular.subaction.value = "rechnung";
    document.editformular.rechnung_id.value = rechnung_id;
    document.editformular.submit();
    }
  else
    {
    eval("document.editformular.rechnung" + rechnung_id + ".checked = false");
    }
    }

function test()
    {
    alert("test");
    }

function anordnung(rechnung_id,buchungszeichen,datei)
    {
  str_tun =  "Soll jetzt die Annahmeanordnung gedruckt werden?\n\n";
  str_tun += "Hinweis:\n";
  str_tun += "Aus den Rechnungsdaten wird jetzt die Annahmeanordnung erstellt. \n";
  str_tun += "Drucken Sie diese vor Schließung des Fensters unbedingt aus!";
  tun = confirm(str_tun);
  if (tun == true)
    {
    window.open(datei+'?bz='+buchungszeichen,'Annahmeanordnung');
    //document.editformular.subaction.value = "anordnung";
    //document.editformular.rechnung_id.value = rechnung_id;
    //document.editformular.submit();
    }
  else
    {
    eval("document.editformular.anordnung" + rechnung_id + ".checked = false");
    }
    }

function bezahlt(rechnung_id)
    {
  str_tun =  "Ist der Geldbetrag vom Antragsteller eingegangen?\n\n";
  tun = confirm(str_tun);
  if (tun == true)
    {
    document.editformular.subaction.value = "bezahlt";
    document.editformular.rechnung_id.value = rechnung_id;
    document.editformular.submit();
    }
  else
    {
    eval("document.editformular.bezahlt" + rechnung_id + ".checked = false");
    }
    }

function finanzverfahren(rechnung_id)
    {
  str_tun =  "Sollen die Daten jetzt an das Finanzverfahren übergeben werden ?\n\n";
  tun = confirm(str_tun);
  if (tun == true)
    {
    document.editformular.subaction.value = "finanzverfahren";
    document.editformular.rechnung_id.value = rechnung_id;
    document.editformular.submit();
    }
  else
    {
    eval("document.editformular.finanzverfahren" + rechnung_id + ".checked = false");
    }
    }

function weiter_ohne_speichern(zielurl)
    {
  str_tun =  "Die Änderungen werden nicht gespeichert.\n Trotzdem weiter ?\n\n";
  tun = confirm(str_tun);
  if (tun == true) location.href = zielurl;
  }

function br_anmeldefenster(link)
        {
    poslinks = (screen.availWidth/2)-325
  //window.open(link,'Anmeldung','width=650,height=500,left=' + poslinks + ',top=25,scrollbars=yes');
    window.open(link,'Anmeldung','location=1,status=1,width=650,height=500,left=' + poslinks + ',top=25,scrollbars=yes');
    }

