function submitPhilipsForm(theElement, paramFilter)
{
    var theForm = null;
    var currElement = theElement;
    
    // loop through until we find the enclosing form element for this TD
    while (theForm == null) 
    {
    	var parentNode = currElement.parentNode;
    	var currForm = parentNode.getElementsByTagName("form");
    	
    	//alert(currForm[0]);
    	
    	if (currForm.length >0)
    	{
    		theForm = currForm[0];
    	}
    	else
    	{
    		currElement = parentNode;
    	}
    }
    
    var newElem = document.createElement('input');
    newElem.setAttribute('type','hidden');
    newElem.setAttribute('name',paramFilter);
    theForm.appendChild(newElem);
    
    theForm.submit();
    
}

function submitPhilipsNamedForm(theForm, paramFilter)
{

    var newElem = document.createElement('input');
    newElem.setAttribute('type','hidden');
    newElem.setAttribute('name',paramFilter);
    theForm.appendChild(newElem);
    
    theForm.submit();
    
}
