<!-- 


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

var work1, work2;


work1  = "<div style='width:70px; border: 1px #ffffdd dashed; background: #ffffdd'><table><tr><td align='center'><font size='2'><a href='javascript:show();'>一覧表示</a></font></td></tr></table></div>";
work2  = "<div style='border: 1px #ffffdd dashed; width: 219px; background: #ffffdd'><table width='219'><tr><td align='left'><font size='2' color='#3c3c3c'>気がついたど〜♪えへへ。<br>いつも心配してくれてありがとね！元気にやってるよ☆</font></td></tr><tr><td align='right'><font size='1' color='#004386'>ナツ&nbsp;&nbsp;03/19 19:35</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #ffffdd dashed; width: 219px; background: #ffffdd'><table width='219'><tr><td align='left'><font size='2' color='#3c3c3c'>気がついたど〜♪えへへ。<br>いつも心配してくれてありがとね！元気にやってるよ☆</font></td></tr><tr><td align='right'><font size='1' color='#004386'>ナツ&nbsp;&nbsp;03/19 19:34</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #ffffdd dashed; width: 219px; background: #ffffdd'><table width='219'><tr><td align='left'><font size='2' color='#3c3c3c'>さすがに誰も気が付かんねえ(笑)。</font></td></tr><tr><td align='right'><font size='1' color='#004386'>meg&nbsp;&nbsp;03/13 21:55</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<table><tr><td align='center'><div style='width:70px; border:1px #ffffdd dashed; background: #ffffdd'><font size='2'><a href='javascript:hide();'>隠す</a></font></div></td></tr></table>";



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

document.write("<div style='width: 230px; background: #ffffdd'>");
document.write("<table align='canter' width='230'>");
document.write("  <tr>");
document.write("    <td align='center'><hr align='center' width=219 style='color:#ffffdd;'>");
document.write("<font size='2' color='#990000'>＝ megfactory BBS ＝</font>");
document.write("<br><hr align='center' width=219 style='color:#ffffdd;'></td>");
document.write("  </tr>");
document.write("  <tr align='center'>");
document.write("    <td>");
document.write("      <div style='border: 1px #ffffdd dashed; width: 219px; background: #ffffdd'>");
document.write("      <table width='219'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#3c3c3c'>&gt;kinuちゃん<br>気にかけてくれてありがとう(^_-)<br>ご近所さんはねー雨音と雷で聞こえてないと思うのだけど、雷が鳴ってる間中、起きて傍にいなくちゃならないから寝不足になるのよ(^_^:)</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#004386'>meg&nbsp;&nbsp;06/13 22: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 #ffffdd dashed; width: 219px; background: #ffffdd'>");
document.write("      <table width='219'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#3c3c3c'>昨日、うちの方では昼間に雷が鳴ったのよ。<br>パソコンの電源を落としながら、ダイ君のほうは大丈夫かしら？なんて思っていました。<br>確かに、夜中の雷はご近所さんに気兼ねして身が縮む思いだろうね。</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#004386'>kinu&nbsp;&nbsp;06/10 19:30</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 #ffffdd dashed; width: 219px; background: #ffffdd'>");
document.write("      <table width='219'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#3c3c3c'>＞おがちゃん<br>そう！そう！あそこで作ったやつよ。懐かしいでしょ(笑)。<br>何か作ってみたかったけど、いざタイルを前にしたら何描いて良いかわからなくて、暫くタイル眺めてたっけなあ(^-^;)</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#004386'>meg&nbsp;&nbsp;05/22 22: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 #ffffdd dashed; width: 219px; background: #ffffdd'>");
document.write("      <table width='219'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#3c3c3c'>たんぽぽタイルは、○崎こども美術館で作ったものかしら？</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#004386'>おが&nbsp;&nbsp;05/20 21:04</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 #ffffdd dashed; width: 219px; background: #ffffdd'>");
document.write("      <table width='219'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#3c3c3c'>＞kinuちゃん<br>ありがとう♪<br>そう、色味としては私も好きなので、だから自然にこうなったのだろうねえ(笑)。<br>でもこのまま夏、秋、冬と越すつもりだったのに…</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#004386'>meg&nbsp;&nbsp;05/11 14:20</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 #ffffdd dashed; width: 219px; background: #ffffdd'>");
document.write("      <table width='219'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#3c3c3c'>このたんぽぽ、いいよ。やさしい。<br>それに全体のトーンも落ち着いた色味で好きだな。<br>模様替えって伝染病かもしれないね。<br>くすっ･･(￣m￣*) </font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#004386'>kinu&nbsp;&nbsp;05/10 22:30</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 #ffffdd dashed; width: 219px; background: #ffffdd'>");
document.write("      <table width='219'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#3c3c3c'>＞ももははは。さま<br>遅くなりました。<br>ごめんなさい(＞人＜)<br>懲りずにまた来てね〜</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#004386'>meg&nbsp;&nbsp;04/13 18:54</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 #ffffdd dashed; width: 219px; background: #ffffdd'>");
document.write("      <table width='219'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#3c3c3c'>今頃、気付いた〜！<br>く、悔しいぜ〜（苦笑）</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#004386'>ももはは。&nbsp;&nbsp;04/03 00:26</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 #ffffdd dashed; width: 219px; background: #ffffdd'>");
document.write("      <table width='219'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#3c3c3c'>とんでもないですよ〜<br>なかなか更新しませんが、良かったら是非またお越しくださいm(_ _)m</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#004386'>meg&nbsp;&nbsp;03/26 22: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 #ffffdd dashed; width: 219px; background: #ffffdd'>");
document.write("      <table width='219'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#3c3c3c'>おお〜返事が！！ウレシイ<br>ちゃんと書き込みできてましたね、何度もすいませんでした(*o*)//ワハハ<br>また来ます♪</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#004386'>ナツ&nbsp;&nbsp;03/25 21:25</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 #ffffdd dashed; width: 219px; background: #ffffdd'>");
document.write("      <table width='219'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#3c3c3c'>おお！ナツさん！！<br>ありがとうございますヽ(≧▽≦)ノ<br>何か、書き込んでもすぐに見えないみたいことがあるみたい…ごめんなさいm(_ _)m</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#004386'>meg&nbsp;&nbsp;03/20 11:52</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 #ffffdd dashed; width: 219px; background: #ffffdd'>");
document.write("      <table width='219'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#3c3c3c'>あれ＾〜＾<br>書き込みしたんだけど〜<br>消えちゃった</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#004386'>ナツ&nbsp;&nbsp;03/19 19:36</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 #ffffdd dashed; background: #ffffdd'>");
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/megfactory/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='#3c3c3c'>名前&nbsp;&nbsp;</font></td>");
document.write("          <td align='left' width='161'>");
document.write("            <input type='text' name='name' style='width:161px'></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='2' color='#3c3c3c'>内容&nbsp;&nbsp;</font></td>");
document.write("          <td align='left' width='161'>");
document.write("            <textarea name='text' rows='4' style='width:161px'></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='#3c3c3c'>ぷち掲示板&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;}



-->