var str = location.hash,
hash = str.substr(1);
console.log(str);
console.log(hash);
document.getElementById(hash).checked = true;
var str = location.hash,
hash = str.substr(1);
alert(hash);
document.getElementById(hash).checked = true;