	function openImagesWindow(url){
		window.open(url,'images','height=650,width=700,resizable=yes,scrollbars=yes').focus();
	}
	function showPicture(url,w,h){
		window.open(url,'image','height='+h+',width='+w+',resizable=yes').focus();
	}
	function openOnline(url){
		window.open(url,'online').focus();
		return false;
	}
	
	var printWindow;
	function openPrintWindow(url,countryCode){
		printWindow=window.open(url+'?country='+countryCode+'&amp;stylesheet=/templates/print.xsl','printWindow','height=600,width=350,resizable=yes,scrollbars=yes');
		printWindow.focus();
		
	}

	var helpWindow;
	function showHelp(url){	
		helpWindow=window.open(url,'helpWindow','height=600,width=700,resizable=yes,scrollbars=yes,menubar=yes');
		helpWindow.focus();
		
	}

	
	function showElement(elName){
		document.getElementById(elName).style.display='block';
	}

	function remindPassword(){
		window.open('/password.do','password','height=200,width=400').focus();
	}

    function rowSelected(row) {
        var e = row.getElementsByTagName("td");
        for (var i = 0; i < e.length; i++) {
            e[i].style.backgroundColor = '#FFE3BB';
        }
    }

    function rowRegular(row) {
        var p = row.rowIndex;
        var e = row.getElementsByTagName("td");
        for (var i = 0; i < e.length; i++) {
            e[i].style.backgroundColor = (p % 2) ? 'white' : '#f1f1f1';
        }
    }

	function offsetPosition(element) {
        var offsetLeft = 0, offsetTop = 0;
        do {
            offsetLeft += element.offsetLeft;
            offsetTop += element.offsetTop;
        } while (element = element.offsetParent);
        return [offsetLeft, offsetTop];
    }

    //����� ��������� �������� �� ��������������
    function displayChange(element) {
        element.style.display = element.style.display == 'none' ? 'block' : 'none';
    }



    function rowSelected_new(row) {
        $( row ).addClassName( "row_selected");
    }

    function rowRegular_new(row) {
        $( row ).removeClassName( "row_selected");
    }

