function isNum(num) {
	var reg=/^\d{1,4}$/;
    if(num.match(reg)){
		return true;
    } else {
		return false;
	}
}