// Hilfsfunktionensammlung für iWin
repeat = 0;
trepeat = 0;
function showDS() {
	dsinfo=window.open('','ds','width=800,height=600,status=0,location=0,directories=0,toolbar=0,scrollbars=yes');
	dsinfo.focus();
}
function showTB() {
	width=400;height=600;
	tbinfo=window.open('','tb','width='+width+',height='+height+',status=0,location=0,directories=0,toolbar=0,scrollbars=yes');
	tbinfo.focus();
}
function goBack() {
	document.forms["game"].todo.value="";
	document.forms["game"].submit();
}
function checkForm() {
	repeat++;
	if(document.forms["game"].teilnbed && document.forms["game"].teilnbed.checked==false && repeat < 2) {
		if(confirm('Bitte füllen Sie das Formular vollständig aus: Fehlende Angaben sind rot markiert.')==true) {
			document.getElementById("disc").style.color = "#ff6666";
			return false;
		} else {
			document.getElementById("disc").style.color = "#ff6666";
			return false;
		}
	}
	trepeat++;
	if(document.forms["game"].UD_VORWAHL.value=='' && document.forms["game"].UD_TELEFON.value=='' && trepeat < 3) {
		if(confirm('Bitte füllen Sie das Formular vollständig aus: Geben Sie bitte Ihre Telefonnummer an.')== false) {
			return false;
  		} else {
			return false;
		}
	}
	return true;
}
