RateCAD = '1.0878';
RateEUR = '1.5598';
RateGBP = '2.3147';
RateUSD = '1.2262';
RateSEK = '0.16909';
RateNOK = '0.19443';
RateDKK = '0.20905';
RateJPY = '0.0105';
RateHKD = '0.1572';
RateAUD = '0.9429';
RateZAR = '0.1778';

function EditChf() {
InputChf = document.chfconv.Chf.value;
document.chfconv.CAD.value = parseInt(InputChf/RateCAD*100000)/100000;
document.chfconv.EUR.value = parseInt(InputChf/RateEUR*100000)/100000;
document.chfconv.GBP.value = parseInt(InputChf/RateGBP*100000)/100000;
document.chfconv.USD.value = parseInt(InputChf/RateUSD*100000)/100000;
document.chfconv.SEK.value = parseInt(InputChf/RateSEK*100000)/100000;
document.chfconv.NOK.value = parseInt(InputChf/RateNOK*100000)/100000;
document.chfconv.DKK.value = parseInt(InputChf/RateDKK*100000)/100000;
document.chfconv.JPY.value = parseInt(InputChf/RateJPY*100000)/100000;
document.chfconv.HKD.value = parseInt(InputChf/RateHKD*100000)/100000;
document.chfconv.AUD.value = parseInt(InputChf/RateAUD*100000)/100000;
document.chfconv.ZAR.value = parseInt(InputChf/RateZAR*100000)/100000;
}
function EditCAD() {
InputChange = document.chfconv.CAD.value;
RateChange = RateCAD;
document.chfconv.Chf.value = parseInt(InputChange*RateChange*100000)/100000;
document.chfconv.EUR.value = parseInt(InputChange/RateEUR*RateChange*100000)/100000;
document.chfconv.GBP.value = parseInt(InputChange/RateGBP*RateChange*100000)/100000;
document.chfconv.USD.value = parseInt(InputChange/RateUSD*RateChange*100000)/100000;
document.chfconv.SEK.value = parseInt(InputChange/RateSEK*RateChange*100000)/100000;
document.chfconv.NOK.value = parseInt(InputChange/RateNOK*RateChange*100000)/100000;
document.chfconv.DKK.value = parseInt(InputChange/RateDKK*RateChange*100000)/100000;
document.chfconv.JPY.value = parseInt(InputChange/RateJPY*RateChange*100000)/100000;
document.chfconv.HKD.value = parseInt(InputChange/RateHKD*RateChange*100000)/100000;
document.chfconv.AUD.value = parseInt(InputChange/RateAUD*RateChange*100000)/100000;
document.chfconv.ZAR.value = parseInt(InputChange/RateZAR*RateChange*100000)/100000;
}
function EditEUR() {
InputChange = document.chfconv.EUR.value;
RateChange = RateEUR;
document.chfconv.Chf.value = parseInt(InputChange*RateChange*100000)/100000;
document.chfconv.CAD.value = parseInt(InputChange/RateCAD*RateChange*100000)/100000;
document.chfconv.GBP.value = parseInt(InputChange/RateGBP*RateChange*100000)/100000;
document.chfconv.USD.value = parseInt(InputChange/RateUSD*RateChange*100000)/100000;
document.chfconv.SEK.value = parseInt(InputChange/RateSEK*RateChange*100000)/100000;
document.chfconv.NOK.value = parseInt(InputChange/RateNOK*RateChange*100000)/100000;
document.chfconv.DKK.value = parseInt(InputChange/RateDKK*RateChange*100000)/100000;
document.chfconv.JPY.value = parseInt(InputChange/RateJPY*RateChange*100000)/100000;
document.chfconv.HKD.value = parseInt(InputChange/RateHKD*RateChange*100000)/100000;
document.chfconv.AUD.value = parseInt(InputChange/RateAUD*RateChange*100000)/100000;
document.chfconv.ZAR.value = parseInt(InputChange/RateZAR*RateChange*100000)/100000;
}
function EditGBP() {
InputChange = document.chfconv.GBP.value;
RateChange = RateGBP;
document.chfconv.Chf.value = parseInt(InputChange*RateChange*100000)/100000;
document.chfconv.CAD.value = parseInt(InputChange/RateCAD*RateChange*100000)/100000;
document.chfconv.EUR.value = parseInt(InputChange/RateEUR*RateChange*100000)/100000;
document.chfconv.USD.value = parseInt(InputChange/RateUSD*RateChange*100000)/100000;
document.chfconv.SEK.value = parseInt(InputChange/RateSEK*RateChange*100000)/100000;
document.chfconv.NOK.value = parseInt(InputChange/RateNOK*RateChange*100000)/100000;
document.chfconv.DKK.value = parseInt(InputChange/RateDKK*RateChange*100000)/100000;
document.chfconv.JPY.value = parseInt(InputChange/RateJPY*RateChange*100000)/100000;
document.chfconv.HKD.value = parseInt(InputChange/RateHKD*RateChange*100000)/100000;
document.chfconv.AUD.value = parseInt(InputChange/RateAUD*RateChange*100000)/100000;
document.chfconv.ZAR.value = parseInt(InputChange/RateZAR*RateChange*100000)/100000;
}
function EditUSD() {
InputChange = document.chfconv.USD.value;
RateChange = RateUSD;
document.chfconv.Chf.value = parseInt(InputChange*RateChange*100000)/100000;
document.chfconv.CAD.value = parseInt(InputChange/RateCAD*RateChange*100000)/100000;
document.chfconv.EUR.value = parseInt(InputChange/RateEUR*RateChange*100000)/100000;
document.chfconv.GBP.value = parseInt(InputChange/RateGBP*RateChange*100000)/100000;
document.chfconv.SEK.value = parseInt(InputChange/RateSEK*RateChange*100000)/100000;
document.chfconv.NOK.value = parseInt(InputChange/RateNOK*RateChange*100000)/100000;
document.chfconv.DKK.value = parseInt(InputChange/RateDKK*RateChange*100000)/100000;
document.chfconv.JPY.value = parseInt(InputChange/RateJPY*RateChange*100000)/100000;
document.chfconv.HKD.value = parseInt(InputChange/RateHKD*RateChange*100000)/100000;
document.chfconv.AUD.value = parseInt(InputChange/RateAUD*RateChange*100000)/100000;
document.chfconv.ZAR.value = parseInt(InputChange/RateZAR*RateChange*100000)/100000;
}
function EditSEK() {
InputChange = document.chfconv.SEK.value;
RateChange = RateSEK;
document.chfconv.Chf.value = parseInt(InputChange*RateChange*100000)/100000;
document.chfconv.CAD.value = parseInt(InputChange/RateCAD*RateChange*100000)/100000;
document.chfconv.EUR.value = parseInt(InputChange/RateEUR*RateChange*100000)/100000;
document.chfconv.GBP.value = parseInt(InputChange/RateGBP*RateChange*100000)/100000;
document.chfconv.USD.value = parseInt(InputChange/RateUSD*RateChange*100000)/100000;
document.chfconv.NOK.value = parseInt(InputChange/RateNOK*RateChange*100000)/100000;
document.chfconv.DKK.value = parseInt(InputChange/RateDKK*RateChange*100000)/100000;
document.chfconv.JPY.value = parseInt(InputChange/RateJPY*RateChange*100000)/100000;
document.chfconv.HKD.value = parseInt(InputChange/RateHKD*RateChange*100000)/100000;
document.chfconv.AUD.value = parseInt(InputChange/RateAUD*RateChange*100000)/100000;
document.chfconv.ZAR.value = parseInt(InputChange/RateZAR*RateChange*100000)/100000;
}
function EditNOK() {
InputChange = document.chfconv.NOK.value;
RateChange = RateNOK;
document.chfconv.Chf.value = parseInt(InputChange*RateChange*100000)/100000;
document.chfconv.CAD.value = parseInt(InputChange/RateCAD*RateChange*100000)/100000;
document.chfconv.EUR.value = parseInt(InputChange/RateEUR*RateChange*100000)/100000;
document.chfconv.GBP.value = parseInt(InputChange/RateGBP*RateChange*100000)/100000;
document.chfconv.USD.value = parseInt(InputChange/RateUSD*RateChange*100000)/100000;
document.chfconv.SEK.value = parseInt(InputChange/RateSEK*RateChange*100000)/100000;
document.chfconv.DKK.value = parseInt(InputChange/RateDKK*RateChange*100000)/100000;
document.chfconv.JPY.value = parseInt(InputChange/RateJPY*RateChange*100000)/100000;
document.chfconv.HKD.value = parseInt(InputChange/RateHKD*RateChange*100000)/100000;
document.chfconv.AUD.value = parseInt(InputChange/RateAUD*RateChange*100000)/100000;
document.chfconv.ZAR.value = parseInt(InputChange/RateZAR*RateChange*100000)/100000;
}
function EditDKK() {
InputChange = document.chfconv.DKK.value;
RateChange = RateDKK;
document.chfconv.Chf.value = parseInt(InputChange*RateChange*100000)/100000;
document.chfconv.CAD.value = parseInt(InputChange/RateCAD*RateChange*100000)/100000;
document.chfconv.EUR.value = parseInt(InputChange/RateEUR*RateChange*100000)/100000;
document.chfconv.GBP.value = parseInt(InputChange/RateGBP*RateChange*100000)/100000;
document.chfconv.USD.value = parseInt(InputChange/RateUSD*RateChange*100000)/100000;
document.chfconv.SEK.value = parseInt(InputChange/RateSEK*RateChange*100000)/100000;
document.chfconv.NOK.value = parseInt(InputChange/RateNOK*RateChange*100000)/100000;
document.chfconv.JPY.value = parseInt(InputChange/RateJPY*RateChange*100000)/100000;
document.chfconv.HKD.value = parseInt(InputChange/RateHKD*RateChange*100000)/100000;
document.chfconv.AUD.value = parseInt(InputChange/RateAUD*RateChange*100000)/100000;
document.chfconv.ZAR.value = parseInt(InputChange/RateZAR*RateChange*100000)/100000;
}
function EditJPY() {
InputChange = document.chfconv.JPY.value;
RateChange = RateJPY;
document.chfconv.Chf.value = parseInt(InputChange*RateChange*100000)/100000;
document.chfconv.CAD.value = parseInt(InputChange/RateCAD*RateChange*100000)/100000;
document.chfconv.EUR.value = parseInt(InputChange/RateEUR*RateChange*100000)/100000;
document.chfconv.GBP.value = parseInt(InputChange/RateGBP*RateChange*100000)/100000;
document.chfconv.USD.value = parseInt(InputChange/RateUSD*RateChange*100000)/100000;
document.chfconv.SEK.value = parseInt(InputChange/RateSEK*RateChange*100000)/100000;
document.chfconv.NOK.value = parseInt(InputChange/RateNOK*RateChange*100000)/100000;
document.chfconv.DKK.value = parseInt(InputChange/RateDKK*RateChange*100000)/100000;
document.chfconv.HKD.value = parseInt(InputChange/RateHKD*RateChange*100000)/100000;
document.chfconv.AUD.value = parseInt(InputChange/RateAUD*RateChange*100000)/100000;
document.chfconv.ZAR.value = parseInt(InputChange/RateZAR*RateChange*100000)/100000;
}
function EditHKD() {
InputChange = document.chfconv.HKD.value;
RateChange = RateHKD;
document.chfconv.Chf.value = parseInt(InputChange*RateChange*100000)/100000;
document.chfconv.CAD.value = parseInt(InputChange/RateCAD*RateChange*100000)/100000;
document.chfconv.EUR.value = parseInt(InputChange/RateEUR*RateChange*100000)/100000;
document.chfconv.GBP.value = parseInt(InputChange/RateGBP*RateChange*100000)/100000;
document.chfconv.USD.value = parseInt(InputChange/RateUSD*RateChange*100000)/100000;
document.chfconv.SEK.value = parseInt(InputChange/RateSEK*RateChange*100000)/100000;
document.chfconv.NOK.value = parseInt(InputChange/RateNOK*RateChange*100000)/100000;
document.chfconv.DKK.value = parseInt(InputChange/RateDKK*RateChange*100000)/100000;
document.chfconv.JPY.value = parseInt(InputChange/RateJPY*RateChange*100000)/100000;
document.chfconv.AUD.value = parseInt(InputChange/RateAUD*RateChange*100000)/100000;
document.chfconv.ZAR.value = parseInt(InputChange/RateZAR*RateChange*100000)/100000;
}
function EditAUD() {
InputChange = document.chfconv.AUD.value;
RateChange = RateAUD;
document.chfconv.Chf.value = parseInt(InputChange*RateChange*100000)/100000;
document.chfconv.CAD.value = parseInt(InputChange/RateCAD*RateChange*100000)/100000;
document.chfconv.EUR.value = parseInt(InputChange/RateEUR*RateChange*100000)/100000;
document.chfconv.GBP.value = parseInt(InputChange/RateGBP*RateChange*100000)/100000;
document.chfconv.USD.value = parseInt(InputChange/RateUSD*RateChange*100000)/100000;
document.chfconv.SEK.value = parseInt(InputChange/RateSEK*RateChange*100000)/100000;
document.chfconv.NOK.value = parseInt(InputChange/RateNOK*RateChange*100000)/100000;
document.chfconv.DKK.value = parseInt(InputChange/RateDKK*RateChange*100000)/100000;
document.chfconv.JPY.value = parseInt(InputChange/RateJPY*RateChange*100000)/100000;
document.chfconv.HKD.value = parseInt(InputChange/RateHKD*RateChange*100000)/100000;
document.chfconv.ZAR.value = parseInt(InputChange/RateZAR*RateChange*100000)/100000;
}
function EditZAR() {
InputChange = document.chfconv.ZAR.value;
RateChange = RateZAR;
document.chfconv.Chf.value = parseInt(InputChange*RateChange*100000)/100000;
document.chfconv.CAD.value = parseInt(InputChange/RateCAD*RateChange*100000)/100000;
document.chfconv.EUR.value = parseInt(InputChange/RateEUR*RateChange*100000)/100000;
document.chfconv.GBP.value = parseInt(InputChange/RateGBP*RateChange*100000)/100000;
document.chfconv.USD.value = parseInt(InputChange/RateUSD*RateChange*100000)/100000;
document.chfconv.SEK.value = parseInt(InputChange/RateSEK*RateChange*100000)/100000;
document.chfconv.NOK.value = parseInt(InputChange/RateNOK*RateChange*100000)/100000;
document.chfconv.DKK.value = parseInt(InputChange/RateDKK*RateChange*100000)/100000;
document.chfconv.JPY.value = parseInt(InputChange/RateJPY*RateChange*100000)/100000;
document.chfconv.HKD.value = parseInt(InputChange/RateHKD*RateChange*100000)/100000;
document.chfconv.AUD.value = parseInt(InputChange/RateAUD*RateChange*100000)/100000;
}