function updatefield(target,style,isin)
{
  debug_log("<hr>in updatefield(target,"+isin+")<br>");
  if(isin)
  {
    debug_log("isin<br>");
    debug_log("value is fill, clearing<br>");
    modClassName(target,style,'')
  }
  else
  {
    debug_log("not isin<br>");
    if(target.value=='')
    {
      debug_log("value is empty, setting<br>");
      modClassName(target,'',style);
    }
  }
}

function initlogin()
{
  debug_log("init loginfields<br>");
  var target=document.getElementById('loginName');
  if(target && target.value!='')
  {
    debug_log("clear login background<br>");
    modClassName(target,'bgn','');
  }
  target=document.getElementById('password');
  if(target && target.value!='')
  {
    debug_log("clear password background<br>");
    modClassName(target,'bgp','');
  }
}

addOnDomLoadHandler(initlogin);


