Ticket #3785: fixing two bugs; changes need testing in IE

git-svn-id: http://dev.geogebra.org/svn/trunk/geogebra@29967 23ce0884-8a58-47d3-bc5c-ddf1cd5b9f9e
Ticket #3785: make my solution look nicer

git-svn-id: http://dev.geogebra.org/svn/trunk/geogebra@29968 23ce0884-8a58-47d3-bc5c-ddf1cd5b9f9e