
	function isBatcheck(frm){
		var f = frm;
		var i = 0;
		var chked = 0;
			
		for(i = 0; i < f.length; i++ ) {
			if(f[i].checked) {			chked++;			}
		}
		if( chked < 1 ) {
			return false;
		}
		return true;
	}
	function BattleCheckForm() {
		if (!isBatcheck(document.battle_form.rbut)) {
			alert('»çÁøÀ» ÀÀ´ä Ã¼Å©ÇÏ¼¼¿ä.');
			return false;
		} else {
			return true;
		}
	}
	document.write("");
document.write("<form name='battle_form' method='post' action='http://kids.hankooki.com/survival/battle_run.php?rbut=&indexid=40' onsubmit='return BattleCheckForm()' style='padding:0px;margin:0px;'>");
document.write(" <div id='battle'>");
document.write("  <h3><a href='http://kids.hankooki.com/survival/battle_result.php' target=_top><img src='http://img.hankooki.com/kids/2008/08/s_r_photo1.gif' width='250' height='32' border='0' /></a></h3>");
document.write("  <ul>");
document.write("   <dl class='bt1'>");
document.write("    <dd><img src='http://photo.hankooki.com/webdownphoto/kids/kids_survival/thumb/2009/08/090807_145522.jpg' width='86' height='86' style='border:1px #666666 solid;' /></dd>");
document.write("    <dd><input name='rbut' type='radio' value='cnt_1' /></dd>");
document.write("    <dd><input type=image src='http://img.hankooki.com/kids/2008/08/btn_photo1.gif' width='55' height='17' border='0' /></dd>");
document.write("   </dl>");
document.write("   <dl class='bt2'><p style='margin-top:30px;' /><img src='http://img.hankooki.com/kids/2008/08/vs.gif' width='25' height='20' /></dl>");
document.write("   <dl class='bt3'>");
document.write("    <dd><img src='http://photo.hankooki.com/webdownphoto/kids/kids_survival/thumb/2009/08/090807_145326.jpg' width='86' height='86' style='border:1px #666666 solid;' /></dd>");
document.write("    <dd><input name='rbut' type='radio' value='cnt_2' /></dd>");
document.write("    <dd><a href='http://kids.hankooki.com/survival/battle_result.php' target='_top'><img src='http://img.hankooki.com/kids/2008/08/btn_photo2.gif' width='55' height='17' border='0' /></a></dd>");
document.write("   </dl>");
document.write("  </ul>");
document.write(" </div>");
document.write("</form>");
document.write("	");
document.write("");
