<!--
//Copyright www.devpronet.net
if (document.images) {
}
function di(id,name){
  if (document.images) {document.images[id].src=eval(name+".src"); }
}

function dm(msgStr) {
  document.returnValue = false;
  if (document.images) { 
     window.status = msgStr;
     document.returnValue = true;
  }
}
var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; Mac_PowerPC)";
function dmim(msgStr) {
  document.returnValue = false;
  if (showMsg) { 
    window.status = msgStr;
    document.returnValue = true;
  }
}

var op1 = 0;
var op2 = 0;
var op = '+';
var point = 0;
var disparait = 1;

function clique( valeur ) {
  if (disparait ==1)	{
	disparait = 0;
	document.francs.euros.value ='';
  }
	document.francs.euros.value += valeur;
}

function poin()	{
   if (point == 0 ) {
	point = 1;
	document.francs.euros.value += '.';
   }
}

function clean() {
 op1 = 0;
 op2 = 0;
 op = '+';
 point = 0;
 document.francs.euros.value = 0;
}

function foc() {
   document.francs.euros.focus();
   document.francs.euros.select();
}

function num_arrondi(n) {
 v=this;
 y=Math.pow(10,n);
 v = Math.round(v*y).toString();
 return v.substring(0,v.length-n) + "." + v.substring(v.length-n);
}

Number.prototype.arrondi = num_arrondi;

function str_Num() {
 return ((this == "")||isNaN(this)) ? 0 : parseFloat(this);
}

String.prototype.Num = str_Num;

function Euro(sens) {
 taux = 0.152449017
 if (sens == 1) taux = 1/taux;
 val = taux * document.francs.euros.value.Num();
 document.francs.euros.value = val.arrondi(4);
 foc();
}
//-->
