function checkt(){
	if(document.vorm.cb.value=="" || document.vorm.cb.value=="0"){
		document.vorm.cb.value="1";
		document.getElementById('cb1').checked=false;
		document.getElementById('cb2').checked=true;
		document.getElementById('lae').className = "hiddend";
		document.getElementById('kirjuta').className = "blockd";
	}else{
		document.vorm.cb.value="0";
		document.getElementById('cb1').checked=true;
		document.getElementById('cb2').checked=false;
		document.getElementById('lae').className = "blockd";
		document.getElementById('kirjuta').className = "hiddend";
	}
}
function tookogemus_puudub(){
	if(document.vorm2.tookogemus.checked){
		document.vorm2.alf1.setAttribute('disabled', 'disabled');
		document.vorm2.knf1.setAttribute('disabled', 'disabled');
		document.vorm2.firma1.setAttribute('disabled', 'disabled');
		document.vorm2.pohjus1.setAttribute('disabled', 'disabled');

		document.vorm2.alf2.setAttribute('disabled', 'disabled');
		document.vorm2.knf2.setAttribute('disabled', 'disabled');
		document.vorm2.firma2.setAttribute('disabled', 'disabled');
		document.vorm2.pohjus2.setAttribute('disabled', 'disabled');

		document.vorm2.alf3.setAttribute('disabled', 'disabled');
		document.vorm2.knf3.setAttribute('disabled', 'disabled');
		document.vorm2.firma3.setAttribute('disabled', 'disabled');
		document.vorm2.pohjus3.setAttribute('disabled', 'disabled');

		document.vorm2.alf4.setAttribute('disabled', 'disabled');
		document.vorm2.knf4.setAttribute('disabled', 'disabled');
		document.vorm2.firma4.setAttribute('disabled', 'disabled');
		document.vorm2.pohjus4.setAttribute('disabled', 'disabled');

		document.vorm2.alf1.value="";
		document.vorm2.knf1.value="";
		document.vorm2.firma1.value="";
		document.vorm2.pohjus1.value="";

		document.vorm2.alf2.value="";
		document.vorm2.knf2.value="";
		document.vorm2.firma2.value="";
		document.vorm2.pohjus2.value="";

		document.vorm2.alf3.value="";
		document.vorm2.knf3.value="";
		document.vorm2.firma3.value="";
		document.vorm2.pohjus3.value="";

		document.vorm2.alf4.value="";
		document.vorm2.knf4.value="";
		document.vorm2.firma4.value="";
		document.vorm2.pohjus4.value="";
	}
	if(!document.vorm2.tookogemus.checked){
		
		document.vorm2.alf1.removeAttribute('disabled');
		document.vorm2.knf1.removeAttribute('disabled');
		document.vorm2.firma1.removeAttribute('disabled');
		document.vorm2.pohjus1.removeAttribute('disabled');

		document.vorm2.alf2.removeAttribute('disabled');
		document.vorm2.knf2.removeAttribute('disabled');
		document.vorm2.firma2.removeAttribute('disabled');
		document.vorm2.pohjus2.removeAttribute('disabled');

		document.vorm2.alf3.removeAttribute('disabled');
		document.vorm2.knf3.removeAttribute('disabled');
		document.vorm2.firma3.removeAttribute('disabled');
		document.vorm2.pohjus3.removeAttribute('disabled');

		document.vorm2.alf4.removeAttribute('disabled');
		document.vorm2.knf4.removeAttribute('disabled');
		document.vorm2.firma4.removeAttribute('disabled');
		document.vorm2.pohjus4.removeAttribute('disabled');
	}
}
