function bindEvent(el, eventName, eventHandler, boolr) {
      if (el.addEventListener){
        el.addEventListener(eventName, eventHandler, boolr); 
      } else if (el.attachEvent){
        el.attachEvent('on'+eventName, eventHandler);
      }
    }
// Merging the attachEvent func of IE to the standard one
Merging the attachEvent func of IE to the standard one
Merging the attachEvent func of IE to the standard one
function bindEvent(el, eventName, eventHandler, boolr) {
      if (el.addEventListener){
        el.addEventListener(eventName, eventHandler, boolr); 
      } else if (el.attachEvent){
        el.attachEvent('on'+eventName, eventHandler);
      }
    }
function bindEvent ( el , eventName , eventHandler , boolr ) { if ( el . addEventListener ) { el . addEventListener ( eventName , eventHandler , boolr ) ; } else if ( el . attachEvent ) { el . attachEvent ( 'on' + eventName , eventHandler ) ; } }
Merging the attachEvent func of IE to the standard one
Merging the attachEvent func of IE to the standard one