- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
curEl.change(function (e) {
switch(current_c){
case '1': l = 0.001; break;
case '2': l = 0.001; break;
case '3': l = 1 ; break;
}
switch(curEl.val()){
case '1': l2 = 0.001; break;
case '2': l2 = 0.001; break;
case '3': l2 = 1 ; break;
}
convfrom = parseFloat((curr[current_c]/curr[curEl.val()]) *from.val() * (l/l2));
convto = parseFloat((curr[current_c]/curr[curEl.val()])*to.val()*(l/l2));
if(from.val()!='') from.val(convfrom);
if(to.val()!='') to.val(convto);
from.focus();
});
Oleg_quadro 29.10.2009 11:53 # +2
guest 06.11.2009 07:20 # 0