function formcheck() {
  
 		validity = true
		var meldung = "";
		
		
		meldung = meldung + "<div class='u2'>Folgende Angaben müssen noch ergänzt werden:</div> <br>";		

		if (document.anfrage.textfield2.value=="" || document.anfrage.textfield2.value==""){
  		meldung = meldung + "&nbsp;&nbsp;-    Bitte führen Sie zunächst die Berechnung durch<br>";
		validity = false;
		}

		
		
		if (document.anfrage.name.value=="" || document.anfrage.name.value==""){
  		meldung = meldung + "&nbsp;&nbsp;-    Nachname <br>";
		validity = false;
		}

		if (document.anfrage.firma.value=="" || document.anfrage.firma.value==""){
  		meldung = meldung + "&nbsp;&nbsp;-    Firma <br>";
		validity = false;
		}		

				
		if (document.anfrage.em.value=="" || document.anfrage.em.value==""){
  		meldung = meldung + "&nbsp;&nbsp;-    Email <br>";
		validity = false;
		}
		
	
		
		if (!validity){
	
		win = window.open ("","", "width=400,height=300");
		
		win.document.write("<html><head><title>FormularCheck</title>");
		win.document.write("<meta http-equiv='inhalt-Style-Type' inhalt='text/css'>");
		win.document.write("<link rel='stylesheet' type='text/css' href='commit.css'>");
		win.document.write("</head><body><br>");
		win.document.write("<table><tr><td class='maincenter'>");
		win.document.write(meldung);
		win.document.write("</td></tr></table>");
		win.document.write("<table><tr><td class='maincenter'>");
		win.document.write("<br><br><center><a href='#' onclick='window.close();'>Fenster schliessen</a></center>");
		win.document.write("</td></tr></table>");		
		win.document.write("</BODY></html>");
		}
		else{
			window.document.forms[0].submit();
		}
	}

