function checkform_anfrage()
{

if (document.anfrage.vorname.value=="")
   { alert ("Wie lautet Ihr Vorname?");
     document.anfrage.vorname.focus();
     return false; }

if (document.anfrage.name.value=="")
   { alert ("Bitte geben Sie auch Ihren Nachnamen an");
     document.anfrage.name.focus();
     return false; }

if (document.anfrage.strasse.value=="")	
   { alert ("Die Adresse ist nicht komplett");
     document.anfrage.strasse.focus();
     return false; }

if (document.anfrage.plz.value=="")
   { alert ("Wie lautet Ihre Postleitzahl?");
     document.anfrage.plz.focus();
     return false; }

if (document.anfrage.ort.value=="")
   { alert ("Geben Sie bitte auch Ihren Wohnort an");
     document.anfrage.ort.focus();
     return false; }
  
if (document.anfrage.email.value.indexOf('@')==-1)
   { alert ("Ungültige Email-Adresse, bitte kontrollieren");
     document.anfrage.email.focus();
     return false; }
	 
if (document.anfrage.telefon.value=="")
   { alert ("Bitte geben Sie für Rückfragen noch Ihre Telefonnummer an");
     document.anfrage.telefon.focus();
     return false; }

if (document.anfrage.anfragetext.value=="")
   { alert ("Sie haben noch keinen Anfragetext angegeben");
     document.anfrage.anfragetext.focus();
     return false; }
	 
else { document.forms[ "anfrage" ].submit();}
}


function checkform_anmeldung()
{

if (document.anmeldung.vorname.value=="")
   { alert ("Wie lautet Ihr Vorname?");
     document.anmeldung.vorname.focus();
     return false; }

if (document.anmeldung.name.value=="")
   { alert ("Bitte geben Sie auch Ihren Nachnamen an");
     document.anmeldung.name.focus();
     return false; }

if (document.anmeldung.strasse.value=="")	
   { alert ("Die Adresse ist nicht komplett");
     document.anmeldung.strasse.focus();
     return false; }

if (document.anmeldung.plz.value=="")
   { alert ("Wie lautet Ihre Postleitzahl?");
     document.anmeldung.plz.focus();
     return false; }

if (document.anmeldung.ort.value=="")
   { alert ("Geben Sie bitte auch Ihren Wohnort an");
     document.anmeldung.ort.focus();
     return false; }
  
if (document.anmeldung.email.value.indexOf('@')==-1)
   { alert ("Ungültige Email-Adresse, bitte kontrollieren");
     document.anmeldung.email.focus();
     return false; }
	 
if (document.anmeldung.telefon.value=="")
   { alert ("Bitte geben Sie für Rückfragen noch Ihre Telefonnummer an");
     document.anmeldung.telefon.focus();
     return false; }
	 
else { document.forms[ "anmeldung" ].submit();}
}

function checkform_konfiguration_solar()
{
	
if (document.konfiguration_solar.energie_bisher.value=="")
   { alert ("Bitte geben Sie Ihren bisherigen Energieverbrauch an. Ist Ihnen dieser unbekannt, schreiben Sie eine '0' in das Feld.");
     document.konfiguration_solar.energie_bisher.focus();
     return false; }
	 
if (document.konfiguration_solar.vorname.value=="")
   { alert ("Wie lautet Ihr Vorname?");
     document.konfiguration_solar.vorname.focus();
     return false; }

if (document.konfiguration_solar.name.value=="")
   { alert ("Bitte geben Sie auch Ihren Nachnamen an");
     document.konfiguration_solar.name.focus();
     return false; }
	 
if (document.konfiguration_solar.strasse.value=="")	
   { alert ("Die Adresse ist nicht komplett");
     document.konfiguration_solar.strasse.focus();
     return false; }

if (document.konfiguration_solar.plz.value=="")
   { alert ("Wie lautet Ihre Postleitzahl?");
     document.konfiguration_solar.plz.focus();
     return false; }

if (document.konfiguration_solar.ort.value=="")
   { alert ("Geben Sie bitte auch Ihren Wohnort an");
     document.konfiguration_solar.ort.focus();
     return false; } 
	 
if (document.konfiguration_solar.email.value.indexOf('@')==-1)
   { alert ("Ungültige Email-Adresse, bitte kontrollieren");
     document.konfiguration_solar.email.focus();
     return false; }
	 
if (document.konfiguration_solar.telefon.value=="")
   { alert ("Bitte geben Sie für Rückfragen noch Ihre Telefonnummer an");
     document.konfiguration_solar.telefon.focus();
     return false; }

	 
else { document.forms[ "konfiguration_solar" ].submit();}
}