var work = "";
function pick() { 
		   //var URL = window.location.href; // *** get incoming URL ***
		   var A=document.getElementById("ADisplay"); // *** get current object values ***
		   var B=document.getElementById("BDisplay");
		   var C=document.getElementById("CDisplay");
		   A.innerHTML = ADisp; // *** assign global values ABCRates.js file***
		   B.innerHTML = BDisp;
		   C.innerHTML = CDisp;
		   var ARate = ADisp.substring(1) -0; // *** make numeric & strip off '$' ***
		   var BRate = BDisp.substring(1) -0;
		   var CRate = CDisp.substring(1) -0;
		   A.value = ARate;
		   B.value = BRate;
		   C.value = CRate;
		 feet = Gfeet;
		 var af=document.getElementById("Afeet");
		 var afm=document.getElementById("AfeetM");
		 var afa=document.getElementById("AfeetA");
		 af.value = feet;
		 afm.value = Math.round(ARate * feet) / 12;
		 afm.value =  Math.round(afm.value);comma(afm.value);afm.value = "$" + cwork;
		 afa.value = (ARate * feet);
		 afa.value = Math.round(afa.value);comma(afa.value);afa.value = "$" + cwork;

		 var bf=document.getElementById("Bfeet");
		 var bfm=document.getElementById("BfeetM");
		 var bfa=document.getElementById("BfeetA");
		 bf.value = feet;
		 bfm.value = Math.round(BRate * feet) / 12;
		 bfm.value = Math.round(bfm.value);comma(bfm.value);bfm.value = "$" + cwork;
		 bfa.value = (BRate * feet);
		 bfa.value = Math.round(bfa.value);comma(bfa.value);bfa.value = "$" + cwork;

		 var cf=document.getElementById("Cfeet");
		 var cfm=document.getElementById("CfeetM");
		 var cfa=document.getElementById("CfeetA");
		 cf.value = feet;
		 cfm.value = Math.round(CRate * feet) / 12;
		 cfm.value = Math.round(cfm.value);comma(cfm.value);cfm.value = "$" + cwork;
		 cfa.value = (CRate * feet);
		 cfa.value = Math.round(cfa.value);comma(cfa.value);cfa.value = "$" + cwork;
		 comma(af.value);
		 af.value = cwork;
		 bf.value = cwork;
		 cf.value = cwork;
		 
 if(afa.value == "$NaN")
  {
    alert("Error:\nYou may only enter numbers...\nPlease retry");
	af.value = 0;
	bf.value = 0;
	cf.value = 0;
	afa.value = "$0";
	bfa.value = "$0";
	cfa.value = "$0";
	afm.value = "$0";
	bfm.value = "$0";
	cfm.value = "$0";
  }



		 
}
