function category_edit(a){document.forms.myform.id.value=getTableCell(a,0);document.forms.myform.category.value=getTableCell(a,1);document.forms.myform.sortorder.value=getTableCell(a,2);document.forms.myform.color.value=getTableCell(a,3);document.forms.myform.color.style.backgroundColor="#"+getTableCell(a,3)}function category_del(b){var c,a=getTableCell(b,1);if(a==""){c=mydbr_loc.MYDBR_CAT_UNNAMED}else{c="'"+getTableCell(b,1)+"'"}if(confirm(sprintf(mydbr_loc.MYDBR_CAT_REM,c))){document.forms.myform.action.value="del";document.forms.myform.id.value=getTableCell(b,0);document.forms.myform.submit()}};