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 checkForm() {
	gform=document.forms["game"];
	errm='';
	// adult?
	if(gform.adult && gform.adult.checked==false){
		alert('¡Por favor, declara ser mayor de 18 años!');
		return false;
		}
	if(document.forms["game"].teilnbed && document.forms["game"].teilnbed.checked==false) {
		if(confirm('¡Por favor acepta las condiciones de participación!')==true) {
			document.forms["game"].teilnbed.checked=true;
			return false;
		} else {
			return false;
		} 
	}

	if(document.forms["game"].UD_TELOPTIN && document.forms["game"].UD_TELOPTIN.checked==false) {
		if(confirm('¡Por favor acepta la política de privacidad!')==true) {
			document.forms["game"].UD_TELOPTIN.checked=true;
			return false;
		} else {
			return false;
		}
	}
	return true;
}
function checkCoregs() {
  // wenn kein coreg ausgewählt wurde, geht es zur welcome seite
  coregschecked = 0;
  regform = document.forms['coregform'];
  if(regform.elements["CK_IDS[]"].length) {
    for(i=0;i<regform.elements["CK_IDS[]"].length;i++) {
      // alle select smuessen explizit au fsi oder no gesetzt werden  
      if(regform.elements["CK_IDS[]"][i].selectedIndex == 0) {
        alert('¡Por favor, marca todas las ofertas con sí o no!');
        return false;
        }
      }
      return true;
   }
}
