// For 2-way server/client comm
chan=new XMLHttpRequest();

hilite="#bfbfff";
normal="#eeccff";

function rhilite(nm) {
  lhs=document.getElementById(nm+'_rnm');
  rhs=document.getElementById(nm+'_rds');
  lhs.style.backgroundColor=hilite;
  rhs.style.backgroundColor=hilite;
}

function rnormal(nm) {
  lhs=document.getElementById(nm+'_rnm');
  rhs=document.getElementById(nm+'_rds');
  lhs.style.backgroundColor=normal;
  rhs.style.backgroundColor=normal;
}

function chilite(nm) {
  lhs=document.getElementById(nm+'_cnm');
  rhs=document.getElementById(nm+'_cds');
  lhs.style.backgroundColor=hilite;
  rhs.style.backgroundColor=hilite;
}

function cnormal(nm) {
  lhs=document.getElementById(nm+'_cnm');
  rhs=document.getElementById(nm+'_cds');
  lhs.style.backgroundColor=normal;
  rhs.style.backgroundColor=normal;
}

function loghilite(which) {
  if (which==1) ob=document.getElementById('login_user');
  if (which==2) ob=document.getElementById('login_pass');
  if (which==3) ob=document.getElementById('login_do');
  ob.style.backgroundColor=hilite;
}

function lognormal(which) {
  if (which==1) ob=document.getElementById('login_user');
  if (which==2) ob=document.getElementById('login_pass');
  if (which==3) ob=document.getElementById('login_do');
  if (which==4) ob=document.getElementById('logout');
  ob.style.backgroundColor=normal;
}
