form optimizations
updated Redirect() and Relocate(). Calls Relocate() if XmlHttpRequest.