function eurfr(x){
  p=x.indexOf(",",0);if ( p > -1){x=x.substring(0,p)+"."+x.substring(p+1,20)};
  y=Number(x);var z;
 if (! isNaN(y)){
    y=y* 655.957;z=Math.round(y); z=z/100;return z;
  }else{
    alert("attention, caractères non numériques ! recommencez SVP");return 0;
  }
}
    
   
function freur(x){
  p=x.indexOf(",",0);if ( p > -1){x=x.substring(0,p)+"."+x.substring(p+1,20)};
  y=Number(x);var z;
 if (! isNaN(y)){
    z=100*y/ 6.55957;z=Math.round(z);z=z/100;return z;
  }else{
    alert("attention, caractères non numériques ! recommencez SVP");return 0;
  }
}

function conv(x){
  if (x==0){document.forms[1].elements[1].value=eurfr(document.forms[1].elements[0].value)}
  else if(x==1){document.forms[1].elements[0].value=freur(document.forms[1].elements[1].value)}
 }



//alert(Math.round(655,9))




