/*
Submits a specified shoppinglist freeText field of the shooping list.

@param form the current form that was submitted
@categoryId the id of the submitted freeText field 

*/
function shoppinglist_freeText_submit(form, categoryId)
{
  document.getElementById('actionId').value='saveCategoryFreeText';
  document.getElementById('categoryJspId').value=categoryId;
}

/*
Submits the shoppinglist form and sets a request parameter representing the popup action.

@param form the current form that was submitted
@popup the requested action to be performed 
*/                   
function shoppinglist_popup_action(form, popupAction)
{
  document.getElementById('actionId').value='saveList';
  document.getElementById('targetId').value=popupAction; 
}

/*
Jumps to the specified anchor.

@param the specified anchor to jump to
*/
function shoppinglist_gotoAnchor(anchor){
    window.location.hash=anchor;   
}