function cmd_thread(idthr){ this.__init(); } prototype cmd_thread{ thpause:function(idthr){ this.__ctrlthread(idthr,'pause'); }, thkill:function(idthr){ this.__ctrlthread(idthr,'kill'); }, thterm:function(idthr){ this.__ctrlthread(idthr,'term'); }, threl:function(idthr){ this.__ctrlthread(idthr,'run'); }, __ctrlthread:function(idthr,flag){ arrPosts=new Array(); arrPosts['acthdler']='th_ctrl'; arrPosts['cmdth_th']=idthr; arrPosts['cmdth_flg_sig']=flag; lgObjAjxReq=sendAjaxReq(arrPosts,cbackAfterAnswer=null,cbackOnError=null,synchronousReq); if(lgObjAjxReq)return true; else return false; }, }