// JavaScript Document
function checkForm(gf) {
	var ge = document.getElementById('btText').value;
	
	for (i = 1; i <= ge; i++) {
		gi = "text"+ i;
		if (document.getElementById(gi)) {
			if(document.getElementById(gi).value == "") {
				alert("กรุณากรอกข้อมูลที่จำเป็นด้วยค่ะ");
				return false;
			}
		}
	}
	
	if (document.getElementById('text9').checked == false) {
		alert("กรุณาเลือกวิธีการชำระเงิน");
		return false;
	}
}
