﻿function Heute(){ 
var newday = new Date();
  var tag = newday.getDate();
  var monat = newday.getMonth()+1;
  var jahr = newday.getYear();
  if (monat == 1){monat = "Januar"};
  if (monat == 2){monat = "Februar"};
  if (monat == 3){monat = "März"};
  if (monat == 4){monat = "April"};
  if (monat == 5){monat = "Mai"};
  if (monat == 6){monat = "Juni"};
  if (monat == 7){monat = "Juli"};
  if (monat == 8){monat = "August"};
  if (monat == 9){monat = "September"};
  if (monat == 10){monat = "Oktober"};
  if (monat == 11){monat = "November"};
  if (monat == 12){monat = "Dezember"};
  if (jahr <= 1000){jahr = jahr + 1900};
  if (tag <= 31){tag = " " + tag};
window.document.form.Datum.value = ', den ' + tag + '. ' + monat + ' ' + jahr;
}
var fenetreNote,texte;
function valik(form) {

  var texte =' '
texte ='<html><head><title>Briefansicht </title></head>\r'
texte +='<body topmargin="' + document.form.Topbody.value + '" leftmargin="' + document.form.Leftbody.value + '">\r'
texte +='<span style="font-family:' + document.form.Schrift.value + '; font-size:' + document.form.Gross.value + '"><br><br>\r'
texte +='<span style="font-size:14pt;"><br><br>\r'
texte +=' ' + document.form.Textoben.value + '</span><br><br><br>\r'
texte +=' ' + document.form.Name1.value + ' <b>' + document.form.Name2.value + '</b> &nbsp;&nbsp;&nbsp;' + document.form.Klasse1.value + ' <b>' + document.form.Klasse2.value + '</b><br><br><br>\r'
texte +=' <b>' + document.form.Text1.value + '' + document.form.Text2.value + '' + document.form.Text3.value + '' + document.form.Textbis.value + '' + document.form.Text4.value + '' + document.form.Nicht.value + '</b><br><br><br><br>\r'
texte +=' ' + document.form.Erkr1.value + ' ' + document.form.Erkr2.value + '<br><br><br>\r'
texte +=' ' + document.form.Ort.value + '' + document.form.Datum.value + '<br><br>\r'
texte +='</font></font></span>\r'
texte +='</body></html>\r'
fenetreNote=window.open("","","status=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizeable=yes, width=600, height=700, top=20, left=20");
fenetreNote.document.write(texte); 
fenetreNote.document.close() 
}
