function confirmAndJumpTo(question, url){
	var answer = confirm (question);
	if (answer){
		var answer2 = confirm (question + '\r\nLast chance to say no');
		if (answer2){
			window.location = url;
		} //end if
	} else {
	
	} //end if
} //end function

function validateSubmitCheckout(){

	//Use the ALREADY A CUSTOMER.
	if (document.getElementById('customer_new_company_name').value != ""){
		if (document.getElementById('customer_new_name').value != ""){
			if (document.getElementById('customer_new_name').value != ""){
				if (document.getElementById('customer_new_email_address').value != ""){
					if (document.getElementById('customer_new_verify_email_address').value != ""){
						return true;
					}
				}
			}
		}
	}
	
	//Use the NEW CUSTOMER.
	if (document.getElementById('customer_forename').value != ""){
		if (document.getElementById('customer_surname').value != ""){
			if (document.getElementById('customer_company_name').value != ""){
				if (document.getElementById('customer_postcode').value != ""){
					if (document.getElementById('customer_phone_number').value != ""){
						if (document.getElementById('customer_building_number').value != ""){
							if (document.getElementById('customer_addres_line1').value != ""){
								if (document.getElementById('customer_addres_line2').value != ""){
									if (document.getElementById('customer_email_address').value != ""){
										if (document.getElementById('customer_verify_email_address').value != ""){
											return true;
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
	
	//Send an error message.
	alert('Please fill out all the fields.');
	
	return false;
} //end function();