


function ListaProduktu_DropDownList(ddl,atr_id)
{	
         var e = document.getElementById(ddl);
         var val = e.options[e.selectedIndex].value;

        __doPostBack('', 'DropDownId='+ atr_id +'&DropDownValue='+ val);
	
}

function isNumberKey(evt)
{
         var charCode = (evt.which) ? evt.which : event.keyCode
         if (charCode > 31 && (charCode < 48 || charCode > 57))
            return false;

         return true;
}

function PrintZalgowany(id)
{
    
        __doPostBack('','PrintZalgowany=' + id);
}

function EdytujIlosc(id,ilosc)
{
    __doPostBack('', 'edytujIlosc=' + id + '&ilosc=' + ilosc);
}



menu_status = new Array();
var last_expanded = '';

function showHide(id)
{
	var obj = document.getElementById(id);
	var status = obj.className;

	if (status == 'hide') 
	{
	    if (last_expanded != '') 
	    {
	        var last_obj = document.getElementById(last_expanded);
	        last_obj.className = 'hide';
	    }
	   
	    obj.className = 'show';
	    last_expanded = id;
	    
	} else {
		obj.className = 'hide';
	}
} 



