var terms_accepted="";

checkbox_1 = false;

function termsAccepted() {
	if ( checkbox_1 == false ) {
		terms_accepted='accepted';
		checkbox_1 = true;
	} else {
		terms_accepted='';
		checkbox_1 = false;
	}
}


function checkForm() {
	if (checkboxFunc()) {
		window.location.href = 'index.php';
   }
}


function checkboxFunc() {
	if (terms_accepted=="") {
		alert("\Du musst die Bedingungen akzeptieren, bevor du eintreten kannst!");
	} else {
		return true;
   }
}

