﻿<!--
    function openDiv(id) {
        var element = document.getElementById(id);
        if (element) element.style.display = "block";
    }
    
    function closeDiv(id) {
        var element = document.getElementById(id);
        if (element) element.style.display = "none";
	}
	
	function showDiv(id) {
        var element = document.getElementById(id);
        if (element) element.style.visibility = "visible";
    }
    
    function hideDiv(id) {
        var element = document.getElementById(id);
        if (element) element.style.visibility = "hidden";
	}
	
    function openWindow(file, name, width, height) {     
        var x = (window.screen.availWidth - width) / 2 - 5;
        var y = (window.screen.availHeight - height) / 2 - 30;
        if (x < 0) x = 0;
        if (y < 0) y = 0;
        
	    var newWnd = window.open(file, name, 'resizable=yes, width=' + width + ', height=' + height + ', left=' + x + ', top=' + y + ', menubar=0, location=0, toolbar=0, personalbar=0, status=1, scrollbars=1');
	    if (window.focus) newWnd.focus();
    }
    
    function configuration(component, id) {
        if (document.getElementById('tmp' + component) == null)
            return;
            
        document.getElementById('tmp' + component).innerHTML = '<img src="ComponentPhoto.aspx?Id=' + id + '&Numer=2"/>';
        document.getElementById('tmp' + component + 'big').innerHTML = '<img src="ComponentPhoto.aspx?Id=' + id + '&Numer=1"/>';    
    }
//-->