function WriteCR() {
document.write('  <form action="http://www.shopgear.ne.jp/cgi-bin/order_item_step1.cgi" method="post">')
document.write('	<input type="hidden" name="_shop_id" value="degimoba">')
document.write('	<input type="hidden" name="ORDSTEP" value="step1">')
document.write('	<TABLE cellSpacing=0 cellPadding=0 border=0>')
document.write('	  <TBODY> ')
document.write('	  <TR> ')
document.write('		<TD vAlign=top noWrap align=middle> ')
document.write('		  <A href="http://www.digimoba.com/hajimete.htm"><IMG height=21 src="http://www.digimoba.com/img/head/biginer.gif" width=93 border=0></A> ')
document.write('		  <A href="http://www.digimoba.com/shiharai.htm"><IMG height=21 src="http://www.digimoba.com/img/head/siharai.gif" width=93 border=0></A> ')
document.write('		  <A href="http://www.digimoba.com/souryou.htm"><IMG height=21 src="http://www.digimoba.com/img/head/souryou.gif" width=46 border=0></A> ')
document.write('		  <A href="mailto:info@digimoba.com"><IMG height=21 src="http://www.digimoba.com/img/head/img1017553286.gif" width=93 border=0></A> ')
document.write('		  <input src="http://www.digimoba.com/img/head/img1017509040.gif" type="image" width="89" height="21" border="0" alt="kaimonokago">')
document.write('		  <A href="http://www.digimoba.com/"><IMG height=21 src="http://www.digimoba.com/img/head/img1017509041.gif" width=38 border=0></A> ')
document.write('		</TD>')
document.write('	  </TR>')
document.write('	  </TBODY> ')
document.write('	</TABLE>')
document.write('  </form>')

} 

