function recordFlash(page){
	var userAgent=navigator.userAgent
	var cookies=escape(document.cookie)
	var host=location.hostname
	var params="agent="+userAgent+"&page="+page+"&cookies="+cookies+"&host="+host
	sendRequest("record.php", params, "POST")
}

function sendRequest(url, params, HttpMethod){
	if(window.XMLHttpRequest){
		req=new XMLHttpRequest()
	}else if(typeof ActiveXObject != "undefined"){
		req=new ActiveXObject("Microsoft.XMLHTTP")
	}
	if(req){
		req.open(HttpMethod, url, true)
		req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
		req.send(params)
	}
}