function setPaymentInfo(isChecked)
{
	with (window.document.frmCheckout) {
		if (isChecked) {
			txtPaymentName.value  = txtShippingName.value;
			txtPaymentAddress.value   = txtShippingAddress.value;
			txtPaymentPhone.value   = txtShippingPhone.value;
			txtPaymentCity.value   = txtShippingCity.value;
			txtPaymentEmail.value      = txtShippingEmail.value;
			
			txtPaymentName.readOnly  = true;
			txtPaymentAddress.readOnly   = true;
			txtPaymentPhone.readOnly   = true;
			txtPaymentCity.readOnly   = true;
			txtPaymentEmail.readOnly      = true;
			txtPaymentVD.readOnly = true;		
		} else {
			txtPaymentName.readOnly  = false;
			txtPaymentAddress.readOnly   = false;
			txtPaymentPhone.readOnly   = false;
			txtPaymentCity.readOnly   = false;
			txtPaymentEmail.readOnly      = false;
			txtPaymentVD.readOnly = false;	
		}
	}
}


function checkShippingAndPaymentInfo()
{
	with (window.document.frmCheckout) {
		if (isEmpty(txtShippingName, 'Lütfen teslim edilecek kişi adını yazınız.')) {
			return false;
		} else if (isEmpty(txtShippingAddress, 'Lütfen teslimatın yapılacağı adresi yazınız.')) {
			return false;
		} else if (isEmpty(txtShippingPhone, 'Lütfen teslimatın yapılacağı kişinin telefonunu yazınız.')) {
			return false;
		} else if (isEmpty(txtShippingCity, 'Lütfen teslimat yapılacak şehiri yazınız.')) {
			return false;
		} else if (isEmpty(txtPaymentName, 'Lütfen fatura kesilecek kişi adını yazınız.')) {
			return false;
		} else if (isEmpty(txtPaymentAddress, 'Lütfen fatura adresi yazınız.')) {
			return false;
		} else if (isEmpty(txtPaymentCity, 'Lütfen fatura adresi şehir yazınız.')) {
			return false;			
		} else {
			return true;
		}
	}
}

function load()
{
	window.document.strForm.submit();
}

