/**
*	Some characters are not safe to use in a URL without first being encoded.
*	Because a Google search request is made by using an HTTP URL, the search request
*	must follow URL conventions, including character encoding, where necessary.
*
* 	The HTTP URL syntax defines that only alphanumeric characters, the special characters
*	$-_.+!*'(), and the reserved characters ;/?:@=& can be used as values within an HTTP
*	URL request. Since reserved characters are used by the search engine to decode the URL,
*	and some special characters are used to request search features, then all non-alphanumeric
*	characters used as a value to an input parameter must be URL encoded.
*
*	To URL-decode a string:
*
* 	Replace "+" characters with a " " character
*
* 	Replace any "%ab" with the hexadecimal ASCII value,
*
*
*	@param s The String to encode
*	@return A URL-decoded version of the String
*/

function urlDecode (s) {
	return unescape (s);
}

function doubleUrlDecode (s) {
	var temp = urlDecode (s);

	if (temp != null) {
		return urlDecode (temp);
	} else {
		return null;
	}
}
