function SubmitChangedGroup(p_oSelect)
{
 SubmitChanges(p_oSelect.form);
}

//function SubmitSortorder(p_strAction, p_strSortorder)
//{
// var l_oInput;
// var l_oForm;
// 
// l_oInput = document.createElement('input');
// l_oInput.setAttribute('type', 'hidden');
// l_oInput.setAttribute('name', 'SearchOrder');
// l_oInput.setAttribute('value', p_strSortorder);
// l_oForm = document.createElement('form');
// l_oForm.setAttribute('action', p_strAction);
// l_oForm.setAttribute('method', 'post');
// l_oForm.appendChild(l_oInput);
// document.body.appendChild(l_oForm);
// SubmitChanges(l_oForm);
//}

//function GotoPage(p_oSelect)
//{
// location.href = p_oSelect.options[p_oSelect.selectedIndex].value;
//}

//function SubmitDeletedGroup(p_strGroup, p_strUrl)
//{
// var l_oSelect;

// l_oSelect = document.getElementById('sg_' + p_strGroup);
// l_oSelect.selectedIndex = 0;
// SubmitChangedGroup(l_oSelect);
//}

function SubmitChanges(p_oForm)
{
 var l_astrValue;
 var l_oGroups = p_oForm.getElementsByTagName('select');
 for(var l_intGroupIndex = 0; l_intGroupIndex < l_oGroups.length; l_intGroupIndex++)
  for(var l_intPropertyIndex = 0; l_intPropertyIndex < l_oGroups[l_intGroupIndex].options.length; l_intPropertyIndex++)
  {
   l_astrValue = l_oGroups[l_intGroupIndex].options[l_intPropertyIndex].value.split('|');
   l_oGroups[l_intGroupIndex].options[l_intPropertyIndex].value = l_astrValue[0];
   if(l_oGroups[l_intGroupIndex].selectedIndex == l_intPropertyIndex && l_astrValue.length == 2)
    p_oForm.action = l_astrValue[1];
  }
 p_oForm.submit();
}