function autoTab(oInput)
{
	iNextIndex = getIndex(oInput)+1;
	
  oDestination = oInput.form.elements[iNextIndex];
  
  iMaxLength = oInput.getAttribute('maxlength');
  if (oInput.getAttribute && oInput.value.length == iMaxLength)
    oDestination.focus()
}

function getIndex(oInput)
{
  var iIndex = -1, i = 0, bFound = false;
  while (i < oInput.form.length && iIndex == -1)
  {
    if (oInput.form[i] == oInput)
      iIndex = i;
    else 
      i++;
  }
  return iIndex;
}

// Dummy when undefined RF, 05-11-2007
if (typeof(tellMeIfInvalidDate) == 'undefined')
{
	function tellMeIfInvalidDate()
	{
		
	}
}