ValangValidator.Rule.prototype.GetBytesFunction = function(value) {
	if(value == null){
		return 0;
	}
	if (typeof value == 'string') {
		var len = value.replace(/[^\x00-\xff]/g, "***").length;
		return len;
	} else {
		throw new "the type of value:"+value+" is not string.";
	}
};
