//****************************************************
//   Measurement Convertion functions
//   Update inches or Cm feilds for mesurments section
//***************************************************
// Version   Date      Description
//---------------------------------------------------
//   1.0    10/05/08   Original version to do cm to
//                     inches calculations & vice-versa
//                     setting target field.
//****************************************************
function updateinches(sourceid,targetid)
{
  var cmvalue = document.getElementById(sourceid).value
  var inchvalue = cmvalue / 2.54
  inchvalue = Math.round(inchvalue * 10) / 10
  document.getElementById(targetid).value = inchvalue 
}

function updatecm(sourceid,targetid)
{
  var inchvalue = document.getElementById(sourceid).value
  var cmvalue = inchvalue * 2.54
  cmvalue = Math.round(cmvalue * 10) / 10
  document.getElementById(targetid).value = cmvalue 
}
//****************************************************
//   end of mesurement update section
//****************************************************

