return s.length (s.match(/[^x00-xff]/g) || "").length;// 加上符合的全角字元長度
}
function limit(obj, limit) {
var val = obj.value;
if (len(val) > limit) {
val=val.substring(0,limit);
while (len(val) > limit){
val = val.substring(0, val.length - 1);
};
}
}
}