if (location.href.indexOf ('?r=12345') > 0) {document.getElementById ('go_anketa').href = '/anketa/?r=12345';
document.getElementById ('go_anketa2').href = '/anketa/2/?r=12345';
document.getElementById ('go_anketa3').href = '/anketa/3/?r=12345';}
function getParameterByName(name, url) {
if (!url) {
url = window.location.href;
}
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
var id= getParameterByName('r');