function ccwslogin_DoLoginAction() {
  var xmlhttp = null;
  var uobj = FindObject("username");
  var pobj = FindObject("password");
  if ((uobj) && (pobj)) {
    if (Trim(uobj.value) != "") {
      xmlhttp = GetXmlHttp();
      if (xmlhttp != null) {
        xmlhttp.open("POST", "/system/login/AjaxSrv/ContentManager.aspx?Content=Login", false);
        xmlhttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
        xmlhttp.send('UserEmail=' + Trim(uobj.value) + "&UserPassword=" + Trim(pobj.value));
        if ( xmlhttp.responseText == "OK" ) {
          window.location.replace(window.location.href);
        } else {
          alert(xmlhttp.responseText);
        }
      }
    }
  }
  return(false);
}

function ccwslogin_DoLogoutAction() {
  var s = GetContentByUrl("/system/login/AjaxSrv/ContentManager.aspx?Content=Logout");
  if (s == "OK") {
    window.location.replace(window.location.href);
  } else {
    if ( s != "" ) {
      alert(s);
    }
  }
  return(false);
}


