/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function convertor_valutar(origin){
    var eq_euro=document.convertor.eq_euro.value;
    var curs=new Array(eq_euro,1,1.40236607292);
    var origin_value=eval('document.convertor.c'+origin+'.value');
    var euro_equivalent=curs[origin];
    var v;
    for(i=0;i<curs.length;i++){
        if(i!=origin){
            v=Math.round(curs[i]*origin_value/euro_equivalent*100)/100;
            v=v+"";
            if(v!="NaN"){
                eval('document.convertor.c'+i+'.value = '+v);
            }
        }
    }
    return true;
}
