	var oVisibleDiv = null;

	function showBoxShot(caller, id, skipDiv) {
		if (oVisibleDiv)
			oVisibleDiv.style.visibility = 'hidden';

		var oDiv = document.getElementById('shot_' + id);
		if (oDiv) {
			var left = 0, top = 0;

			var obj = caller;
			while(obj) {
				if (!(skipDiv && obj.tagName == 'DIV') &&
					obj.tagName != 'TR' &&
					obj.tagName != 'TBODY') {

					if (obj.offsetLeft) {
						left += obj.offsetLeft;
					}

					if (obj.offsetTop) {
						top += obj.offsetTop;
					}
				}

				obj = obj.parentNode;
			}

			if (left + oDiv.offsetWidth - document.body.scrollLeft > document.body.clientWidth - 5) {
				left = document.body.clientWidth - oDiv.offsetWidth + document.body.scrollLeft - 5;
			}
			if (top + oDiv.offsetHeight - document.body.scrollTop + caller.offsetHeight > document.body.clientHeight - 5) {
				top = top - oDiv.offsetHeight;
			}
			else {
				top += caller.offsetHeight;
			}

			oDiv.style.left = left + 'px';
			oDiv.style.top = top + 'px';
			oDiv.style.visibility = 'visible';
			oDiv.style.zIndex = 100;

			oVisibleDiv = oDiv;
		}
	}

	function hideBoxShot() {
		if (oVisibleDiv) {
			oVisibleDiv.style.left = '0px';
			oVisibleDiv.style.top = '0px';
			oVisibleDiv.style.visibility = 'hidden';
		}
	}

//	function zoznam(subor, nazov) {
//		window.open(subor,nazov,'width=700,height=550,resizable=no,scrollbars=yes,status=0,left=10,top=50');
//	}

	function zoznam(obsah, nazov) {
		testik = document.open("text/html", "_blank");
		testik.write(obsah);

//		oNewDoc.close();
	}

	function roll_over(img_name, img_src) {
		document[img_name].src = img_src;
	}


// Vysvietenie riadku
function PMA_markRowsInit() {
    // for every table row ...
	var rows = document.getElementsByTagName('tr');
	for ( var i = 0; i < rows.length; i++ ) {
	    // ... with the class 'odd' or 'even' ...
		if ( 'tableRow0' != rows[i].className && 'tableRow1' != rows[i].className ) {
		    continue;
		}
	    // ... add event listeners ...
        // ... to highlight the row on mouseover ...
	    if ( navigator.appName == 'Microsoft Internet Explorer' ) {
	        // but only for IE, other browsers are handled by :hover in css
			rows[i].onmouseover = function() {
			    this.className += ' hover';
			}
			rows[i].onmouseout = function() {
			    this.className = this.className.replace( ' hover', '' );
			}
	    }
        // ... and to mark the row on click ...
		rows[i].onmousedown = function() {
		    var unique_id;
            var checkbox;

            checkbox = this.getElementsByTagName( 'input' )[0];
            if ( checkbox && checkbox.type == 'checkbox' ) {
                unique_id = checkbox.name + checkbox.value;
            } else if ( this.id.length > 0 ) {
                unique_id = this.id;
            } else {
		        return;
		    }

            if ( typeof(marked_row[unique_id]) == 'undefined' || !marked_row[unique_id] ) {
                marked_row[unique_id] = true;
            } else {
                marked_row[unique_id] = false;
            }

            if ( marked_row[unique_id] ) {
			    this.className += ' marked';
            } else {
			    this.className = this.className.replace(' marked', '');
            }

            if ( checkbox && checkbox.disabled == false ) {
                checkbox.checked = marked_row[unique_id];
            }
		}

		// ... and disable label ...
		var labeltag = rows[i].getElementsByTagName('label')[0];
		if ( labeltag ) {
		    labeltag.onclick = function() {
		        return false;
		    }
	    }
	    // .. and checkbox clicks
		var checkbox = rows[i].getElementsByTagName('input')[0];
		if ( checkbox ) {
		    checkbox.onclick = function() {
		        // opera does not recognize return false;
		        this.checked = ! this.checked;
		    }
	    }
	}
}
window.onload=PMA_markRowsInit;


function formCheckboxOff(id)
{
    document.getElementById(id).checked = false;
}





