function initRateCalc() {
  if (dojo.byId("ConfirmMessage")) {
    v = dojo.byId("ConfirmMessage").value;
    if (confirm(v)) 
      location.href="index.cfml?usage=" + dojo.byId("usage").value + "&CustType=" + dojo.byId("custtype").value + "&mtr=" + dojo.byId("mtr").value + "&NumDays=" + dojo.byId("numdays").value + "&skip=1";
   else
      location.href="index.cfml?usage=" + dojo.byId("usage").value + "&CustType=" + dojo.byId("custtype").value + "&mtr=" + dojo.byId("mtr").value + "&NumDays=" + dojo.byId("numdays").value + "&cancel=1";
  }	  
  // Take the border off of the image, since popchart is too stupid to allow classes.
  if (dojo.byId("RateCalcImage")) 
   dojo.addClass(dojo.byId("RateCalcImage").getElementsByTagName("img")[0], "NoBorder");
}
