Populate input from, url
by lovromar
HTML
<input type="text" id="input" />
JavaScript
var url = "http://www.example.com/state=survey&action=display&survey=39&zone=surveys¤cy=Denmark";
var country = url.substring(url.indexOf('currency=')+9, url.length);
$("#input").val(country);