﻿function clientEventLog(marketId, builderId, communityId, planId, specId, refer, eventName)
{
    var xmlHttpRequest = null;
    if (window.XMLHttpRequest)
    {
        xmlHttpRequest = new XMLHttpRequest();
    }
    else if (window.ActiveXObject)
    {
        xmlHttpRequest = new ActiveXObject("Microsoft.XMLHTTP");
    }

    if (xmlHttpRequest != null)
    {
        xmlHttpRequest.open("GET", "/LogEvent.aspx?mid=" + marketId + "&bid=" + builderId + "&cid=" +
            communityId + "&plnid=" + planId + "&spid=" + specId + "&ev=" + eventName + "&refer=" +
            refer, false);
        xmlHttpRequest.send(null);
    }
}
