// Go to excursion list
function exctListOpen(_menuID, _srcPPack) {
  document.location.href = '../../Pages/pgsExcsTorick/pgExctList.aspx' +
    '?menuID=' + _menuID + '&srcPPack=' + _srcPPack;
}
// View excursion list by selected mode
function exctRuleView(_viewType, _menuID, _srcPPack) {
  document.location.href = '../../Pages/pgsExcsTorick/pgExctList.aspx' +
    '?viewType=' + _viewType + '&menuID=' + _menuID + '&srcPPack=' + _srcPPack;
}
// Go to excursion item by raise ID
function exctItemOpen(_excrID, _menuID, _srcPPack) {
  document.location.href = '../../Pages/pgsExcsTorick/pgExctOrder.aspx' +
    '?excrID=' + _excrID + '&menuID=' + _menuID + '&srcPPack=' + _srcPPack;
}
// Change excursion raise by data
function setRaiseData(_elm, _menuID, _srcPPack) {
  var excrID = _elm.options(_elm.selectedIndex).value;
  document.location.href = 'pgExctOrder.aspx' +
      '?excrID=' + excrID + '&menuID=' + _menuID + '&srcPPack=' + _srcPPack;
}
// Select bus station place
function busStation(_elm, _count) {
  var busID = _elm.options(_elm.selectedIndex).value;
	for (i=1; i<(_count+1); i++) {
		var iSet = document.getElementById('station_' + i);
		if (iSet != null) { 
		  iSet.style.display = ((i == busID) ? 'block' : 'none'); 
		}
	}
}
// Refuse rules alert
function exctRuleRefuse(_menuID, _srcPPack, _msg) {
  if (confirm(_msg)) { exctListOpen(_menuID, _srcPPack); } 
  else {
    var ruleAgree = document.getElementById('ordRuleAgree_0');
    if (ruleAgree!=null) { ruleAgree.checked = true; }
  }
}


