var xmlhttp = false;
// branch for native XMLHttpRequest object
if(window.XMLHttpRequest) {
    try {
		xmlhttp = new XMLHttpRequest();
    } catch(e) {
		xmlhttp = false;
    }
// branch for IE/Windows ActiveX version
} else if(window.ActiveXObject) {
    try {
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e) {
        try {
          	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch(e) {
          	xmlhttp = false;
        }
	}
}
 

function post_access(presentation)
{
    if (xmlhttp)
    {
        xmlhttp.open('POST', '../media_reporting.aspx', true);
        xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
        xmlhttp.send('PresentationID=' + presentation);
    }
}


