Added handling for portals that have no form, but instead redirect to
page in div onclick handler. Supposedly they make us eof switch_url arg
in url.
Fixed handling of onLoad to handle mixed case url token.
Added function to extract arg from url query.