function setPointer(theRow, thePointerColor){
	if (typeof(theRow.style)=='undefined'||typeof(theRow.cells)=='undefined'){
	return false;}
	var row_cells_cnt = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++){
	theRow.cells[c].bgColor = thePointerColor;}
    return true;} // end of the 'setPointer()' function
function slideshow(url){
	window.open(url,"","toolbar=no,scrollbars=yes,location=no,status=no,width=550,height=500,resizable=yes");}
function okno(url){
	window.open(url,"","toolbar=no,scrollbars=yes,location=no,status=no,width=550,height=300,resizable=yes");}
function send_e(url){
	window.open(url,"sendemail","toolbar=no,scrollbars=no,location=no,status=no,width=200,height=180,resizable=auto");}
function show_photo(aid,w,h){
	window.open('showphoto.php?aid='+aid+'','vn_photo','width='+w+', height='+h+', toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no');}
function show_subor(url){
	window.open(url,"show_subor","toolbar=no,scrollbars=yes,location=no,status=no,width=100,height=50,resizable=no");}
function tlac(url){window.open(url,"","scrollbars=yes,status=yes,menubar=no,toolbar=yes,resizable=yes,width=700");}
function kontrola(hladanie){
	if (hladanie.slovo.value==""){
		alert("Nebolo zadané hľadané slovo!");
		hladanie.slovo.focus();
		return false;}
	else {return true;}}
function kontrolaemail(eml){
	if (eml.email.value==""){
		alert("Treba vyplniť emailovú adresu");
		eml.email.focus();
		return false;}
	else if (window.RegExp){
		re = new RegExp("^[^@]+@[^.]+\..+$");
		if (!re.test(eml.email.value)){
			alert("Zadaná adresa nie je e-mailová adresa (niekto@xxxx.yy)");
			eml.email.focus();
			return false;}}
	else {return true;}}

function kontrola2(login){
	if ((login.lg_name.value.length>0) &&
	    (login.lg_pw.value.length>0)){
		return true;
		}
		alert("Potrebné vyplniť Meno a Heslo!");
		return false;}