function getURLParameter(name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null
}
$(document).ready(function(){
var tovarIndex = getURLParameter('tovar');
if (tovarIndex) {
$("#tovary").find("tr").eq(tovarIndex).addClass("select_tovar");
}
});