function opnradio(URL,w,h)
{
if(!w||w<400)w=400;
if(!h||h<270)h=270;
www=window.open( URL,'aodwpl','width='+w+',height='+h+',top=0,toolbar=no,personalbar=no,location=no,scrolling=no,directories=no,statusbar=no,menubar=no,status=no,resizable=no,left=60,screenX=60,top=100,screenY=100' );
}

function reset(){
document.calcul.dol.value=0;
document.calcul.dol1.value=0;
document.calcul.euro.value=0;
document.calcul.euro1.value=0;
document.calcul.rub.value=0;
document.calcul.rub1.value=0;
}
function round(number){
var dec=3;
return Math.round(number*Math.pow(10,dec))/Math.pow(10,dec);
}
function recalcul_dol(){
var d=document.calcul.dol.value;
var e=round(d*pusd/peuro);
var r=round(d*pusd);
document.calcul.euro.value=e;
document.calcul.rub.value=r;
}
function recalcul_dol1(){
var d1=document.calcul.dol1.value;
var e1=round(d1*kusd/kevro);
var r1=round(d1*kusd);
document.calcul.euro1.value=e1;
document.calcul.rub1.value=r1;
}
function recalcul_euro(){
var e=document.calcul.euro.value;
var d=round(e*peuro/pusd);
var r=round(e*peuro);
document.calcul.dol.value=d;
document.calcul.rub.value=r;
}
function recalcul_euro1(){
var e1=document.calcul.euro1.value;
var d1=round(e1*kevro/kusd);
var r1=round(e1*kevro);
document.calcul.dol1.value=d1;
document.calcul.rub1.value=r1;
}

function recalcul_rub(){
var r=document.calcul.rub.value;
var d=round(r/pusd);
var e=round(r/peuro);
document.calcul.dol.value=d;
document.calcul.euro.value=e;
}

function recalcul_rub1(){
var r1=document.calcul.rub1.value;
var d1=round(r1/kusd);
var e1=round(r1/kevro);
document.calcul.dol1.value=d1;
document.calcul.euro1.value=e1;
}
