﻿// JScript 文件

function limitChars(id, count)
{
    var obj = document.getElementById(id);
    
    if (obj.value.length > count)
    {
        obj.value = obj.value.substring(0, count);
    }
}

function String.prototype.Trim() {return   this.replace(/(^\s*)|(\s*$)/g,"");}
