function checkFormat(str)
{
if (escape(str).indexOf("%u")!=-1)
alert("不能含有汉字");      
else if(str.match(/\D/)!=null)
{
  alert('不能含有字母');
}
}
posted on 2011-07-27 17:10  兰悦儿  阅读(492)  评论(0编辑  收藏  举报