tmccormi/openemr — comment on commit f09996c11b88da509d3888edef042d8d7dc451ca
File:  line 0
By sunsetsystems:

Instead of putting several JavaScript statements into an onclick value, I suggest defining a function containing those statements and just invoking the function. Makes things easier to read and gives you more flexibility such as including comments within the code.