<script language="javascript">
//返回字符串中的中文字符
String.prototype.Chinese = function() {
 var strtemp;
 var ptnChinese = /[^\u4E00-\u9FA5]/gi;
 strtemp = this.replace(ptnChinese,"");
 return strtemp;
}
function testCn()
{  
  if(document.all.t1.value.Chinese=="")
  alert("no cn");
}
</script>
<input type="text" name="t1">
<input type="button" value="test cn" onclick="testCn()">