function stripChar(item) {
item = item.replace(",","");
item = item.replace("$","");
item = item.replace("%","");
return item;
}
function getPayment(cash,rate,term,price,returnto) {
cash=stripChar(cash);
rate=stripChar(rate);
total=(price-cash);

 
something = Math.pow((1+(rate/ 1200)),(term)); 
payment = ((total * something)*(rate/1200)/(something - 1))  ; 
payment =(Math.round(payment*100)/100);
document.getElementById(returnto).innerHTML="$"+payment+"/month";
}
