// JavaScript Document

ARPage = {
  accept : function()
  {
    Grouply.submitForm('arform', true, true);
  },
  
  cancel : function()
  {
    // here we want to go back to the reference page, if we have one. 
    // if the reference page is null, then go to the settings.php page.
    try { 
      var ref_url = document.getElementById('arform').ref_url.value;
      if (ref_url == "")
      {
        ref_url = "home.php";
      }
      window.location.href = ref_url;
    }
    catch(e) {
      window.location.href = "home.php";
    }
  }
  
  
}
