JQuery.js
urlEncode.js

Code

	$("#con").html(
		$.URLEncode("This is only a test");
	);

Output

This is only a test

Code

	$("#un").html(
		$.URLDecode("This%20is%20only%20a%20test");
	);

Output

This is only a test