access();
function access(){
	file = "acc/acclog.cgi";
	var data;
	data += "referrer="+document.referrer;
	data += "&width="+screen.width;
	data += "&height="+screen.height;
	data += "&color="+screen.colorDepth;
	ajax(file,data,"GET");
}
function ajax(url,data,method) {
	if (window.XMLHttpRequest) { 
		xmlhttp = new XMLHttpRequest();
		if (xmlhttp.overrideMimeType) {
			xmlhttp.overrideMimeType("text/xml");
		}
	} else if (window.ActiveXObject) { 
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {1;}
		}
	}
	if (xmlhttp) {
		xmlhttp.onreadystatechange = function() {
			if (xmlhttp.readyState == 4) {
				if (xmlhttp.status == 200) {
					1;
				} else {
					1;
				}
			}
		}
		//data = encodeURI(data);
		if(method == "POST"){
			xmlhttp.open("POST", url, true);
			xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
			xmlhttp.send(data);
			xmlhttp.send(null);
		}else{
			xmlhttp.open("GET", url+"?"+data, true);
			xmlhttp.send(null);
		}
	}
}