<!--
/**************************************************************************
	File:			ailog_od_na.js
	Description:	Log Report System 
					for Online Diagnosis / Auto Driver Update

					Online Diagnosis for No Use Activex

	Copyright:		Copyright (C) 2004 A.I.Soft, Inc.
	Author:			M.Tatsukawa
	Date:			2004/5/6
	ModDate:		2004/11/22
**************************************************************************/

//Add 2004/11/02 K.Yuda

function setCookie(theName, theValue)
{
	if((theName != null) && (theValue != null))
	{
		document.cookie = theName + "=" + escape(theValue);
		return true;
	}
	return false;
}

function deleteCookie(theName)
{
	document.cookie = theName +  "=;expires=Thu, " + "01-Jan-70 00:00:01 GMT";
	return true;
}

function getCookie(theName)
{
	theName += "=";
	theCookie = document.cookie + ";";
	start = theCookie.indexOf(theName);
	if(start != -1)
	{
		end = theCookie.indexOf(";", start);
		return unescape(theCookie.substring(start + theName.length, end));
	}
	return false;
}

 
///////////////////////////////////////////////////////////////////////////
//	DEFINE
logUrl = "<img width=21 height=1 border=0 src=\"http://150.48.225.203/eselfaccs/aiaccs.asp?";
kind ="od";

delimita = 0;

///////////////////////////////////////////////////////////////////////////
//  COOKIE
//  Add 2004/11/02 K.Yuda

if( getCookie("eself_first_access") != "1" ){
	setCookie("eself_first_access", "1");
	if(delimita) {
		logUrl = logUrl + "&"
	}
	logUrl = logUrl + "first_access=true";
	delimita = 1
}


///////////////////////////////////////////////////////////////////////////
//	URL
if(document.URL) {
	if(delimita) {
		logUrl = logUrl + "&";
	}
	logUrl = logUrl + "url=" + escape(document.URL) ;
	delimita = 1;
}

///////////////////////////////////////////////////////////////////////////
//	DOMAIN
if(document.domain) {
	if(delimita) {
		logUrl = logUrl + "&";
	}
	logUrl = logUrl + "domain=" + escape(document.domain) ;
	delimita = 1;
}

///////////////////////////////////////////////////////////////////////////
//	LANGUAGE
if(document.all) {
	if(delimita) {				 //IE,Opera
		logUrl = logUrl + "&";
	}
	logUrl = logUrl + "lang=" +  navigator.browserLanguage;
	delimita = 1;         
} else if (document.layers) {
	if(delimita) {				 //N4
		logUrl = logUrl + "&";
	}
	logUrl = logUrl + "lang=" + navigator.language;
	delimita = 1;             
} else if(document.getElementById) {
	if(delimita) {				 //N6,Moz
		logUrl = logUrl + "&amp;";
	}
    logUrl = logUrl + "lang=" + navigator.language.substr(0,2);
    delimita = 1; 
}

///////////////////////////////////////////////////////////////////////////
//	KIND
if(delimita) {
	logUrl = logUrl + "&";
}
logUrl = logUrl + "kind=" + kind;
delimita = 1;

///////////////////////////////////////////////////////////////////////////
//	TAG END
logUrl = logUrl + "\">";

///////////////////////////////////////////////////////////////////////////
//	TAG WRITE
document.write(logUrl);

//alert(logUrl)

//-->
