function window_donate_check(TheForm) {
	if(TheForm.name.value == "") {
		alert("이름을 입력하세요.");
		TheForm.name.focus();
		return false;
	}
	if(TheForm.email.value == "") {
		alert("E-Mail을 입력하세요.");
		TheForm.email.focus();
		return false;
	}
	p=0;
	for(i=0; i<TheForm.pay_type.length; i++) {
		if(TheForm.pay_type[i].checked == true) {
			p = i+1;
			break;
		}
	}
	if(!p) {
		alert("결제 방법을 선택하세요.");
		TheForm.pay_type.focus();
		return false;
	}
	if(TheForm.amount.value == "") {
		alert("후원금액을 입력하세요.");
		TheForm.amount.focus();
		return false;
	}
	if(is_int(TheForm.amount.value) == false) {
		alert("후원금액은 숫자만 허용됩니다.");
		TheForm.amount.focus();
		return false;
	}
	window.open('','_payreq','width=500,height=600');
	return true;
}

function is_int(value){
	if((parseFloat(value) == parseInt(value)) && !isNaN(value)){
		return true;
	} else {
		return false;
	}
}