function WriteHead(mode) {

	var reff,img_seikatsu,img_omosiro,img_plant,img_iyasi;

	reff=document.referrer;
//	alert(reff);
//document.write(reff);
	if(reff.indexOf('seikatu.html')!= -1){
		mode=1;
	}else if(reff.indexOf('omoshiro.html')!= -1){
		mode=2;
	}else if(reff.indexOf('plant.html')!= -1){
		mode=3;
	}else if(reff.indexOf('iyashi.html')!= -1){
		mode=4;
	}else{
		if(mode == "seikatsu"){
			mode=1;
		}else if(mode == "omosiro"){
			mode=2;
		}else if(mode == "plant"){
			mode=3;
		}else if(mode == "iyasi"){
			mode=4;
		}
	}
//alert(mode);

	switch (mode) {
		case 1:
			img_seikatsu = "m_seikatsu.gif";
			img_omosiro  = "b_omosiro.gif";
			img_plant    = "b_plant.gif";
			img_iyasi    = "b_iyasi.gif";
			break;
		case 2:
			img_seikatsu = "b_seikatsu.gif";
			img_omosiro  = "m_omosiro.gif";
			img_plant    = "b_plant.gif";
			img_iyasi    = "b_iyasi.gif";
			break;
		case 3:
			img_seikatsu = "b_seikatsu.gif";
			img_omosiro  = "b_omosiro.gif";
			img_plant    = "m_plant.gif";
			img_iyasi    = "b_iyasi.gif";
			break;
		case 4:
			img_seikatsu = "b_seikatsu.gif";
			img_omosiro  = "b_omosiro.gif";
			img_plant    = "b_plant.gif";
			img_iyasi    = "m_iyasi.gif";
			break;
		default:
			img_seikatsu = "b_seikatsu.gif";
			img_omosiro  = "b_omosiro.gif";
			img_plant    = "b_plant.gif";
			img_iyasi    = "b_iyasi.gif";
			break;

	}

with (document) {

write('  <form action="http://www.shopgear.ne.jp/cgi-bin/order_item_step1.cgi" method="post">')
write('	<input type="hidden" name="_shop_id" value="degimoba">')
write('	<input type="hidden" name="ORDSTEP" value="step1">')
write('	<table cellspacing=0 cellpadding=0 width="750" border=0>')
write('	  <tbody> ')
write('	  <tr> ')
write('		<td> ')
write('		  <table cellspacing=0 cellpadding=0 width="100%" border=0>')
write('			<tbody> ')
write('			<tr> ')
write('			  <td valign=bottom width=185>&nbsp;</td>')
write('			  <td align=left width="100%" valign="bottom"> ')
write('				<table cellspacing=0 cellpadding=0 border=0>')
write('				  <tbody> ')
write('				  <tr> ')
write('					<td><a href="http://www.digimoba.com/seikatu.html"><img height=26 alt=生活アイディア雑貨 src="http://www.digimoba.com/img/head/' + img_seikatsu + '" width=110 border=0></a></td>')
write('					<td><img height=1 src="head_img/dot.gif" width=2></td>')
write('					<td><a href="http://www.digimoba.com/omoshiro.html"><img height=26 alt=面白バラエティ雑貨 src="http://www.digimoba.com/img/head/' + img_omosiro + '" width=110 border=0></a></td>')
write('					<td><img height=1 src="head_img/dot.gif" width=2></td>')
write('					<td><a href="http://www.digimoba.com/plant.html"><img height=26 alt=おしゃれプランツ src="http://www.digimoba.com/img/head/' + img_plant + '" width=110 border=0></a></td>')
write('					<td><img height=1 src="head_img/dot.gif" width=2></td>')
write('					<td><a href="http://www.digimoba.com/iyashi.html"><img height=26 alt=癒し系雑貨 src="http://www.digimoba.com/img/head/' + img_iyasi + '" width=110 border=0></a></td>')
write('					<td><img height=8 src="http://www.digimoba.com/img/head/dot.gif" width=10></td>')
write('					<td><span class=M></span></td>')
write('				  </tr>')
write('				  </tbody> ')
write('				</table>')
write('			  </td>')
write('			  <td align=right width=115 valign="bottom"> ')
write('				<input src="http://www.digimoba.com/img/head/kago.gif" type="image" width="110" height="26" border="0" alt="kaimonokago" align="bottom">')
write('			  </td>')
write('			  <td><img height=8 src="http://www.digimoba.com/img/head/dot.gif" width=10></td>')
write('			  <td align=right width=115 valign="bottom" nowrap><a href="http://www.digimoba.com/"><img src="http://www.digimoba.com/img/head/name.gif" width="200" height="37" border="0"></a></td>')
write('			</tr>')
write('			</tbody> ')
write('		  </table>')
write('		  <table cellspacing=0 cellpadding=0 width="100%" border=0>')
write('			<tbody> ')
write('			<tr> ')
write('			  <td><img height=9 src="http://www.digimoba.com/img/head/h_img_left02_auc.gif" width=12 border=0></td>')
write('			  <td width="100%" bgcolor="#1795D9" colspan="2"><img height=1 src="http://www.digimoba.com/img/head/dot.gif" width=500></td>')
write('			  <td align=right><img height=9 src="http://www.digimoba.com/img/head/h_img_right02_auc.gif" width=12></td>')
write('			</tr>')
write('			<tr> ')
write('			  <td><img height=23 src="http://www.digimoba.com/img/head/h_img_left03.gif" width=12></td>')
write('			  <td bgcolor=#eeeedd> ')
write('				<div align="left"><span class=M> | <a href="http://www.digimoba.com/hajimete.htm" style="font-size: 10pt;">初めての方へ</a> | <a href="http://www.digimoba.com/shiharai.htm" style="font-size: 10pt;">お支払い方法</a> | <a href="http://www.digimoba.com/souryou.htm" style="font-size: 10pt;">送 料</a> | <a href="mailto:info@digimoba.com" style="font-size: 10pt;">お問い合わせ</a> | <a href="http://www.digimoba.com/" style="font-size: 10pt;">雑貨のデジモバＴＯＰ</a> |　</span></div>')
write('			  </td>')
write('			  <td bgcolor=#eeeedd nowrap> ')
write('				<div style="font-size: 10pt;">面白雑貨屋デジモバへようこそ。ごゆっくりお楽しみください。</div>')
write('			  </td>')
write('			  <td align=right><img height=23 src="http://www.digimoba.com/img/head/h_img_right03.gif" width=12></td>')
write('			</tr>')
write('			<tr> ')
write('			  <td><img height=2 src="http://www.digimoba.com/img/head/h_img_left04.gif" width=12></td>')
write('			  <td background=http://www.digimoba.com/img/head/h_bg_left02.gif colspan="2"><img height=1 src="http://www.digimoba.com/img/head/dot.gif" width=776></td>')
write('			  <td align=right ><img height=2 src="http://www.digimoba.com/img/head/h_img_right04.gif" width=12></td>')
write('			</tr>')
write('			</tbody> ')
write('		  </table>')
write('		</td>')
write('	  </tr>')
write('	  </tbody> ')
write('	</table>')
write('  </form>')
 }
} 
