function small_last_3_digits(x){try{r=new RegExp("^(.*)([0-9]{3})$");a=r(x);if(a)return a[1]+a[2].small();else return x.small();}catch(e){return x;}}