function reflexhover(a)
{
 if ( document.getElementById ) {
   var d = document.getElementById("rxhov");
   if ( d )
   {
     isIE6 = navigator.userAgent.toLowerCase().indexOf('msie 6') != -1;
     if ( isIE6 ) {
       d.style.marginLeft = rfx_x[a]+'px';
       d.style.marginTop  = rfx_y[a]+3+'px';
     }else{
       d.style.marginLeft = rfx_x[a]+'px';
       d.style.marginTop  = rfx_y[a]+'px';
    }
     d.style.width           = rfx_w[a]+'px';
     d.style.backgroundColor = rfx_c[a];
   }
 }
}
function reflexout()
{
 if ( document.getElementById ) {
   var d = document.getElementById("rxhov");
   if ( d )
   {
     d.style.marginLeft = 0+'px';
     d.style.width      = 0+'px';
   }
 }
}

function excAjaxRequest(theURL, sendString, callbackFunction)
{
  var thisRequestObject;

  thisRequestObject = initiateRequest();

  thisRequestObject.onreadystatechange = processRequest;

  function initiateRequest()
  {
    if ( window.XMLHttpRequest )
    {
      return new XMLHttpRequest();
    }
    else if (window.ActiveXObject)
    {
      return new ActiveXObject("Microsoft.XMLHTTP");
    }

    return null;
  }

  function processRequest()
  {
    if (thisRequestObject.readyState == 4)
    {
      if (thisRequestObject.status == 200)
      {
        if (callbackFunction)
          callbackFunction(thisRequestObject, sendString);
      }
      else
      {
        alert("There was an error: (" + thisRequestObject.status + ") " + thisRequestObject.statusText);
      }
    }
  }

  this.sendGetData = function()
  {
    if (theURL)
    {
      thisRequestObject.open("GET", theURL, true);
      thisRequestObject.send(sendString);
    }
  }

  this.sendPostData = function()
  {
    if (theURL)
    {
      thisRequestObject.open("POST", theURL, true);
      thisRequestObject.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
      thisRequestObject.send(sendString);
    }
  }
}

function showReceived(returnData)
{
  //alert(returnData.responseText);
  window.location.reload();
}

function excUpdateLogoutExt(returnData)
{
  //alert(returnData.responseText);
  var el = document.getElementById('idLogoutExt');
  if ( el )
  {
    el.innerHTML = returnData.responseText;
  }
}

function changeDispMode(myMode)
{
  var sendData = new excAjaxRequest('/?eID=excajx', 'Request=changeDispMode&Mode='+myMode, showReceived);
  sendData.sendPostData();
} 
function updateLogout()
{
  var sendData = new excAjaxRequest('/?eID=excajx', 'Request=updateDispMode', excUpdateLogoutExt);
  sendData.sendPostData();
} 

