function ten2eight(x){ var s=[]; var r=''; while(x>0){ (x%8); x=parseInt(x/8); } while(>0){ r=r+(); } return r; }