

function compute(form){
var king=form.king.value*150;
var queen=form.queen.value*100;
var lcouch=form.lcouch.value*100;
var couch=form.couch.value*50;
var d_chair=form.d_chair.value*10;
var schair=form.schair.value*5;
var re_chair=form.re_chair.value*25;
var c_table=form.c_table.value*30;
var e_table=form.e_table.value*10;
var bureau=form.bureau.value*40;
var chests=form.chests.value*40;

var sm_box=form.sm_box.value*4;
var med_box=form.med_box.value*6;
var big_box=form.big_box.value*8;
var big_tv=form.big_tv.value*15;
var med_tv=form.med_tv.value*5;
var stereo=form.stereo.value*10;
var pc=form.pc.value*8;
var frig=form.frig.value*30;
var lfrig=form.lfrig.value*60;
var file2=form.file2.value*7;
var file4=form.file4.value*15;
var ldesk=form.ldesk.value*100;
var sdesk=form.sdesk.value*50;
var lchair=form.lchair.value*20;
var smchair=form.smchair.value*10;
var shelves=form.shelves.value*75;
var ntable=form.ntable.value*20;
var hamper=form.hamper.value*10;
var lamp=form.lamp.value*10;
var theater=form.theater.value*75;
var cedar=form.cedar.value*30;
var cart=form.cart.value*10;
var micro=form.micro.value*5;
var bicycle=form.bicycle.value*20;
var golf=form.golf.value*15;
var picnic=form.picnic.value*40;
var pc2=form.pc2.value*10;

var other=form.other.value*1;

var ans1 = stereo+queen+king+sm_box+med_box+big_box+bureau+d_chair+schair+re_chair+chests+pc+couch+lcouch+frig+lfrig+c_table+big_tv+med_tv+e_table+file2+file4+sdesk+ldesk+lchair+smchair+shelves+ntable+hamper+lamp+theater+cedar+cart+micro+bicycle+golf+picnic+pc2+other;
var ans = ans1
var answer = 0;
var disclaimer = ""
var begin = "Your answers indicate that you need approximately "
var after = "storage unit would be adequate for your storage needs."

if ((ans<=150) && (ans>=1)) {answer = "" + begin + ans + " total cubic feet of storage. This means that a 5x5 " + after + disclaimer}
else if ((ans<=300) && (ans>=151)) {answer = "" + begin + ans + " total cubic feet of storage. This means that a 5x10 " + after + disclaimer}
else if ((ans<=450) && (ans>=301)) {answer = "" + begin + ans + " total cubic feet of storage. This means that a 5x15 " + after + disclaimer}
else if ((ans<=600) && (ans>=451)) {answer = "" + begin + ans + " total cubic feet of storage. This means that a 10x10 " + after + disclaimer}
else if ((ans<=900) && (ans>=601)) {answer = "" + begin + ans + " total cubic feet of storage. This means that a 10x15 " + after + disclaimer}
else if ((ans<=1100) && (ans>=901)) {answer = "" + begin + ans + " total cubic feet of storage. This means that a 10x20 " + after + disclaimer}
else if ((ans<=1500) && (ans>=1101)) {answer = "" + begin + ans + " total cubic feet of storage. This means that a 10x25 " + after + disclaimer}
else if ((ans<=1800) && (ans>=1501)) {answer = "" + begin + ans + " total cubic feet of storage. This means that a 10x30 or 15x20 " + after + disclaimer}
else if ((ans<=2400) && (ans>=1801)) {answer = "" + begin + ans + " total cubic feet of storage. This means that a 10x30 or 15x20 " + after + disclaimer}
else if (ans>=2401) {answer = "Unfortunately, your space needs exceed the size of one of our individual storage units.  However, if you contact one of our managers, we will work with you to find a solution suitable to your needs."}
else if (ans==0) {answer = "0"}
else {answer = "Please contact our managers to find a more suitable solution"}

form.ans.value = answer;

return;
}
