function ActivateOnCheckbox(ThisObject, What)
	{
	if (ThisObject.checked == false)
		{
		What.disabled = true;
		What.style.backgroundColor = "#CCCCCC";
		}
	else
		{
		What.disabled = false;
		What.style.backgroundColor = "#FFFFFF";
		}
	}
	
function CopyDeliveryToBilling(ThisObject, What, prof) {
	if (ThisObject.checked == true) {
		What.civiliteFact.selectedIndex = What.civilite.selectedIndex;
		What.nomFact.value = What.nom.value;
		What.prenomFact.value = What.prenom.value;
		What.adresse1Fact.value = What.adresse1.value;
		What.adresse2Fact.value = What.adresse2.value;
		What.code_postalFact.value = What.code_postal.value;
		What.villeFact.value = What.ville.value;
		What.paysFact.value = What.pays.value;
		What.telFact.value = What.tel.value;
		What.portableFact.value = What.portable.value;
		What.faxFact.value = What.fax.value;
		if (prof==1) {
			What.organisationFact.value = What.organisation.value;
			What.serviceFact.value = What.service.value;
			What.fonctionFact.value = What.fonction.value;
			What.urlFact.value = What.url.value;
		}
	}
}
	
	