function check_han(txt) {

  var i = 0,cnt = 0;
  for(i=0; i<txt.length; i++) {
   if(txt.charCodeAt(i)>=0 && txt.charCodeAt(i)<=127) {
    // ascii
   } else {
    // not ascii
    cnt++;
   }
   if(cnt!=0) return false;
  }
  return true;
 }