function convert(f) {
  f.kb.value=Math.round(f.byte.value/1024*100000)/100000
  f.mb.value=Math.round(f.byte.value/1048576*100000)/100000
  f.gb.value=Math.round(f.byte.value/1073741824*100000)/100000
  f.tb.value=Math.round(f.byte.value/1099511627776*100000)/100000
}

function convertkb(f) {
  f.byte.value=Math.round(f.kb.value*1024*100000)/100000
  f.mb.value=Math.round(f.kb.value/1024*100000)/100000
  f.gb.value=Math.round(f.kb.value/1048576*100000)/100000
  f.tb.value=Math.round(f.kb.value/1073741824*100000)/100000
  
}

function convertmb(f) {
  f.byte.value=Math.round(f.mb.value*1048576*100000)/100000
  f.kb.value=Math.round(f.mb.value*1024*100000)/100000
  f.gb.value=Math.round(f.mb.value/1024*100000)/100000
  f.tb.value=Math.round(f.mb.value/1048576*100000)/100000
}

function convertgb(f) {
  f.byte.value=Math.round(f.gb.value*1073741824*100000)/100000
  f.kb.value=Math.round(f.gb.value*1048576*100000)/100000
  f.mb.value=Math.round(f.gb.value*1024*100000)/100000
  f.tb.value=Math.round(f.gb.value/1024*100000)/100000
}

function converttb(f) {
  f.byte.value=Math.round(f.tb.value*1099511627776*100000)/100000
  f.kb.value=Math.round(f.tb.value*1073741824*100000)/100000
  f.mb.value=Math.round(f.tb.value*1048576*100000)/100000
  f.gb.value=Math.round(f.tb.value/1024*100000)/100000
}