<!--
function showCom(id) {
	
	ob = document.getElementById('com'+id);
	if (ob.style.display != 'none') ob.style.display = 'none';
	else ob.style.display = '';
	
}

function newCom(form) {
	
if (form.autor.value == '') {
	alert('Nie podano autora.');
	form.autor.focus();
	return false;
}
else 
if (form.tekst.value == '') {
	alert('Nie podano komentarza.');
	form.tekst.focus();
	return false;
}
else return true;
}

function getCode() {
var start = 97;
var limit = 25;
var rand1 = Math.random();
var charCode1 = start + Math.round(limit * rand1);
var rand2 = Math.random();
var charCode2 = start + Math.round(limit * rand2);
var rand3 = Math.random();
var charCode3 = start + Math.round(limit * rand3);
var rand4 = Math.random();
var charCode4 = start + Math.round(limit * rand4);
var rand5 = Math.random();
var charCode5 = start + Math.round(limit * rand5);
var rand6 = Math.random();
var charCode6 = start + Math.round(limit * rand6);
ob = document.getElementById('verCode');
ob.innerHTML = String.fromCharCode(charCode1, charCode2, charCode3, charCode4, charCode5, charCode6);

ob = document.getElementById('code2');
ob.value = String.fromCharCode(charCode1, charCode2, charCode3, charCode4, charCode5, charCode6);

}




