
//
//	Function to sign out the user and return to the current location
//    It uses the /NewsletterSignOut which currently (4/4/06) accepts
//    a return to address to redirect the user back to their original page
function SignOut()
{
  var location = document.location.href;
  var idx = location.lastIndexOf('/');
  var newLocation = "/NewsletterSignOut?returnTo=" + escape(location.substring(idx+1));
  document.location = newLocation;
  return false;
}


function SetSendPasswordAndSubmit(formName)
{
  var form = document.getElementById(formName);
  var elt = document.getElementById(formName + "_sendpass");
  if ((form != null) && (elt != null))
  {
    elt.value = 'true';
    form.submit();
  }

  return false;
}


