function compute(obj) {

if ( obj.ORD_Weeks.value * 1.0 <= 2 ) 
		{ obj.phone_total.value = moneyFormat(39.00 * 1.0) }
else
		{ obj.phone_total.value = moneyFormat(39.00 * 1.0 +  8.00 * (obj.ORD_Weeks.value - 2) ) }

var total = obj.phone_total.value * 1.0

obj.AMT.value = moneyFormat(total)
}

function moneyFormat(s)
{  
  s *= 100                    // convert float to integer  
  s = Math.round(s)           // correct Javascript math errors  
  s /= 100                    // convert back to dollars and cents  
  s += ""                     // convert to string  
  if (s.indexOf(".") == -1)   // is there a decimal point?
    s += ".00"                // if not, append one
  else                        // append zeroes (5 becomes 5.00)  
    s += "00"  
  return(s.substring(0,s.indexOf(".")+3)) // only 2 cents digits
}