function cc_verify()
{
	var themessage = "You are required to complete the following fields:\n\n";

	/* Billing/Cardholder person */
    if(document.forms.pay_cc.cardholder_firstname.value==""){
		themessage = themessage + "-  cardholder's firstname\n";	
	}		
	
    if(document.forms.pay_cc.cardholder_lastname.value==""){
		themessage = themessage + "-  cardholder's lastname\n";	
	}	

		
	if(document.forms.pay_cc.cctype.value==""){
		themessage = themessage + " -  credit card type\n";	
	}	
		
	//if(document.forms[1].ccnumber.value==""){
	//	themessage = themessage + " -  credit card number\n";	
	//}	

	if (checkCreditCard(document.getElementById('ccnumber').value,document.getElementById('cctype').value) ==false) {
		themessage = themessage + " -  check credit card number and or card type\n";
	}
	
	if(document.forms.pay_cc.securityCode.value==""){
		themessage = themessage + " -  credit card security number\n";	
	}			
	
	if(document.forms.pay_cc.month.value=="" || document.forms[1].year.value==""){
		themessage = themessage + " -  credit card expires end\n";	
	}		
					
	if(document.forms.pay_cc.cardholder_address1.value==""){
		themessage = themessage + " -  cardholder's address\n";	
	}	
						
	if(document.forms.pay_cc.cardholder_town.value==""){
		themessage = themessage + " -  cardholder's city\n";	
	}	
	
	if(document.forms.pay_cc.cardholder_postcode.value==""){
		themessage = themessage + " -  cardholder's postcode\n";	
	}	
	
	/* if(document.forms.pay_cc.cardholder_country.value==""){
		themessage = themessage + " -  cardholder's country\n";	
	}	
	*/
	
	if(document.forms.pay_cc.cardholder_telephone.value==""){
		themessage = themessage + " -  cardholder's telephone\n";	
	}	



	
	//alert if fields are empty and cancel form submit
	if (themessage == "You are required to complete the following fields:\n\n") {
		return true;
	} else {
		alert(themessage);
		return false;
	   }
}			
