function copyFields(chk)
{
	if ( chk.checked ) {
		var frm = chk.form;
		document.frm.ddlTitleDelivery.value = document.frm.ddlTitle.value;
		document.frm.txtFirstNameDelivery.value = document.frm.txtFirstName.value;
		document.frm.txtLastNameDelivery.value = document.frm.txtLastName.value;
		document.frm.txtCompanyDelivery.value = document.frm.txtCompany.value;
		document.frm.txtAddress1Delivery.value = document.frm.txtAddress1.value;
		document.frm.txtAddress2Delivery.value = document.frm.txtAddress2.value;
		document.frm.txtCityDelivery.value = document.frm.txtCity.value;
		document.frm.txtPostCodeDelivery.value = document.frm.txtPostCode.value;
		document.frm.ddlCountryDelivery.value = document.frm.ddlCountry.value;
		document.frm.txtPhoneDelivery.value = document.frm.txtPhone.value;
	}
}

function checkValue(ctrl, delivery)
{
	if ( document.frm.chkSameAsInvoice.checked ) {
		ctrlD = document.getElementById(delivery);
		if ( ctrlD != null ) ctrlD.value = ctrl.value;
	}
}
