all onmousedown changed to onclick
other minor changes