/**
 * js/accessAnalyze.js
 * Revision 1.0
 * Date 2006/03/10
 */

/**
 * accessAnalyze
 * アクセスログ出力
 * @author Dome
 * @since version 1.0.0
 */
function accessAnalyze() {

	var targetURL;
	var getParam;
	
	targetURL = "http://www.55mama.com/access/01/acclog.cgi";

	getParam = "referrer=" + document.referrer;
	getParam = getParam + "&width=" + screen.width;
	getParam = getParam + "&height=" + screen.height;
	getParam = getParam + "&color=" + screen.colorDepth;

	document.write("<img src='" + targetURL + "?" + getParam + "'>");

}

/**
 * getUrlTitle
 * URL・ページタイトル管理
 * @author Dome
 * @since version 1.0.0
 */
function getUrlTitle() {

	var targetURL;
	var getParam;
	
	targetURL = "http://www.55mama.com/access/01/acc_title.php";

	getParam = "url=" + document.URL;
	getParam = getParam + "&title=" + document.title;

	document.write("<img src='" + targetURL + "?" + getParam + "'>");

}

function setLog() {

	var dN;
	
	dN 		= new Date;
	Mins 	= dN.getMinutes();
	Secs 	= dN.getSeconds();
	URL		= document.referrer;
	
	if (URL == "") {
		URL = "Unknown";
	}
	document.write("<IMG SRC=");
	document.write("http://www.55mama.com/access/03/anlog/logset.cgi?");
	document.write("%83g%83b%83v");
	document.write(","+ document.location.href + "," + URL + ",");
	document.write(Mins + Secs);
	document.write(">");

}
