﻿// JScript File

var req;
function reporting(p) {
    req = false;
	//native request
	if (window.XMLHttpRequest) {
		try {
			req = new XMLHttpRequest();
		} catch(e) {
			req = false;
		}
	//ie branchy
	} else if (window.ActiveXObject) {
		try {
			req = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			try {
				req = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e) {
				req = false;
			}
		}
	}
	if (req) {
		//req.onreadystatechange = processChange;
		var url = "reporting.aspx?path=" + p;
		req.open("GET", url, true);
		req.send("");
	}
}