function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
}
}
function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("동의 하지 않으면 버튼을 클릭 할 수 없습니다")
return false
}
}
}
</script>
</HEAD>
<BODY>
<p>
<form name="agreeform" onSubmit="return defaultagree(this)">
<textarea cols=30 rows=5>
나는 자랑스런 태극기 앞에
조국과 민족의 영광을 위하여
몸과 마음을 바쳐 충성을 다할것을
굳게 다짐 합니다
</textarea>
<p>
<input name="agreecheck" type="checkbox" onClick="agreesubmit(this)"><b>예, 동의
합니다</b>
<input type="Submit" value=" 확 인 " disabled>
</form>