
if(navigator.appVersion.charAt(0)>=3){window.onerror=null};

function judge(){

var point = 0;

	if(document.chkForm.q1[0].checked != true && document.chkForm.q1[1].checked != true
       && document.chkForm.q2[0].checked != true && document.chkForm.q2[1].checked != true
       && document.chkForm.q3[0].checked != true && document.chkForm.q3[1].checked != true
       && document.chkForm.q4[0].checked != true && document.chkForm.q4[1].checked != true
       && document.chkForm.q5[0].checked != true && document.chkForm.q5[1].checked != true
       && document.chkForm.q6[0].checked != true && document.chkForm.q6[1].checked != true
	){
		;
	}
	else{
		Win001=window.open("subWin.html","WinName001","width=400,height=250,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
		Win001.opener=self;
		if(navigator.appVersion.charAt(0)>=3){window.onerror=null};
		Win001.document.write('<BODY BGCOLOR="#FFCCCC">');
		Win001.document.write('判定結果');
		Win001.document.write('<HR>');

	if(document.chkForm.q1[0].checked == true){  point += 10;  }   
	if(document.chkForm.q2[0].checked == true){  point += 20;  }
	if(document.chkForm.q3[0].checked == true){  point += 40;  }
	if(document.chkForm.q4[0].checked == true){  point += 20;  }
	if(document.chkForm.q5[0].checked == true){  point += 10;  }
	if(document.chkForm.q6[0].checked == true){  point += 0;  }

	if(point >= 50){message = "ブリーチングの効果が期待できる可能性高し！　歯美人になれるかも"}
	else if(point >=20){message = "クリーニングだけでも白い歯があなたのモノになるかも"}
	else if(point >=0){message = "歯の変色は気の性かも...一度受診してみて"}

	Win001.document.write("総合点：" + point + "%<BR><BR>あなたの場合は、" + message + "。");
	Win001.document.write('<FORM>');
	Win001.document.write('<CENTER>');
	Win001.document.write('<HR>');
	Win001.document.write('判定結果を閉じます'.fontcolor("FF1493"));
	Win001.document.write('');
	Win001.document.write('<INPUT type="button" value=" CLOSE "onClick="self.close()">');
	Win001.document.write('</CENTER>');
	Win001.document.write('</FORM>');

Win001.document.close();
	}
};


