function numbersonly()
{
/************************************************
DESCRIPTION: Restricts the user to entering 
  numbers only.

PARAMETERS:
   N/A

RETURNS:
   N/A

REMARKS: 
   N/A
*************************************************/
  if (document.layers)
    Key = e.which;
  else
    Key = window.event.keyCode;

  if (Key < 48 || Key > 57)
    return false;
}

function fillphone(phone)
{
/************************************************
DESCRIPTION: This automatically formats the phone
  number field as the user types it in.

PARAMETERS:
   phone: This is the phone number field.

RETURNS:
   N/A

REMARKS: 
   N/A
*************************************************/
  if (document.layers)
    Key = e.which;
  else
    Key = window.event.keyCode;

  if (Key == "8")
    return;

  if (phone.value.length == 1)
  {
  textvalue = phone.value;
  phone.value = "(" + textvalue;
  return;
  }

  if (phone.value.length == 4)
  {
  textvalue = phone.value;
  phone.value = textvalue + ") ";
  return;
  }

  if (phone.value.length == 9)
  {
  textvalue = phone.value;
  phone.value = textvalue + "-";
  return;
  }
  
  if (phone.value.length > 14)
  {
  return false;
  }
}

function fillzip(zip)
{
/************************************************
DESCRIPTION: This automatically formats the zip
  code field as the user types it in.

PARAMETERS:
   zip: This is the zip code field.

RETURNS:
   N/A

REMARKS: 
   N/A
*************************************************/
  if (document.layers)
    Key = e.which;
  else
    Key = window.event.keyCode;

  if (Key == "8")
    return;

  if (zip.value.length == 5)
  {
  textvalue = zip.value;
  return;
  }

  if (zip.value.length > 10)
  {
  return false;
  }
}