﻿var actionLogPage = "logAction.aspx";

function la_createXMLHttpRequest() {
    try { return new XMLHttpRequest(); } catch(e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
    //alert("XMLHttpRequest not supported");
    return null;
}

function logAction(strAction, strSource) {
    //alert("Action: " + strAction + " Source: " + strSource);
    xhReq = la_createXMLHttpRequest();
    if (xhReq) {
        try {
            xhReq.open("GET", actionLogPage + "?action=" + strAction + "&source=" + strSource, true);
            xhReq.send(null);
        } catch (e) { }
    }
}



