function checkLength(obj, length)
{
  if(obj.value.length<length)
    return(true)
  return(false);
}
function marker(theRow, newColor)
{
  if(typeof(theRow.style) == 'undefined')
    return false;

  if(typeof(document.getElementsByTagName) != 'undefined')
  {
    theCells = theRow.getElementsByTagName('td');
  }
  else
  {
    if(typeof(theRow.cells) != 'undefined')
      theCells = theRow.cells;
    else
      return false;
  }
  var rowCellsCnt = theCells.length;

  if(typeof(window.opera) == 'undefined' && typeof(theCells[0].getAttribute) != 'undefined')
    domDetect = true;
  else
    domDetect = false;

  if(newColor)
  {
    var c = null;
    // with DOM compatible browsers except Opera
    if (domDetect) 
    {
      for (c = 0; c < rowCellsCnt; c++)
      {
        theCells[c].setAttribute('bgcolor', newColor, 0);
      } // end for
    }
    // with other browsers
    else 
    {
      for (c = 0; c < rowCellsCnt; c++) 
      {
        theCells[c].style.backgroundColor = newColor;
      }
    }
  }
  return true;
}
function CzyEnter(eventObj, obj)
{
  if (document.all)
    keyCode=eventObj.keyCode;
  else
    keyCode=eventObj.which;
  if(keyCode==13)
    m_logowanie();
  return(true);
}
function migajacytxt(id, kolor, czas, kolor2, czas2)
{
  if(document.layers)
  { 
//    alert('Moz');
    obj=document.getElementById(id); 
    obj.style.color=kolor; 
  } 
  else
    if(document.all)
    { 
//      alert('IE');
      document.getElementById(id).style.color=kolor; 
    }
    else
      if (document.getElementById)
      { 
        document.getElementById(id).style.color=kolor; 
      } 
	setTimeout('migajacytxt("' + id + '","' + kolor2 + '",' + czas2 + ',"' + kolor + '",' + czas + ')', czas);
}

