//ave. radius = 6371.315//equatorial radius = 6378.388var milesRatio = 1.609344; //km/this = miles...var lbsRatio = 2.222222;var hRatio = 2.54;//var noMetric = true;// var yesMetric = ck.yesMetric=="1"; // now in P.js///////////////////////////////////////////// take kmfunction cDist(dist){	if(yesMetric)	{		//return dist+' km';		return Math.round(dist)+' km'; // no .00	}	else	{		// km to miles		//return Math.round(dist/milesRatio*100)/100+' miles';		return Math.round(dist/milesRatio)+' miles'; // no .00	}}///////////////////////////////////////////function cHeight(h){	if(yesMetric)	{		return h+' cm';	}	else	{		/// cm to feet		//var inches = Math.round(h/hRatio*100)/100;		var inches = Math.round(h/hRatio);		//var inches = Math.round(Math.round(h/hRatio*100)/100);		//alert('inches='+inches);		var i = inches%12;		//alert('i='+i);		return Math.round((inches-i)/12)+"' "+i+'"';	}}///////////////////////////////////////////function cWeight(w){	if(yesMetric)	{		return w+' kg';	}	else	{		/// kg to lbs		//return Math.round(w*lbsRatio*100)/100+' lbs';		return Math.round(w*lbsRatio)+' lbs'; // no .00	}}///////////////////////////////////////////