
 
function valbutton(thisform) {
// place any other field validations that you require here
// validate myradiobuttons
myOption = -1;

for (i=thisform.myradiobutton.length-1; i > -1; i--) {
if (thisform.myradiobutton[i].checked) {
myOption = i; i = -1;
}
}
if (myOption == -1) {
alert("You must select a package before submit");
return false;
}

// place any other field validations that you require here
thisform.submit(); // this line submits the form after validation
}




       










function validall()
{
	var frm =document.paymentform;
		if(frm.cheque_no.value=="")
		{
			alert("Please fill up cheque no. Correctly");
			frm.cheque_no.focus();
			return false;
		}
		if (frm.bank_name.value=="")
		 {
			 alert("Please fill the bank Name");
			 frm.bank_name.focus();
			 return false;
			 
		 }
		 if (frm.place.value=="")
		 {
			 alert("Please fill the city place of agent bank");
			 frm.place.focus();
			 return false;
			 
		 }
		 if(frm.send_payment_date.value=="")
		 {
			 alert("please enter date in yyyy-mm-dd format");
			 frm.send_payment_date.focus();
			 return false;
		 }
		 return true;
}