javascript prototype code for hiding checkbox instead of using an html field. MJ-107
Update javascript to control primary field flag