function indexFlash(num) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="559" height="223">');
	document.write('<param name="movie" value="main.swf" />');
	document.write('<param name="flashvars" value="rdNum=' + num+ '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<embed src="main.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="559" height="223  flashvars="rdNum=' + num + '"></embed>');
	document.write('</object>');
}

function addFigure(str) {
var num = new String(str).replace(/,/g, "");
while(num != (num = num.replace(/^(-?\d+)(\d{3})/, "$1,$2")));
return num;
}

function keisan(){

	// 体重
	var price1 = document.form1.goods1.options[document.form1.goods1.selectedIndex].value;

	// お迎えエリア
	var price2 = document.form1.municipal.options[document.form1.municipal.selectedIndex].value;

	var total = parseInt(price1) + parseInt(price2);

	// 合計を表示(3桁区切り)
	document.form1.field_total.value = addFigure(total); 
}

function openMap(a){
	document.getElementById("bycolor").style.display = "none";
	for(i=1;i<=5;i++){
		previous = 'map'+i;
		document.getElementById(previous).style.display="none";
	}
	document.getElementById(a).style.display = "block";
	document.getElementById("bycolor").style.display = "block";
}

function chTab(n){
	var box = "plan"+n;
	var tab = "tab"+n;
	var tabimg = "tab_c"+n+"_cu.gif";
	for(i=1;i<=3;i++){
		previous = 'plan'+i;
		previous2 = 'tab'+i;		
		document.getElementById(previous).style.display="none";
		document.getElementById(previous2).src = "images/tab_c"+i+".gif";
	}
	document.getElementById(box).style.display = "block";
	document.getElementById(tab).src = "images/"+tabimg;
}

function PrintPage(){
	if(document.getElementById || document.layers){
		window.print();		//印刷をします
	}
}