function setPaymentInfo(isChecked)
{
	with (window.document.frmCheckout) {
		if (isChecked) {
			txtPaymentFirstName.value  = txtShippingFirstName.value;
			txtPaymentLastName.value   = txtShippingLastName.value;
			txtPaymentEmail.value   = txtShippingEmail.value;
			txtPaymentAddress1.value   = txtShippingAddress1.value;
			txtPaymentAddress2.value   = txtShippingAddress2.value;
			txtPaymentPhone.value      = txtShippingPhone.value;
			txtPaymentFax.value      = txtShippingFax.value;
			txtPaymentCompany.value      = txtShippingCompany.value;
			txtPaymentState.value      = txtShippingState.value;	
			txtPaymentOtherState.value      = txtShippingOtherState.value;		
			txtPaymentCity.value       = txtShippingCity.value;
			txtPaymentPostalCode.value = txtShippingPostalCode.value;
			txtPaymentCountry.value = txtShippingCountry.value;
			
			txtPaymentFirstName.readOnly  = true;
			txtPaymentLastName.readOnly   = true;
			txtPaymentEmail.readOnly   = true;
			txtPaymentAddress1.readOnly   = true;
			txtPaymentAddress2.readOnly   = true;
			txtPaymentPhone.readOnly      = true;
			txtPaymentFax.readOnly      = true;
			txtPaymentCompany.readOnly      = true;
			txtPaymentState.readOnly      = true;
			txtPaymentOtherState.readOnly      = true;			
			txtPaymentCity.readOnly       = true;
			txtPaymentPostalCode.readOnly = true;	
			txtPaymentCountry.readOnly = true;			
		} else {
			txtPaymentFirstName.readOnly  = false;
			txtPaymentLastName.readOnly   = false;
			txtPaymentEmail.readOnly   = false;
			txtPaymentAddress1.readOnly   = false;
			txtPaymentAddress2.readOnly   = false;
			txtPaymentPhone.readOnly      = false;
			txtPaymentFax.readOnly      = false;
			txtPaymentCompany.readOnly      = false;
			txtPaymentState.readOnly      = false;	
			txtPaymentOtherState.readOnly      = false;		
			txtPaymentCity.readOnly       = false;
			txtPaymentPostalCode.readOnly = false;	
			txtPaymentCountry.readOnly = false;		
		}
	}
}


function checkShippingAndPaymentInfo()
{
	with (window.document.frmCheckout) {
		if (isEmpty(txtShippingFirstName, 'Enter shipping first name')) {
			return false;
		} else if (isEmpty(txtShippingLastName, 'Enter shipping last name')) {
			return false;
		} else if (isEmpty(txtShippingEmail, 'Enter shipping Email Address')) {
			return false;
		} else if (isEmpty(txtShippingAddress1, 'Enter shipping address')) {
			return false;
		} else if (isEmpty(txtShippingPhone, 'Enter shipping phone number')) {
			return false;
		} else if (isEmpty(txtShippingState, 'Enter shipping state')) {
			return false;
		} else if (isEmpty(txtShippingCity, 'Enter shipping city')) {
			return false;
		} else if (isEmpty(txtShippingCountry, 'Enter shipping country')) {
			return false;
		} else if (isEmpty(txtPaymentFirstName, 'Enter payment first name')) {
			return false;
		} else if (isEmpty(txtPaymentLastName, 'Enter payment last name')) {
			return false;
		} else if (isEmpty(txtPaymentEmail, 'Enter payment Email Address')) {
			return false;
		} else if (isEmpty(txtPaymentAddress1, 'Enter payment address')) {
			return false;
		} else if (isEmpty(txtPaymentPhone, 'Enter payment phone number')) {
			return false;
		} else if (isEmpty(txtPaymentState, 'Enter payment address state')) {
			return false;
		} else if (isEmpty(txtPaymentCity, 'Enter payment address city')) {
			return false;
		} else if (isEmpty(txtPaymentCountry, 'Enter payment country')) {
			return false;
		} else {
			return true;
		}
	}
}
