/*
============================================================
	Page Top
============================================================
*/
function WinDisIE (){
	var Ypix = document.body.scrollTop || document.documentElement.scrollTop;

	return Ypix;
}

function WinDisNN (){
	Ypix = window.pageYOffset;
	return Ypix;
}

function pagetop () {
	if (navigator.appName.charAt (0) == "N") {
		Ypix = WinDisNN ();
	} else {
		Ypix = WinDisIE ();
	}

	var disY = (Ypix - (Ypix / 10));
	disY = Math.floor (disY);
	if (disY > 0) {
		window.scrollTo (0, disY);
		setTimeout ("pagetop ()", 10);
		clearTimeout ();
	} else {
		clearTimeout ();
	}
}

function freconCheck() {
	var inlineFlg;
	var blockFlg;
	var bgColor;

	if (document.getElementById("frecon").checked == true) {
		inlineFlg = "none";
		blockFlg = "none";
		bgColor = "#FFFFFF";
	} else {
		inlineFlg = "inline";
		blockFlg = "block";
		bgColor = "#FFFFFF";
		if (document.getElementById("notice_product") || document.getElementById("notice_shape")) {
			bgColor = "#FFFFCC";
		}
	}

	if (document.getElementById("form_product")) {
		document.getElementById("form_product").style.display = inlineFlg;
	}
	if (document.getElementById("form_shape")) {
		document.getElementById("form_shape").style.display = inlineFlg;
	}

	if (document.getElementById("notice_product")) {
		document.getElementById("notice_product").style.display = blockFlg;
	}
	if (document.getElementById("notice_shape")) {
		document.getElementById("notice_shape").style.display = blockFlg;
	}

	if (document.getElementById("product")) {
		document.getElementById("product").style.background = bgColor;
	}
	if (document.getElementById("product")) {
		document.getElementById("shape").style.background = bgColor;
	}
	//document.getElementById("amount").style.background = bgColor;
}
