onclick='alert(encodeURIComponent(\""+""+"\"))' onclick='changeUrl(\""+"materials"+"\",encodeURI(encodeURI(\"" + data[i].materials +"\"))," +data[i].id+")' onclick='changeUrl(this,"+data[i].id+")'