function MICWeight() {
   this.Kiloton1=1.0e+6;
   this.Ton1=1.0e+3;
   this.Hundredweight1=100.0;
   this.Kilogram1=1.0;
   this.Newton1=0.10204;
   this.Gram1=1.0e-3;
   this.Carat1=2.0e-4;
   this.Milligram1=1.0e-6;
   this.Long_ton2=1.016e+3;
   this.Short_ton2=0.907e+3;
   this.Long_hundredweight2=50.802;
   this.Short_hundredweight2=45.359;
   this.Stone2=6.356;
   this.Pound2=0.454;
   this.Ounce2=28.350e-3;
   this.Dram2=1.772e-3;
   this.Grain2=0.0648e-3;
   this.Pound3=0.373;
   this.Ounce3=31.103e-3;
   this.Pennyweight3=1.555e-3;
   this.Carat3=0.2592e-4;
   this.Dyne3=0.001;
   this.Grain3=0.0648e-3;
   this.Pound4=0.373
   this.Ounce4=31.103e-3
   this.Dram4=3.888e-3
   this.Scruple4=1.296e-3
   this.Grain4=0.0648e-3
   this.Pood5=16
   this.Pound5=0.409
   this.Lot5=0.01278
   this.Zolotnik5=4.2604e-3
   this.Dolya5=4.4379e-5
}
data = new MICWeight();
function compute(obj,val) {
	if (obj[val].value) {
		var uval=0;
		uval = obj[val].value*data[val];
		for (var i in data)
			obj[i].value=normalize(uval/data[i],8);
	}
}

