function init(max,idname) { var mno = max - 0; for(no=0;no