
	function resetTest(b) {
// 		if ( confirm("Сигурни ли сте, че искате да изчистите формата?") ) b.form.reset();
		b.form.reset();
	}
	function get(id) { return document.getElementById(id) }
	function getv(id) { return get(id).value }
	function getc(id) { return get(id).checked }

	function checkResults(form) {
		var points = 0;

// 		exercise one
		if ( getv('ex1a') == 'tom inžinierovi Kováčovi' ) points++;
		if ( getv('ex1b') == 'Katkinmu vysvedčeniu' ) points++;
		if ( getv('ex1c') == 'veselé časopisy' ) points++;
		if ( getv('ex1d') == 'starých pani učiteliek' ) points++;
		if ( getv('ex1e') == 'najdlhších neznámych uliciach' ) points++;
		if ( getv('ex1f') == 'otcovými obľúbenými miestnosťami' ) points++;
		if ( getv('ex1g') == 'nášho Čierneho mora' ) points++;
		if ( getv('ex1h') == 'cudzím žltým autám' ) points++;

// 		exercise two
// 		if ( getc('ex2a') == false ) points++;
		if ( getc('ex2b') == true ) points++;
/*		if ( getc('ex2c') == false ) points++;
		if ( getc('ex2d') == false ) points++;
		if ( getc('ex2e') == false ) points++;*/
		if ( getc('ex2f') == true ) points++;
		if ( getc('ex2g') == true ) points++;
/*		if ( getc('ex2h') == false ) points++;
		if ( getc('ex2j') == false ) points++;*/
		if ( getc('ex2i') == true ) points++;

// 		exercise three
// 		if ( getc('ex31a') == false && getc('ex31b') == true &&  getc('ex31c') == true && getc('ex31d') == false ) points++;
// 		if ( getc('ex32a') == true && getc('ex32b') == false &&  getc('ex32c') == true && getc('ex32d') == false ) points++;
// 		if ( getc('ex33a') == false && getc('ex33b') == true &&  getc('ex33c') == false && getc('ex33d') == true ) points++;
// 		if ( getc('ex34a') == true && getc('ex34b') == true &&  getc('ex34c') == false && getc('ex34d') == false ) points++;

		if ( getc('ex31b') == true ) points++;
		if ( getc('ex31c') == true ) points++;
		if ( getc('ex32a') == true ) points++;
		if ( getc('ex32c') == true ) points++;
		if ( getc('ex33b') == true ) points++;
		if ( getc('ex33d') == true ) points++;
		if ( getc('ex34a') == true ) points++;
		if ( getc('ex34b') == true ) points++;

// 		exercise four
		if ( getv('ex4a') == 'spi' ) points++;
		if ( getv('ex4b') == 'jedz' ) points++;
		if ( getv('ex4c') == 'buď' ) points++;
		if ( getv('ex4d') == 'pichni' ) points++;
		if ( getv('ex4e') == 'upratuj' ) points++;
		if ( getv('ex4f') == 'krič' ) points++;
		if ( getv('ex4g') == 'príď' ) points++;

// 		exercise five
		if ( getc('ex51a') == true ) points++;
		if ( getc('ex52b') == true ) points++;
		if ( getc('ex53c') == true ) points++;
		if ( getc('ex54c') == true ) points++;
		if ( getc('ex55b') == true ) points++;
		if ( getc('ex56b') == true ) points++;

// 		exercise six
		if ( getc('ex61a') == true ) points++;
		if ( getc('ex62c') == true ) points++;
		if ( getc('ex63a') == true ) points++;
		if ( getc('ex64c') == true ) points++;
		if ( getc('ex65a') == true ) points++;
		if ( getc('ex66a') == true ) points++;

// 		exercise seven
		if ( getv('ex71') == 'pána docenta' ) points++;
		if ( getv('ex72') == 'susedovho psa' ) points++;
		if ( getv('ex73') == 'našej tete' ) points++;
		if ( getv('ex74') == 'starých dôchodcov' ) points++;
		if ( getv('ex75') == 'zelených duboch' ) points++;
		if ( getv('ex76') == 'neho' ) points++;
		if ( getv('ex77') == 'ním' ) points++;
		if ( getv('ex78') == 'Ju' ) points++;
		if ( getv('ex79') == 'nim' ) points++;

// 		exercise eight
		if ( getc('ex81') == true ) points++;
/*		if ( getc('ex82') == false ) points++;
		if ( getc('ex83') == false ) points++;*/
		if ( getc('ex84') == true ) points++;
// 		if ( getc('ex85') == false ) points++;
		if ( getc('ex86') == true ) points++;

// 		get('results').innerHTML = 'Počet bodov spolu: ' + points + ' z 51.';
		alert('Počet bodov spolu: ' + points + ' z 51.');
	}


