<!-- 


/********** 初期設定 **********/

var work1, work2;


work1  = "<div style='width:70px; border: 1px #CC6666 dashed; background: #FFFFCC'><table><tr><td align='center'><font size='2'><a href='javascript:show();'>一覧表示</a></font></td></tr></table></div>";
work2  = "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>昨日の明け方にすげー降ったけど、その後はほとんど降らず。<br>だいぶ西にそれたのでとりあえず一安心！？</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;09/02 11:58</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>土砂災害注意報が出てたけど…大丈夫？</font></td></tr><tr><td align='right'><font size='1' color='#666666'>あみはるた&nbsp;&nbsp;09/01 19:58</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>台風ほんとにくるの?土砂災害注意報出てたけど…大丈夫？</font></td></tr><tr><td align='right'><font size='1' color='#666666'>あみはるた&nbsp;&nbsp;09/01 19:51</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>台風こわい</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;08/31 13:40</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>書き込んでいいＹＯ！<br>（気づくの遅っ）</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;08/26 09:59</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>ここにも、書き込んで良いの？<br>更新楽しみにしていますYo!<br></font></td></tr><tr><td align='right'><font size='1' color='#666666'>あみはるた&nbsp;&nbsp;08/20 22:02</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>しかし暑い</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;07/18 15:16</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>ヒグラシ鳴いてるっ</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;07/14 19:05</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>新車がキタ！<br>ＣＶＴって快適</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;07/11 15:37</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>家電エコポイントがついた！<br>２口送ったのに１つ分だけ…？</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;07/01 14:50</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>軽トラ買って活躍してます</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;06/03 11:05</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>震災の影響か、ルーフィングが売ってないYO！</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;04/28 14:58</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>週末は粉もんパーティー！</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし　&nbsp;&nbsp;02/23 11:47</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>ただいま梅にメジロちゃんが来ています</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;02/12 15:40</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>石油コンロ欲しいなぁ〜</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;12/20 11:45</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>忙しわす！</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;12/16 20:10</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>ＰＣの不調＆ブログの不調！ちくちょー！</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;11/30 15:40</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>すったもんだで同じ炊飯器を再購入！<br>今度は漏れずに炊けた！</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;11/15 16:58</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>炊飯器は返金と相成りやした！</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;11/09 17:42</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'><table width='152'><tr><td align='left'><font size='2' color='#000000'>圧力スチームＩＨ炊飯器を買ったら脇から蒸気が漏れまくり！</font></td></tr><tr><td align='right'><font size='1' color='#666666'>それがし&nbsp;&nbsp;11/08 15:29</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<table><tr><td align='center'><div style='width:70px; border:1px #CC6666 dashed; background: #FFFFCC'><font size='2'><a href='javascript:hide();'>隠す</a></font></div></td></tr></table>";



/********** 書き込み内容10件分表示 **********/

document.write("<div style='width: 160px; background: #FFCC99'>");
document.write("<table align='canter' width='160'>");
document.write("  <tr>");
document.write("    <td align='center'><hr align='center' width=152 style='color:#990000;'>");
document.write("<font size='2' color='#990000'>のろし台</font>");
document.write("<br><hr align='center' width=152 style='color:#990000;'></td>");
document.write("  </tr>");
document.write("  <tr align='center'>");
document.write("    <td>");
document.write("      <div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'>");
document.write("      <table width='152'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#000000'>厄落としの意味を込めて、コメント返ししています！<br>これからはちゃんとしますから許してちょ！</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#666666'>それがし&nbsp;&nbsp;02/20 14:39</font><br></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      <font size='1'><br></font>");
document.write("      <div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'>");
document.write("      <table width='152'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#000000'>朝６時に出ていた台所の水が、その後凍って出ない！</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#666666'>それがし&nbsp;&nbsp;02/03 09:09</font><br></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      <font size='1'><br></font>");
document.write("      <div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'>");
document.write("      <table width='152'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#000000'>ブログを順次更新中！</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#666666'>それがし&nbsp;&nbsp;01/12 11:43</font><br></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      <font size='1'><br></font>");
document.write("      <div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'>");
document.write("      <table width='152'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#000000'>大勢で皆既月食体験してきた！＠豪邸のバルコニー</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#666666'>それがし&nbsp;&nbsp;12/11 11:27</font><br></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      <font size='1'><br></font>");
document.write("      <div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'>");
document.write("      <table width='152'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#000000'>たちの悪い〆切がやっと終わったー</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#666666'>それがし&nbsp;&nbsp;11/02 13:42</font><br></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      <font size='1'><br></font>");
document.write("      <div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'>");
document.write("      <table width='152'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#000000'>石油給湯器が壊れた</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#666666'>それがし&nbsp;&nbsp;10/21 10:24</font><br></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      <font size='1'><br></font>");
document.write("      <div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'>");
document.write("      <table width='152'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#000000'>今朝見たら、裏のヒノキが１本倒れて大惨事になっていた！<br>祈りは通じず…</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#666666'>それがし&nbsp;&nbsp;09/22 09:14</font><br></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      <font size='1'><br></font>");
document.write("      <div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'>");
document.write("      <table width='152'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#000000'>台風、あとは祈るしかない…</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#666666'>それがし&nbsp;&nbsp;09/21 15:38</font><br></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      <font size='1'><br></font>");
document.write("      <div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'>");
document.write("      <table width='152'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#000000'>エコポイントのビール券が届いた！<br>催促後はスムーズ☆</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#666666'>それがし&nbsp;&nbsp;09/09 19:13</font><br></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      <font size='1'><br></font>");
document.write("      <div style='border: 1px #CC6666 dashed; width: 152px; background: #FFFFCC'>");
document.write("      <table width='152'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#000000'>エコポイントのメールが届かないので電話で催促した。</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#666666'>それがし&nbsp;&nbsp;09/02 12:10</font><br></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      <font size='1'><br></font>");


