Мифункция с PARAM на AddEventListner

var someVar = 32;//Sample value 
var someEle = document.getElementById("someID");//Sample Element
someEle.addEventListener("click", function(){
   myFunction(someVar);// <- There use your function with param in brackets
}, false);
Helpless Hedgehog