function cookie_write(a,b,c){
	theName = a + b;
	theValue = c;
	theDay = 7;
	setDay = new Date();
	setDay.setTime(setDay.getTime()+(theDay*1000*60*60*24));
	expDay = setDay.toGMTString();
	document.cookie = theName + "="+escape(theValue)+";expires="+expDay;
}

function cookie_read(a,b){
	theData   = "";
	theName   = a + b + "=";
	theCookie = document.cookie+";";
	start = theCookie.indexOf(theName);
	if (start != -1)
	{
		end = theCookie.indexOf(";",start);
		theData = unescape(theCookie.substring(start+theName.length,end));
	}
	return theData;
}

function cookie_erase(a,b){
	theName = a + b;
	document.cookie = theName + "=;expires=Thu,01-Jan-70 00:00:01 GMT";
}

function ConvComma(yen){
	str = ""+yen;
	cnt = 0;
	n   = "";
	for (i=str.length-1; i>=0; i--)
	{
		n = str.charAt(i) + n;
		cnt++;
		if (((cnt % 3) == 0) && (i != 0)) n = ","+n;
	}
	return n;
}
