var ae_cb = null;
var versuche = 1;
 
function ae$(a) {
	return document.getElementById(a);
}
 
function ae_prompt(cb, q, a) { 
	ae_cb = cb;
	ae$('aep_prompt').innerHTML = q;
	ae$('aep_text').value = a;
	ae$('aep_ovrl').style.display = ae$('aep_ww').style.display = '';
	ae$('aep_text').focus();
	ae$('aep_text').select();
} 
 
function ae_clk(m) { 
	ae$('aep_ovrl').style.display = ae$('aep_ww').style.display = 'none';
	if (!m)  
		ae_cb(null);
	else{
		ae_cb(ae$('aep_text').value);
		versuche++;
	}
}

function hw1()
{
    ae_prompt( hw2, 'Wie lautet das Passwort?', '');
}

function hw2(n)
{
    var hello = document.getElementById('hello');
	if (n == 'rohrspatz')
		//ae$('spielberichte_inhalt').style.display = 'block';
		window.location='spielberichte.html';
	else if (versuche < 3)
		ae_prompt( hw2, 'Das war falsch. Wie lautet das Passwort?', '');
	//else
		//history.back();
}

