// JavaScript Document

//<![CDATA[
	function onLoad(sites) {
  	var xmlhttp = false;

//引数のチェック
//引数無しならlocation.pathname、引数ありなら引数の内容を変数urlにセット。
//
	if(arguments.length == 0){
		url = "urls=" + location.pathname;
	}else{
		url = "urls=" + sites;
	}

  if(typeof ActiveXObject != "undefined"){
  	try {
    	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (e) {
    	xmlhttp = false;
    }
	}
  
	if(!xmlhttp && typeof XMLHttpRequest != "undefined") {
  	xmlhttp = new XMLHttpRequest();
  }

  xmlhttp.open("POST", "/access.php");
  xmlhttp.setRequestHeader("Content-Type" , "application/x-www-form-urlencoded");
	xmlhttp.send(url);
}

//]]>
