function confirmAction(theAction)
{
  var confirmed = confirm('Are you sure you want to ' + theAction + '?');
  if (!confirmed)
    event.returnValue=false;
}

function buttonConfirm(theAction)
{
  return confirm('Are you sure you want to ' + theAction + '?');
}

function jump(jumpForm)
{
  location.href = jumpForm.options[jumpForm.selectedIndex].value;
}

function next()
{
  document.calendar.month.selectedIndex = ((document.calendar.month.selectedIndex + 1) % 12);
  if (document.calendar.month.selectedIndex == 0)
    document.calendar.year.selectedIndex = (document.calendar.year.selectedIndex + 1);
  document.calendar.submit();
}

function previous()
{
  document.calendar.month.selectedIndex = ((document.calendar.month.selectedIndex - 1) % 12);
  if (document.calendar.month.selectedIndex == 0)
    document.calendar.year.selectedIndex = (document.calendar.year.selectedIndex - 1);
  document.calendar.submit();
}

function loginSubmit()
{
  document.invislogin.username.value = document.vislogin.username.value;
  document.invislogin.password.value = hex_md5(document.vislogin.password.value);
  document.invislogin.submit();
}