function submitTableForm(sortProperty, sortValue, pageProperty, pageValue, extraProperty, extraValue) 
{
	var formSubmitField = '';
	var sortFormField;
	var pageFormField;
	var extraFormField;
	var form;
	
	//alert('sortProperty' + sortProperty + "\n" + 'sortValue' + sortValue + "\n" + 'pageProperty' + pageProperty + "\n" + 'pageValue' + pageValue + "\n" + 'extraProperty' + extraProperty + "\n" + 'extraValue' + extraValue);		
	if(sortProperty != '')
	{
		sortFormField = eval("document.getElementsByName('" + sortProperty + "')[0]");
		sortFormField.value = sortValue;
		formSubmitField = sortFormField;
	}
	 
	if(pageProperty != '')
	{
		pageFormField = eval("document.getElementsByName('" + pageProperty + "')[0]");
		pageFormField.value = pageValue;		
		if(formSubmitField == '')		
			formSubmitField = pageFormField;		
	}
	
	if(extraProperty != '')
	{
		extraFormField =  eval("document.getElementsByName('" + extraProperty + "')[0]"); 
		extraFormField.value = extraValue;
		if(formSubmitField == '')	
			formSubmitField = extraFormField;
	}
	
	form = formSubmitField.form;
	form.submit();
}

/* modyfikowal PJ by rowFocus dzialal poprawnie dla grupowanych tabelek */
function rowFocus(row, rowHighlightClass)
{
 	row.style.cursor = 'hand';	
	
	start = row.rowIndex;
    table = row.parentNode.parentNode;
    kolumn= table.rows[0].cells.length;

	while(table.rows[start].cells.length != kolumn) start--;
	
	row = table.rows[start];
	
	ile = row.cells[0].rowSpan;
    
    for (var j = start; j<start+ile; j++){
        row2 = table.rows[j];
    	for(var i = 0; i < row2.cells.length; i++)
    	{
    		var cell = row2.cells[i];
    		cell.className = rowHighlightClass; 
    	}
    }
}

/* modyfikowal PJ by rowBlur dzialal poprawnie dla grupowanych tabelek */
function rowBlur(row, rowClass)
{
	row.style.cursor = 'default';
	
	start = row.rowIndex;
    table = row.parentNode.parentNode;
    kolumn= table.rows[0].cells.length;

	while(table.rows[start].cells.length != kolumn) start--;
	
	row = table.rows[start];
	
	ile = row.cells[0].rowSpan;

    for (var j = start; j<start+ile; j++){
        row2 = table.rows[j];
    	for(var i = 0; i < row2.cells.length; i++)
    	{
    		var cell = row2.cells[i];
    		cell.className = rowClass; 
    	}
    }
}