Ajax: Form fields into URL query string

Javascript code to parse form fields into URL query string. To be used with Ajax sites.