function changePostCodeCountry(val) {
  new Ajax.Request('/fr/users/select_postcode_by_country', {asynchronous:true, evalScripts:true, parameters:'country='
      + encodeURIComponent($(val+'_country').value)
      + '&addr='+val});
}

function copyBillingAddress() {
  var street = $('billing_street');
  var country = $('billing_country');
  var postcode = $('billing_postcode');
  var society = $('billing_society');
  
  if ($('copy_billing').checked) {
    var delivery_postcode = $('delivery_postcode');
    street.value          = $('delivery_street').value;
    country.value         = $('delivery_country').value;
    society.value         = $('delivery_society').value;
    
    postcode.options.length=0
    for (i=0; i<delivery_postcode.options.length; i++) {
      postcode.options[postcode.options.length]=new Option(delivery_postcode[i].text, delivery_postcode[i].value)
    }
    postcode.value      = delivery_postcode.value;
  }
}

function FonctionLogin() {
    
  if (document.getElementById("login").value=='Identifiant')
      {document.getElementById("login").value=''}
}

function FonctionPass() {
    
 if (document.getElementById("password").value=='******')
      {document.getElementById("password").value=''}
}