function ff() {	if (document.filter_f.filter.checked==true)	filter_f.submit();}
function check_z()
{
allright=false;
n=document.z_form.length-1;
for (i=0;i<n;i++)
	if (document.z_form.elements[i].checked==true)
		allright=true;
if (!allright) 
	alert ('Извините, но необходимо выбрать хотя бы одну позицию');
else
	document.z_form.submit();
}

function setPointer(theRow, thePointerColor)
{
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function


function rm_over(uid) { 
	if (document.images[uid])
		document.images[uid].src='/images/mark_blue.gif'; 
}
function rm_out(uid)  { 
	if (document.images[uid])	
		document.images[uid].src='/images/mark_grey.gif'; 
}
function tm_over(uid) { 
	if (document.images[uid])
		document.images[uid].src='/images/mark_blue2.gif'; 
}
function tm_out(uid)  { 
	if (document.images[uid])
		document.images[uid].src='/images/mark_blue.gif'; 
}
function p_over(uid)  { 
	if (document.images[uid])
		document.images[uid].src='/images/print.gif'; 
}
function p_out(uid)   { 
	if (document.images[uid])
		document.images[uid].src='/images/print_grey.gif'; 
}
	
function $(id){ return document.getElementById(id); }
