function isPositiveInteger(value)
  {
  return isInteger(value, null, null);
  }


function isPositiveInteger(value, minCharacters, maxCharacters)
  {
  index = value.length;
  if ((minCharacters != null) && (index < minCharacters))
    return false;
  if ((maxCharacters != null) && (index > maxCharacters))
    return false;
  for (index--; index >= 0; index--)
    if ((value.charAt(index) < '0') || (value.charAt(index) > '9'))
      return false;
  return true;
  }
  
  
function isPositiveFloat(value, minCharacters, maxCharacters)
  {
  index = value.length;
  if ((minCharacters != null) && (index < minCharacters))
    return false;
  if ((maxCharacters != null) && (index > maxCharacters))
    return false;
  for (index--; index >= 0; index--)
    if (((value.charAt(index) < '0') || (value.charAt(index) > '9'))
        && (value.charAt(index) != '.') && (value.charAt(index) != '-'))
      return false;
  return true;
  }
  
  
function containsCharacter(value, character)
  {
  index = value.length;
  for (index--; index >= 0; index--)
    if (value.charAt(index) == character)
      return true;
  return false;
  }


function removeNonNumbers(value)
  {
  temp = "";
  for (var index = 0; index <= value.length; index++)
    if ((value.charAt(index) >= '0') && (value.charAt(index) <= '9'))
      temp = temp + value.charAt(index);
  return temp;
  }  
  
function addDashes(value)
  {
  temp = value.substring(0, 3);
  temp = temp + "-";
  temp = temp + value.substring(3, 6);
  temp = temp + "-";
  temp = temp + value.substring(6, 10);
  return temp;
  }

function addSlashes(value)
  {
  temp = value.substring(0, 2);
  temp = temp + "/";
  temp = temp + value.substring(2, 4);
  temp = temp + "/";
  temp = temp + value.substring(4, 8);
  return temp;
  }
