/* ------------------------------------------------------------------
	Access Analyze System V2
------------------------------------------------------------------ */

// Access Analyze ---------------------------------------------------
// args   : access_key [string]
// return : none
function uptanalyze(access_key)
{
	var req_uri = location.pathname;
	var user_agent = navigator.userAgent;
	var referrer = document.referrer;
	var screen_width = screen.width;
	var screen_height = screen.height;
	var screen_color_depth = screen.colorDepth;
	var title = document.title;

	// GET method params
	var param = '?ackey=' + access_key + '&acrequri=' + encodeURIComponent(req_uri)
			  + '&acua=' + encodeURIComponent(user_agent) + '&acref=' + encodeURIComponent(referrer)
			  + '&acscwh=' + screen_width + '&acscht=' + screen_height
			  + '&acscdp=' + screen_color_depth + '&acttl=' + encodeURIComponent(title);

	//alert(encodeURI(referrer));
	//alert(param);
	
	// data send URL
	var url = '/access/analyze/analyze_pc2.php';
	var url_full = url+param;
	
	document.write('<div><img src="' + url_full + '" alt="" width="1" height="1" /></div>');
	// send request
	//obj_req.open("GET", url+param, true);
	//obj_req.send();
	
	// Script Tag
	//var org_node = document.getElementById('uptaa');
	//var new_node = document.createElement('script');
	//new_node.setAttribute('type', 'text/javascript');
	//new_node.setAttribute('src', url_full);

	//new_node.src = url_full;
	//new_node.id  = 'uptaa';
	//org_node.parentNode.replaceChild(new_node, org_node);
}

