are the ref of the checkboxes (J1, ..., J160) somehow related to the values you add to "Job" ??
well even if they are not, you can give "J1" as a name and "162" as a value for the 1st checkbox
now you just loop thru all the checkboxes (document.form.elements[..]), and for each checkbox, if checked, add its value to 'job'
Should be working, let me know !!