FUNCTION: URL.resolve
The URL.resolve function appends a relative URL to the base URL to create and return an absolute URL. This is referred to as resolving the URLs.
http://www.devguru.com/Technologies/wmlscript/quickref/wmls_url_resolve.html