function changeAddWaistInches()
  {
    var cm = document.getElementById("addwaistcm").value;
    var inches = cm / 2.54;
    inches = inches * 100;
    inches = Math.round(inches);
    inches = inches / 100;
    document.addwaist.addwaistinches.value = inches;
  }

function changeAddWaistCm()
  {
    var inches = document.getElementById("addwaistinches").value;
    inches = inches / 1;
    var cm = inches * 2.54;
    var roundcm = cm * 100;
    roundcm = Math.round(roundcm);
    roundcm = roundcm / 100;
    document.addwaist.addwaistcm.value = roundcm;
  }

function changeAddHipInches()
  {
    var cm = document.getElementById("addhipcm").value;
    var inches = cm / 2.54;
    inches = inches * 100;
    inches = Math.round(inches);
    inches = inches / 100;
    document.addwaist.addhipinches.value = inches;
  }

function changeAddHipCm()
  {
    var inches = document.getElementById("addhipinches").value;
    inches = inches / 1;
    var cm = inches * 2.54;
    var roundcm = cm * 100;
    roundcm = Math.round(roundcm);
    roundcm = roundcm / 100;
    document.addwaist.addhipcm.value = roundcm;
  }



function changeEditWaistInches()
  {
    var cm = document.getElementById("editwaistcm").value;
    var inches = cm / 2.54;
    inches = inches * 100;
    inches = Math.round(inches);
    inches = inches / 100;
    document.editwaist.editwaistinches.value = inches;
  }

function changeEditWaistCm()
  {
    var inches = document.getElementById("editwaistinches").value;
    inches = inches / 1;
    var cm = inches * 2.54;
    var roundcm = cm * 100;
    roundcm = Math.round(roundcm);
    roundcm = roundcm / 100;
    document.editwaist.editwaistcm.value = roundcm;
  }

function changeEditHipInches()
  {
    var cm = document.getElementById("edithipcm").value;
    var inches = cm / 2.54;
    inches = inches * 100;
    inches = Math.round(inches);
    inches = inches / 100;
    document.editwaist.edithipinches.value = inches;
  }

function changeEditHipCm()
  {
    var inches = document.getElementById("edithipinches").value;
    inches = inches / 1;
    var cm = inches * 2.54;
    var roundcm = cm * 100;
    roundcm = Math.round(roundcm);
    roundcm = roundcm / 100;
    document.editwaist.edithipcm.value = roundcm;
  }
