CRM-12942  fix

the visibility of 'allow multiple records?' and 'Tab/Inline' preference was dependent on element 'Used For' (extends_0)  'onclick' event. 

Now the display of these elements depends on 'change' event of 'Used For' selection.

did a bit of clean up as well (removal of eval, etc).