var id = "";
var vastatud = "";
if (!id) {
	alert("Vale või puuduv ligipääsukood!\nWrong or missing access code!");
	document.location.href = 'http://www.eformular.com'
} else {
	document.getElementById('saadetis').value = ''
	document.getElementById('email').value = ''
}

function checkSingle(currEf,nextEf) {
	if (vastatud != '') {
		alert("eFormular "+currEf+" on juba vastatud!\neFormular "+currEf+" is already answered!");
		if (nextEf != '') {
			href = document.location.href; href = href.replace('/'+currEf+'.html','/'+nextEf+'.html');
		} else {
			href = 'http://www.eformular.com';
		}
		//alert(href);
		document.location.href = href;
	}
}

