<script>
function isTelephone(obj){
var isMobile= /^([0-9]|[\-]|[\)]|[\(]|[\+])+$/g;
if(!isMobile.test(obj.value)){
obj.value=‘‘;
obj.focus();
return false;
}
</script>
原文:http://www.cnblogs.com/lovezheping/p/4919976.html