$(document).ready(function(){
	$(".accordion h3").eq().addClass("active");
	$(".accordion div.klapp").eq().show();
	$(".accordion h3").click(function(){
		$(this).next("div.klapp").slideToggle("slow").siblings("div.klapp:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h3").removeClass("active");
	});
});

	


function chkTest()
    {
     if(
	 	   document.Test.bsp6.value == "sem"
		&& document.Test.bsp7.value == "sen"
		&& document.Test.bsp8.value == "ile"
		&& document.Test.bsp9.value == "den"
		)
      {
       alert("Sehr gut! Das ist die richtige Lösung!");
       return false;
      }
	 else
	  {
	   alert("Die richtige Lösung lautet: In diesem Test müssen fehlende Wortteile eingesetzt werden.");
	   return false;
	  }
	}


function personalisieren() {

  parent.vorname=document.person.vorname.value;
  if (parent.vorname=="") {
    alert("Bitte geben Sie Ihren Vornamen ein!")
    document.person.vorname.focus()
    return false
    }
  parent.name=document.person.name.value;
  if (parent.name=="") {
    alert("Bitte geben Sie Ihren Namen ein!")
    document.person.name.focus()
    return false
    }
  parent.email=document.person.email.value;
  if (parent.email=="") {
    alert("Bitte geben Sie Ihre vollständige E-Mail-Adresse ein!")
    document.person.email.focus()
    return false
    }
  
  return true

  }
function check() {

  parent.vorname=document.person.vorname.value;
  parent.name=document.person.name.value;
  parent.email=document.person.email.value;

  if (parent.vorname=="" || parent.name=="" || parent.email=="") {
    alert("Ohne vollständige Personalisierung ist keine Auswertung möglich!")
    }
  
  }

function init() {

  document.person.vorname.value=parent.vorname;
  document.person.name.value=parent.name;
  document.person.email.value=parent.email;

  }

function welcome() {

  if (parent.name=="" || parent.vorname=="" || parent.email=="") {
    document.writeln('<h2>Auswertung ist nur mit Personalisierung möglich!</h2>')
    }
  else
    document.writeln('<h2>Herzlich Willkommen ',parent.vorname,' ',parent.name,'</h2>')

  }
