﻿var prixusd;
var prixcad;
var prixaud;
var prixeur;
var prixyen;
var prixgbp;

var tauxusd=1.5;  //1.4144;
var tauxcad=1.6;  //1.503;
var tauxaud=1.8;  //1.7387;
var tauxyen=153;  //152.9;
var tauxgbp=0.9;  //0.803;
var euro=new Array(8,15,44,85);


function checksel(index)
{


document.selection.item_name.value="MULTICAM ALARME (REF:CODE2000)";
document.form1.choixversion.value=document.selection.item_name.value;
prixeur="39";



prixusd=Math.round(prixeur*tauxusd+0.5);
prixcad=Math.round(prixeur*tauxcad+0.5);
prixaud=Math.round(prixeur*tauxaud+0.5);
prixyen=Math.round(prixeur*tauxyen+0.5);
prixgbp=Math.round(prixeur*tauxgbp+0.5);



var indice_selectionne=document.selection.choix.selectedIndex;
var chango=document.selection.choix.options[indice_selectionne].value;

switch (chango)
{

case "EUR":
document.selection.amount.value=prixeur;
document.selection.texter.value="Prix:  "+prixeur+" €";
document.selection.currency_code.value="EUR";
break;

case "CAD":
document.selection.amount.value=prixcad;
document.selection.texter.value="Prix:  $"+prixcad;
document.selection.currency_code.value="CAD";
break;

case "USD":
document.selection.amount.value=prixusd;
document.selection.texter.value="Prix:  $"+prixusd;
document.selection.currency_code.value="USD";
break;

case "AUD":
document.selection.amount.value=prixaud;
document.selection.texter.value="Prix:  $"+prixaud;
document.selection.currency_code.value="AUD";
break;

case "GBP":
document.selection.amount.value=prixgbp;
document.selection.texter.value="Prix:  £"+prixgbp;
document.selection.currency_code.value="GBP";
break;

case "JPY":
document.selection.amount.value=prixyen;
document.selection.texter.value="Prix:  ¥"+prixyen;
document.selection.currency_code.value="JPY";
break;

default:document.selection.texter.value="39 €";

}

}