/********** 一覧表示 **********/

document.write("      <span id='all'>");
document.write("      <div style='width:70px; border: 1px #CC6666 dashed; background: #FFFFCC'>");
document.write("      <table>");
document.write("        <tr>");
document.write("          <td align='center'>");
document.write("            <font size='2'><a href='javascript:show();'>一覧表示</a></font></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      </span></td>");


/********** 書き込みフォーム表示 **********/

document.write("  </tr>");
document.write("  <tr>");
document.write("    <td align='center'>");
document.write("      <table border='0' cellpadding='0' cellspacing='0'>");
document.write("        <form name='frm' method='POST' action='http://asp.atomicweb.co.jp/id/soregashi/petit_bbs/' target='_blank' onSubmit='return fnc_check(document.frm.name.value)'>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='2' color='#000000'>名前&nbsp;&nbsp;</font></td>");
document.write("          <td align='left' width='112'>");
document.write("            <input type='text' name='name' style='width:112px'></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='2' color='#000000'>内容&nbsp;&nbsp;</font></td>");
document.write("          <td align='left' width='112'>");
document.write("            <textarea name='text' rows='4' style='width:112px'></textarea></td>");
document.write("        </tr>");
document.write("        <tr align='right'>");
document.write("          <td colspan='2'>");
document.write("            <input type='submit' value='書き込み'></td>");
document.write("        </tr>");
document.write("        </form>");
document.write("      </table></td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td align='right'>");
document.write("      <font size='1'><br></font><font size='2' color='#000000'>ぷち掲示板&nbsp;<a href='http://asp.atomicweb.co.jp/' target='_blank'>AtomicASP</a></font></td>");
document.write("  </tr>");
document.write("</table>");
document.write("</div>");


/********** クッキー読み込み **********/

var theData   = "";
var theName   = "AtmMiniBBS=";
var theCookie = document.cookie+";";
var start = theCookie.indexOf(theName);
var end;

if (start != -1){	
	end = theCookie.indexOf(";",start);
	theData = unescape(theCookie.substring(start+theName.length, end));
}
document.frm.name.value = theData;


/********** ファンクション **********/

function fnc_check(name){

	var strName = name;

	if(document.frm.name.value == ""){
		alert("名前を入力してください");
		return false;
	}else if(document.frm.text.value == ""){
		alert("内容を入力してください");
		return false;
	}else{
		var theName  = "AtmMiniBBS";
		var theValue = document.frm.name.value;
		var theDay   = 31;

		setDay = new Date();
		setDay.setTime(setDay.getTime()+(theDay*1000*60*60*24));
		expDay = setDay.toGMTString();
		cook = theName + "="+escape(theValue)+";expires="+expDay;
		document.cookie = cook;
              document.frm.name.value += "　"
              document.frm.text.value += "　"
	}

}

function show(){all.innerHTML = work2;}
function hide(){all.innerHTML = work1;}



-->
