function NewOrNot(start, term, type, path, col) {

	var	start_year = start.substring(0, start.indexOf("/"));
	var	start_month = start.substring((start.indexOf("/") + 1), start.indexOf("/", (start.indexOf("/") + 1)));
	var	start_date = start.substring((start.indexOf("/", (start.indexOf("/") + 1)) + 1), start.length);

	var	today		= new Date();
	var	today_time	= today.getTime();
	var	start_day	= new Date(eval(start_year), (eval(start_month)-1), eval(start_date));
	var	start_time	= start_day.getTime();

	var	new_graph	= path + "newmark.gif";
	var	new_width	= "25";
	var	new_height	= "9";

	var	new_graph_n	= path + "newmark.gif";
	var	new_width_n	= "25";
	var	new_height_n	= "9";

	var	update_graph	= path + "update.gif";
	var	update_width	= "45";
	var	update_height	= "14";

	var	update_graph_n	= path + "update_n.gif";
	var	update_width_n	= "45";
	var	update_height_n	= "14";

	if ((today_time - start_time) < (eval(term) * 24 * 60 * 60 * 1000)) {
		if (type == "new") {
			if (navigator.appName.indexOf("Netscape") >= 0) {
				graphic_name	= new_graph_n;
				graphic_width	= new_width_n;
				graphic_height	= new_height_n;
				graphic_alt	= "new!";
			}
			else {
				graphic_name	= new_graph;
				graphic_width	= new_width;
				graphic_height	= new_height;
				graphic_alt	= "new!";
			}
		}
		else {
			if (navigator.appName.indexOf("Netscape") >= 0) {
				graphic_name	= update_graph_n;
				graphic_width	= update_width_n;
				graphic_height	= update_height_n;
				graphic_alt	= "update!";
			}
			else {
				graphic_name	= update_graph;
				graphic_width	= update_width;
				graphic_height	= update_height;
				graphic_alt	= "update!";
			}
		}
		
		document.write("<IMG SRC=" + graphic_name + " WIDTH=" + graphic_width + " HEIGHT=" + graphic_height + " ALT=" + graphic_alt + " BORDER=0>");
	}
	else {
		if (navigator.appName.indexOf("Internet Explore") >= 0) {
			if (navigator.appVersion.indexOf("4.") >= 0) {
				document.write("<FONT COLOR=\"" + col + "\">.</FONT>");
			}
		}
	}
}

offX = 0;	//　←メニューの左からの表示位置
offY = 0;	//　←メニューの上からの表示位置
function setMenu()
{
	sx = document.body.scrollLeft;
	sy = document.body.scrollTop;
	fMENU.style.left= sx + offX;
	fMENU.style.top = sy + offY;
}

function InclTax( price , encode)
{
	price = price * 1.05
	
	wk = String(price)
	wk_len = wk.length

	var strFinal, wk, strTemp2; 
	var nLength, nMod, nLoop, nSub; 
	strFinal = ""; 
	if (wk_len > 3) 
	{ 
		nMod = wk_len % 3; 
		if (nMod > 0) 
		{ 
			strFinal = wk.substring(0, nMod); 
		} 
		for (nLoop = 0 ; nLoop < Math.floor(wk_len / 3); nLoop++) 
		{ 
			strTemp2 = wk.substring(nMod + 3 * nLoop, nMod + 3 * nLoop + 3); 
			if ((nMod == 0) && (nLoop == 0)) 
			{ 
				strFinal += strTemp2; 
			} 
			else 
			{ 
				strFinal+= ',' + strTemp2; 
			} 
		}
	} 
	else 
	{ 
		strFinal = wk; 
	}  
	if ( encode == 1 )
		document.write( "&yen;", strFinal, "(税込)");
	else
		document.write( "&yen;", strFinal, "(incl TAX)");
}

function InclTax2( price , encode)
{
	price = price * 1.05
	
	wk = String(price)
	wk_len = wk.length

	var strFinal, wk, strTemp2; 
	var nLength, nMod, nLoop, nSub; 
	strFinal = ""; 
	if (wk_len > 3) 
	{ 
		nMod = wk_len % 3; 
		if (nMod > 0) 
		{ 
			strFinal = wk.substring(0, nMod); 
		} 
		for (nLoop = 0 ; nLoop < Math.floor(wk_len / 3); nLoop++) 
		{ 
			strTemp2 = wk.substring(nMod + 3 * nLoop, nMod + 3 * nLoop + 3); 
			if ((nMod == 0) && (nLoop == 0)) 
			{ 
				strFinal += strTemp2; 
			} 
			else 
			{ 
				strFinal+= ',' + strTemp2; 
			} 
		}
	} 
	else 
	{ 
		strFinal = wk; 
	}  
	if ( encode == 1 )
		document.write( "(&yen;", strFinal,")");
	else
		document.write( "(&yen;", strFinal,")");
}

function InclTax3( price , encode)
{
	price = price * 1.05
	
	wk = String(price)
	wk_len = wk.length

	var strFinal, wk, strTemp2; 
	var nLength, nMod, nLoop, nSub; 
	strFinal = ""; 
	if (wk_len > 3) 
	{ 
		nMod = wk_len % 3; 
		if (nMod > 0) 
		{ 
			strFinal = wk.substring(0, nMod); 
		} 
		for (nLoop = 0 ; nLoop < Math.floor(wk_len / 3); nLoop++) 
		{ 
			strTemp2 = wk.substring(nMod + 3 * nLoop, nMod + 3 * nLoop + 3); 
			if ((nMod == 0) && (nLoop == 0)) 
			{ 
				strFinal += strTemp2; 
			} 
			else 
			{ 
				strFinal+= ',' + strTemp2; 
			} 
		}
	} 
	else 
	{ 
		strFinal = wk; 
	}  
	if ( encode == 1 )
		document.write( "&yen;", strFinal,"");
	else
		document.write( "&yen;", strFinal,"");
}

function FrameScroll()
{
	//IEの場合
	if (document.all)
	{
		parent.head.document.body.scrollLeft = document.body.scrollLeft;
		parent.head.document.body.scrollTop = document.body.scrollTop;
	}
	setTimeout('FrameScroll()',100);
}

function openwindow()
{
window.open("","windowname",'resizable=yes,scrollbars=yes,width=620,height=530');
}

