var $ = function (id) { return document.getElementById(id); };

function redirectToUrl(urlString)
{
  window.location.href = urlString;
  return false;
}

function changeStateAndSubmit(buttonId, state, hiddehId)
{
  var button = $(buttonId);
  var hidden = $(hiddehId);
  
  if (button != null && hidden != null)
  {
    hidden.value = state;
    button.click();
  }
  return false;
}

function submitClick(buttonId)
{
  var button = $(buttonId);
  if (button != null)
  {
    button.click();
  }
  return false;
}

if(typeof(Sys) !== "undefined")
  Sys.Application.notifyScriptLoaded();

