function UnitKs (unitKsIn,unitKs)
{
  var ucfKs = 1;

  if (unitKs=="ft/day")
   {
    if (unitKsIn=="ft/day") ucfKs = 1;
    if (unitKsIn=="m/day") ucfKs = 1/.3048;
    if (unitKsIn=="ft/min") ucfKs = 60*24;
    if (unitKsIn=="cm/sec") ucfKs = (3600/12)*(24/2.54);
    if (unitKsIn=="gal/day/ft2") ucfKs = 1/7.48;
   }
 if (unitKs=="m/day")
   {
    if (unitKsIn=="ft/day") ucfKs = .3048;
    if (unitKsIn=="m/day") ucfKs = 1;
    if (unitKsIn=="ft/min") ucfKs = 0.3048*60*24;
    if (unitKsIn=="cm/sec") ucfKs = (3600/100)*24;
    if (unitKsIn=="gal/day/ft2") ucfKs = 0.3048/7.48;
   }
 if (unitKs=="ft/min")
   {
    if (unitKsIn=="ft/day") ucfKs = 1/60/24;
    if (unitKsIn=="m/day") ucfKs = 1/.3048/60/24;
    if (unitKsIn=="ft/min") ucfKs = 1;
    if (unitKsIn=="cm/sec") ucfKs = 60/(12*2.54);
    if (unitKsIn=="gal/day/ft2") ucfKs = 1/7.48/24/60;
   }
 if (unitKs=="cm/sec")
   {
    if (unitKsIn=="ft/day") ucfKs = (12/3600)*(2.54/24);
    if (unitKsIn=="m/day") ucfKs = (100/3600)/24;
    if (unitKsIn=="ft/min") ucfKs = (12/60)*2.54;
    if (unitKsIn=="cm/sec") ucfKs = 1;
    if (unitKsIn=="gal/day/ft2") ucfKs = (12/3600)*(2.54/24)/7.48;
   }
 if (unitKs=="gal/day/ft2")
   {
    if (unitKsIn=="ft/day") ucfKs = 7.48;
    if (unitKsIn=="m/day") ucfKs = 7.48/0.3048;
    if (unitKsIn=="ft/min") ucfKs = 7.48*60*24;
    if (unitKsIn=="cm/sec") ucfKs = 7.48*(3600/12)*(24/2.54);
    if (unitKsIn=="gal/day/ft2") ucfKs = 1;
   }


  return ucfKs;
}

