I have this code for checking my checkbox with url parameters.
var i = document.location.href.lastIndexOf(\'?\'); var types = document.location.href.substr(i+1).r