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 info(url){
	window.open(url,"","toolbar=yes,scrollbars=yes,location=no,status=no,width=730,height=500,resizable=yes");}

function send_e(url){
	window.open(url,"sendemail","toolbar=no,scrollbars=no,location=no,status=no,width=200,height=180,resizable=no");}

function show_photo(url){
	window.open(url,"show_photo","toolbar=no,scrollbars=yes,location=no,status=no,width=802,height=620,resizable=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");}


var confirmMsg  = 'Skutocne chceš previest tento príkaz?';

function confirmLink(theLink, theSqlQuery){// Confirmation is not required in the configuration file
	if (confirmMsg == '') {
	return true;}
	var is_confirmed = confirm(confirmMsg + ' :\n' + theSqlQuery);
	if (is_confirmed) {
	}
	return is_confirmed;} // end of the 'confirmLink()' function

function kontrola(faq){
	if (faq.q.value==""){
		alert("Musíš vyplniť otázku");
		faq.q.focus();
		return false;}
	else if (!(faq.email.value=="")){
			if (window.RegExp){
			re = new RegExp("^[^@]+@[^.]+\..+$");
			if (!re.test(faq.email.value)){
				alert("Zadaná adresa nie je reálna e-mail adresa (nikot@nekde.xy)");
				faq.email.focus();
				return false;}}}
	else {return true;}}

function ValidateStat(pridavacka){
	if ((pridavacka.name.value.length>0) &&
	    (pridavacka.subject.value.length>0) &&
	    (pridavacka.tel.value.length>0) &&
	    (pridavacka.email.value.length>0)){
		if (pridavacka.email.value.length>0){
			if (window.RegExp){
				re = new RegExp("^[^@]+@[^.]+\..+$");
				if (!re.test(pridavacka.email.value)){
					alert("Zadaná adresa nie je reálna e-mail adresa (nikot@nekde.xy)");
					pridavacka.email.focus();
					return false;}
				return true;}
				}
		return true;
		}
		alert("Je potrebné vyplniť všetky políčka formuláru");
		return false;}

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;}
