function frm_nfield(elem,evt) {
  evt = (evt)?evt: ((window.event)?event:0);
  var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0));

  if((charCode > 31 && (charCode < 48 || charCode > 57) && charCode != 46) || (elem.value.indexOf(".") != -1 && charCode == 46)) {
    alert("The only valid input are the numbers '0-9' and a decimal point. Please use the mouse to move within the input field.  The backspace and delete keys work as well.");
    return false;
  }
  return true;
}

function frm_nofield(elem,evt) {
  evt = (evt)?evt: ((window.event)?event:0);
  var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0));

  if(charCode > 31 && (charCode < 48 || charCode > 57)) {
    alert("The only valid input are the numbers '0-9' Please use the mouse to move within the input field.  The backspace key works as well.");
    return false;
  }
  return true;
}

function frm_aofield(elem,evt) {
  evt = (evt)?evt: ((window.event)?event:0);
  var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0));

  if(charCode > 31 && (charCode < 65 || charCode > 90) && (charCode < 97 || charCode > 122)) {
    alert("The only valid input are the letters 'A/a - Z/z'. Please use the mouse to move within the input field.  The backspace key works as well.");
    return false;
  }
  return true;
}

function frm_apfield(elem,evt) {
  evt = (evt)?evt: ((window.event)?event:0);
  var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0));

  if(charCode > 32 && (charCode < 65 || charCode > 90) && (charCode < 97 || charCode > 122) && charCode != 46 && charCode != 44 && charCode != 45 && charCode != 37 && charCode != 38) {
    alert("The only valid input are the letters 'A/a - Z/z', limited punctuation '&.,- and whitespace. Please use the mouse to move within the input field.  The backspace and delete keys work as well.");
    return false;
  }
  return true;
}

function frm_anfield(elem,evt) {
  evt = (evt)?evt: ((window.event)?event:0);
  var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0));

  if(charCode > 32 && (charCode < 48 || charCode > 57) && (charCode < 65 || charCode > 90) && (charCode < 97 || charCode > 122))  {
    alert("The only valid input are the letters 'A/a - Z/z' and the numbers '0-9'. Please use the mouse to move within the input field.  The backspace and delete keys work as well.");
    return false;
  }
  return true;
}

function frm_cnfield(elem,evt) {
  evt = (evt)?evt: ((window.event)?event:0);
  var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0));

  if(charCode > 31 && (charCode < 47 || charCode > 57) && (charCode < 65 || charCode > 90)) {
    alert("The only valid input are the capital letters 'A-Z', a '/' and the numbers '0-9'. Please use the mouse to move within the input field.  The backspace key works as well.");
    return false;
  }
  return true;
}

function frm_anpfield(elem,evt) {
  evt = (evt)?evt: ((window.event)?event:0);
  var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0));

  if(charCode > 32 && (charCode < 48 || charCode > 57) && (charCode < 65 || charCode > 90) && (charCode < 97 || charCode > 122) && charCode != 44 && charCode != 45 && charCode != 46 && charCode != 37 && charCode != 38) {
    alert("The only valid input are the letters 'A/a - Z/z', the numbers '0-9', limited punctuation '&.,- and whitespace. Please use the mouse to move within the input field.  The backspace and delete keys work as well.");
    return false;
  }
  return true;
}