function popupNews(bildname, orient, path, x, y) {
	if (orient == 1) { width = x; height = y; }
	else { width = 320; height = y }
	//width = x; height = y; window.alert(x + " - " + y);
	detail = window.open('','','copyhistory=no,directories=no,width=' + (width+20) + ',height=' + (height+25) + ',top=150,left=275,location=no,menubar=no,resizable=yes,scrollbars=no,status=no');
	detail.focus();
	
	with (detail) {
		document.write('<html><head><title>' + bildname + '</title></head><body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">');
		document.write('<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">');
		document.write('<tr><td align="center" valign="middle"><img src="' + path + '"></td></tr>');
		document.write('<tr><td style="font-weight:bold; text-align:center; font-family:arial; font-size:11px"></td></tr>');
		document.write('</table></body></html>');
	}
	
}

function checkContact() {
	inf = document.forms['contact'];
	if(inf.name.value == '' || inf.mail.value == '' || inf.ques.value == '') { document.getElementById("badmess").style.visibility = 'visible'; return false }
	else return true;
}

function checkMailReg() {
	inf = document.forms['reg'];
	if(inf.meno.value == '' || inf.priezvisko.value == '' || inf.mail.value == '') { document.getElementById("badmess").style.visibility = 'visible'; return false }
	else return true;
}