$(function() {
	var params = window.location.href.replace(/^.*?\?/g, '').replace(/\&amp\;/g, '&').split(/\&/);
	$.each(params, function (index, value) {
	    if (value.indexOf("=") != -1) {
	        var param = value.split(/\=/);
	        $("span:contains('" + unescape(param[0]) + "')").parent().siblings("textarea, input, select").val(unescape(decodeURI(param[1])));
	    }    
	});
});
