function VerifyData(){

   //*** to check for payment method *********
    var radio_choice2 = false;
    
    // Loop from zero to the one minus the number of radio button selections
    for (counter = 0; counter < document.paymentfrm.paymentmethod.length; counter++)
    {
    // If a radio button has been selected it will return true
    // (If not it will return false)
    if (document.paymentfrm.paymentmethod[counter].checked)
    radio_choice2 = true; 
    }
    
    if (!radio_choice2)
    {
    // If there were no selections made display an alert box 
          alert("Error! Please select a PAYMENT METHOD from the selection before proceeding next ...");          
          return (false);
    }

	if (paymentfrm.name.value==""){
		alert("Please key in your name");
		document.paymentfrm.name.focus()
		return false;
	}
	
	if (paymentfrm.contactno.value==""){
		alert("Please key in your contact no");
		document.paymentfrm.contactno.focus()
		return false;
	}

	//if (isNaN(paymentfrm.contactno.value)){
	//	alert("Please key in your contact no in number format");
	//	document.paymentfrm.contactno.focus()
	//	return false;
	//}

	if (paymentfrm.email.value==""){
		alert("Please key in your e-mail address");
		document.paymentfrm.email.focus()
		return false;
	}
        
	var field = paymentfrm.email; // email field
  	var str = field.value; // email string
  	var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
  	var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; // valid
  	if (!(!reg1.test(str) && reg2.test(str))) { // if syntax is valid
    	alert("\"" + str + "\" not a valid ISP e-mail address!"); // this is also optional
  	field.focus();
  	field.select();
  	return false;
	}	

	if (paymentfrm.websiteurl.value==""){
		alert("Please key in your website url / domain name");
		document.paymentfrm.websiteurl.focus()
		return false;
	}

	if (paymentfrm.country.value=="other"){
		alert("Please select your country");
		document.paymentfrm.country.focus()
		return false;
	}

  
	else{
		return true;
	}

}
