// common.js
// common javascript functions 

function rockyouTracker(eventid) {
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    var url = '/rockyou-tracker.php?eventid='+eventid;
    self.xmlHttpReq.open('GET', url, true);
    self.xmlHttpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; Charset=utf-8");
    self.xmlHttpReq.send(null);
}
