function checkValidPhone
(theElement, theElementName) {
              var phone = theElement.value;
              if (phone.length > 0){
                var xmlhttp;
                if (window.XMLHttpRequest)  //Non IE Browser
                  xmlhttp = new XMLHttpRequest();
                else  //IE Browser
                  xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                var url = "fmhutil.pkg_validate.p_validate_phone?iPhone="+phone;
                xmlhttp.open("POST", url, false);
                xmlhttp.send(null);
                var app = xmlhttp.responseText.split("\n");               
                
                if (app[0]=="A"){
                  alert("Please enter an area code with the phone number.");
                  setTimeout(function(){document.getElementById(theElement.id).focus()}, 2);
                  document.getElementById(theElement.id).select();
                  return false;
                }
                if (app[0]=="L"){
                  alert("Please enter 10 digits for your phone number.");
                  setTimeout(function(){document.getElementById(theElement.id).focus()}, 2);
                  document.getElementById(theElement.id).select();
                  return false;
                }
                if (app[0]=="N"){
                  alert("You have enter a character in your phone number.");
                  setTimeout(function(){document.getElementById(theElement.id).focus()}, 2);
                  document.getElementById(theElement.id).select();
                  return false;
                }
                if (app[0]=="F"){
                  alert("Please re-enter your phone number. This is not a valid phone number.");
                  setTimeout(function(){document.getElementById(theElement.id).focus()}, 2);
                  document.getElementById(theElement.id).select();
                  return false;
                }
              }
              theElement.value = app[0];
              return true;
            }
