<!--


function makeArray(n) {
	this.length = n;
	for (i = 0; i < n; i++) {
		this[i] = null;
	}
}
var q = new makeArray(31);
var c = new makeArray(31);

function kan(){
var xmas;
var santa;
var motto1;
var motto2;
var motto3;
var motto4;
var motto5;
var motto6;
var motto7;
var motto8;
var motto9;
var motto10;
var motto11;
var i;		
	for(i=1;i<=12;i++){
		if (c[i]==null){
			alert("記入漏れがあります。リセットボタンを押して最初からやり直してください。");
			return;
		}
	}
	
	
	
	xmas=q[1]+q[2]+q[3]+q[4]+q[5]+q[6]+q[7]+q[8]+q[9]+q[10]+q[11]+q[12];
	xmas=xmas/72*100;
	xmas=Math.round(xmas);

	santa=q[12];
	santa=santa;
	santa=Math.round(santa);

	motto1=q[1];
	motto1=motto1;
	motto1=Math.round(motto1);

	motto2=q[2];
	motto2=motto2;
	motto2=Math.round(motto2);

	motto3=q[3];
	motto3=motto3;
	motto=Math.round(motto3);

	motto4=q[4];
	motto4=motto4;
	motto4=Math.round(motto4);

	motto5=q[5];
	motto5=motto5;
	motto5=Math.round(motto5);

	motto6=q[6];
	motto6=motto6;
	motto=Math.round(motto6);

	motto7=q[7];
	motto7=motto7;
	motto7=Math.round(motto7);

	motto8=q[8];
	motto8=motto8;
	motto8=Math.round(motto8);

	motto9=q[9];
	motto9=motto9;
	motto9=Math.round(motto9);

	motto10=q[10];
	motto10=motto10;
	motto10=Math.round(motto10);

	motto11=q[11];
	motto11=motto11;
	motto11=Math.round(motto11);


	document.write ("<p align=center><font size=7>");
	document.write ("<body bgcolor=#ffffff text=#396057>");
	document.write ("X'mas度鑑定結果</font>");

	document.write ("<CENTER><TABLE WIDTH=80%  BORDER=0 CELLSPACING=0 CELLPADDING=0><TR><TD WIDTH=100%");

	document.write ("<P><CENTER><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><TR><TD WIDTH=44 ALIGN=RIGHT HEIGHT=44><IMG SRC=image/santa.gif>");
	document.write ("</TD><TD HEIGHT=44 VALIGN=BOTTOM>");
	document.write ("<font color=#FF0000 size=6>");
	document.write ("クリスマス度"+ xmas +"％");
	document.write ("</TD></TR></TABLE></CENTER>");

	document.write ("<HR ALIGN=CENTER SIZE=4 NOSHADE COLOR=#52849C></CENTER>");
	document.write ("<align=left><font color=#52849C  size=4>");
	if (xmas==100){
		document.write("<B>あなたのクリスマス度は完璧です。あなたのクリスマスへの準備と相手を思いやる気持ちで今年のクリスマスはとてもよい日になります。</B>");
	}
	else if(xmas>=90) {
		document.write("<B>あなたのクリスマス度はほぼ完璧です。あなたとクリスマスを過ごす方はとても幸せです。</B>");
	}
	else if(xmas>=87) {
		document.write("<B>あなたはクリスマスをとても楽しみにしています。きっと誰よりも楽しいクリスマスを迎えることが出来るでしょう。</B>");
	}
	else if(xmas>=85) {
		document.write("<B>あなたのクリスマス度はとても高く、すでに準備は出来ているようです。とても素敵なクリスマスを過ごすことが出来ます。</B>");
	}
	else if(xmas>=83) {
		document.write("<B>あなたはクリスマスを待ち遠しいく思っています。きっと何か良い出来事が訪れることでしょう。</B>");
	}
	else if(xmas>=80) {
		document.write("<B>あなたのクリスマス度はとても高いです。あなたとクリスマスを過ごす方がとてもうらやましいです。</B>");
	}
	else if(xmas>=70) {
		document.write("<B>あなたのクリスマス度は結構高い方です。これなら今年のクリスマスはうまく運びます。完璧を目指すなら下のアドバイスを参考に･･･。</B>");
	}
	else if(xmas>=60) {
		document.write("<B>あなたのクリスマス度はやや高めです。しかしもっと楽しいクリスマスを過ごす為に準備を怠らないで下さい。</B>");
	}
	else if(xmas>=50) {
		document.write("<B>あなたのクリスマス度は普通ですが、まだまだ心の準備が足りないようです。もう少しでクリスマスがやってきます。急いでね！</B>");
	}
	else if(xmas>=40) {
		document.write("<B>あなたのクリスマス度はちょと低いようです。まだ間に合います。積極的にクリスマスというイベントに参加して楽しんで下さい。</B>");
	}
	else if(xmas>=30) {
		document.write("<B>あなたはクリスマスに消極的のようですが、クリスマスの基本は相手を思いやる気持ちです。その気持ちだけでも受け止めてみてはどうでしょうか？</B>");
	}
	else if(xmas>=20) {
		document.write("<B>私はクリスマスシーズンが来るとなんとなくワクワクします。出来ればあなたにもそんな楽しくなるような気持ちを分けてあげたいです。</B>");
	}
	else if(xmas>=10) {
		document.write("<B>クリスマスを楽しむ事はそんなに悪い事ではないですよ。気持ちを切り替えて街のイベントに参加してみてはいかがでしょうか？</B>");
	}
	else if(xmas>=1) {
		document.write("<B>あなたはクリスマスが嫌いのようですね。来年のクリスマスはあなたにとってよい思い出になりますように・・・。</B>");
	}
	else if(xmas==0) {
		document.write("<B>あなたはクリスマスから避けようとしています。こんなに楽しいイベントは1年に1度しかありません。あなたも積極的に参加してみてはいかがでしょうか？</B>");
	}
	if (xmas>=80){
		document.write("<EMBED SRC=./bgm/jingle.mid AUTOSTART=TRUE REPEAT=TRUE LOOP=-1 PANEL=0 WIDTH=0 HEIGHT=0>");
	}
	else if(xmas>=0) {
		document.write("<EMBED SRC=./bgm/106.mid AUTOSTART=TRUE REPEAT=TRUE LOOP=-1 PANEL=0 WIDTH=0 HEIGHT=0>");
	}
	if (xmas<=99){		
	document.write ("<br><p align=center><font color=#FF0000 size=6>");
	document.write ("もっとクリスマス</font><br>");
	document.write ("<HR ALIGN=CENTER SIZE=4 NOSHADE COLOR=#52849C></CENTER>");
	document.write ("<align=left><font color=#ff8000>あなたへもっとクリスマスを楽しく過ごすためのアドバイスです。</font><br><br><font color=#52849C>");
	}
	if (motto1==0){
		document.write("●暖かい心をプレゼントしてくれる人があなたのサンタさんです。<br>");
	}
	if (motto2==0){
		document.write("●一人で過ごしている時も誰かがあなたの事を思っていてくれます。<br>");
	}
	if (motto3==0){
		document.write("●来年は休みをとってクリスマスの思い出を作ってね。<br>");
	}
	if (motto4==4){
		document.write("●クリスマスはのんびりとした気持ちで・・・。<br>");
	}
	if (motto4==0){
		document.write("●「クリスマス」って言葉、何となく楽しくなりませんか？<br>");
	}
	if (motto5==0){
		document.write("●プレゼントは値段より気持ちです。<br>");
	}
	if (motto5==4){
		document.write("●心のこもった贈り物はきっとあなたが本当に欲しかった物です。<br>");
	}
	if (motto6==0){
		document.write("●相手が嫌がるプレゼントだけは避けましょう。<br>");
	}
	if (motto7==0){
		document.write("●日頃の感謝の気持ちをカードにこめて下さい。<br>");
	}
	if (motto8==4){
		document.write("●これを機会にクリスマスにまつわる物語を読んではいかがですか？<br>");
	}
	if (motto8==0){
		document.write("●クリスマスにまつわる話は心が温まります。<br>");
	}
	if (motto9==0){
		document.write("●パーティですよ。テーブルには1つ位何か飾ってみては？<br>");
	}
	if (motto10==0){
		document.write("●クリスマスソングはワクワクしたり、涙がこぼれたり・・。<br>");
	}
	if (motto11==4){
		document.write("●色気より、食い気ですか・・・？それも良いかもしれませんね。<br>");
	}
	if (motto11==0){
		document.write("●クリスマスを好きになれとは言いません。よき思い出を・・。<br>");
	}

	if (santa==0){
		document.write("<br><CENTER><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=3 WIDTH=100%><TR><TD BGCOLOR=#1d322e WIDTH=42 HEIGHT=61 ROWSPAN=3 ALIGN=CENTER><IMG SRC=image/tona.gif WIDTH=42 HEIGHT=61 ALIGN=BOTTOM BORDER=0 NATURALSIZEFLAG=3></TD><TD VALIGN=TOP><FONT SIZE=+2><b>サンタの赤い服!</b></FONT></TD></TR><TR><TD VALIGN=TOP><font color=#009999  size=-1>1931年、米国人アー ティストのハッドン・サンドブロムがコカ・コーラの広告用に登用させて以来イメージが定着したそうです。コカコーラと言えば赤と白ですから。豆知識をデートで活用！相手も知ってたらごめんね・・・</FONT></TD></TR></TABLE>");
	}

	document.write ("</B><br><P><CENTER><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2><TR><TD NOWRAP><I><FONT COLOR=#ff0000 SIZE=7>M</FONT><FONT COLOR=#396057 SIZE=7>erry </FONT><FONT COLOR=#ff0000 SIZE=7>X'</FONT><FONT COLOR=#396057 SIZE=7>mas </FONT><FONT COLOR=#ff0000 SIZE=7>&</FONT></I></TD></TR><TR><TD NOWRAP><I><FONT COLOR=#ff0000 SIZE=7>　　　H</FONT><FONT COLOR=#ff8000 SIZE=7>appy </FONT><FONT COLOR=#ff0000 SIZE=7>N</FONT><FONT COLOR=#ff8000 SIZE=7>ew </FONT><FONT COLOR=#ff0000 SIZE=7>Y</FONT><FONT COLOR=#ff8000 SIZE=7>ear !</FONT></I></TD></TR></TABLE></CENTER></TD></TR></TABLE> ");

	document.write ("<table width=90% border=1 cellpadding=3 cellspacing=0><tbody><tr><td colspan=3><font color=#FF6633>何でも精神鑑定は携帯電話対応です。【性格診断＆心理テスト】として</font><font color=#009999>100種以上の心理テスト</font><font color=#FF6633>と</font><font color=#009999>面白占いや性格診断も20種以上</font><font color=#FF6633>もあり、WEB版よりも内容が濃くいつでもどこでも楽しめるようになっています。携帯版は以下の方法でアクセスしてください。</font></td></tr><tr><td align=center bgcolor=#FF6633><font color=#FFFFFF>公式サイト</font></td> <td bgcolor=#FF6633 align=center><font color=#FFFFFF>QRコードでアクセス</font></td> <td align=center bgcolor=#FF6633><font color=#FFFFFF>その他のアクセス方法</font></td></tr><tr><td align=center><img src=./image/ezlogo.gif width=76 height=36 border=0><br> EZweb<br> Yahoo!keitai <br> 公式サイトです</td> <td align=center><img src=./image/qr-avjjp.gif width=111 height=111 border=0></td> <td align=center nowrap><br>@メール送信はクリック→→<a href=mailto:@docomo.ne.jp? subject=精神鑑定&body=http://avj.jp>性格診断＆心理テスト</a><br><br>A携帯に直接入力で以下のURLにアクセス<br><font size=4>http://avj.jp</font><br><br> B EZweb：<font color=#FF6633>メニュー</font>→<font color=#FF6633>ライフ</font>→<font color=#FF6633>診断・心理テスト</font>→<font color=#FF6633>精神鑑定＆心理テスト</font><br> Yahoo!keitai ：<font color=#FF6633>メニューリスト</font>→<font color=#FF6633>占い・心理</font>→<font color=#FF6633>J-STYLE</font>→<font color=#FF6633>精神鑑定</font><br> </td></tr></tbody></table><br>");

	document.write ("<CENTER><TABLE BORDER=0 CELLSPACING=3 CELLPADDING=3 HEIGHT=31><TR><TD HEIGHT=24><A HREF=xmas.html>[もう１度鑑定する]</A></TD><TD HEIGHT=24><A HREF=index.html>[精神鑑定団に戻る]</A></TD></TR></TABLE></CENTER>");


}	

function question(parts){
	var i
	i=parts.name;
	i=eval(i);
	q[i]=parts.value;
	q[i]=eval(q[i]);
	c[i]=1;
	c[i]=eval(c[i]);
}	
function check(){
	for(i=1;i>=30;i++){
		c[i]=0;
		q[i]=0;
	}

}
// -->