
	fs=1;
	function showphoto (adresar,imgnum,width,height,desc,fotoname){
		if(isNaN(fs)) fs.close();
		fs = window.open("http://www.beltina.cz/photo.php?id="+imgnum+"&desc="+desc+"&fotoname="+fotoname+"&adresar="+adresar,"photo","width="+width+",height="+height+",resizable=no,scrollbars=0,top=0");
	}
//  ------ check form ------
function checkData() {
	var f1 = document.forms[0];
	var wm = "<?PHP echo $strJSHello; ?>\n\r\n";
	var noerror = 1;

	// --- entered_login ---
	var t1 = f1.entered_login;
	if (t1.value == "" || t1.value == " ") {
		wm += "<?PHP echo $strLogin; ?>\r\n";
		noerror = 0;
	}

	// --- entered_password ---
	var t1 = f1.entered_password;
	if (t1.value == "" || t1.value == " ") {
		wm += "<?PHP echo $strPassword; ?>\r\n";
		noerror = 0;
	}

	// --- check if errors occurred ---
	if (noerror == 0) {
		alert(wm);
		return false;
	}
	else return true;
}
//

