//Written by Manuel Villanueva 11/28/04, update 4/27/05, update 9/10/07
function doIt(form) {
//cut offs: plan1(2 max)=2, plan1=4, plan2=6, plan3=8, plan4=11, plan5=14, plan6=17, plan7=20 plan8=23
//max: 	plan1(2 max)=50, plan1=15, plan2=20, plan3=25, plan4=30, plan5=35, plan6=40, plan7=45 plan8=50
var futureDVD = form.futureNumber.value;
var pastDVD = form.pastNumber.value;

var plan1 =  4.99 / futureDVD;
var plan1b = 8.99 / futureDVD;
var plan2 = 13.99 / futureDVD;
var plan3 = 16.99 / futureDVD;
var plan4 = 23.99 / futureDVD;
var plan5 = 29.99 / futureDVD;
var plan6 = 35.99 / futureDVD;
var plan7 = 41.99 / futureDVD;
var plan8 = 47.99 / futureDVD;

var plan1P =  4.99 / pastDVD;
var plan1Pb = 8.99 / pastDVD;
var plan2P = 13.99 / pastDVD;
var plan3P = 16.99 / pastDVD;
var plan4P = 23.99 / pastDVD;
var plan5P = 29.99 / pastDVD;
var plan6P = 35.99 / pastDVD;
var plan7P = 41.99 / pastDVD;
var plan8P = 47.99 / pastDVD;

// 1. free trial < 50

if ((futureDVD < 50 ) && (form.D1.selectedIndex == 1)){
form.answer.value = "Turnaround time will be less than 1 week. We will send you " + futureDVD + " DVDs next month our treat! Paying customers will suffer because of you.  You'll get great service until we charge your credit card.";
}
// 2. free trial > 50

else if ((futureDVD >= 50) && (form.D1.selectedIndex == 1)) {
form.answer.value = "Turnaround time will be less than 1 week. We'll send you some DVDs next month but less than you requested. Paying customers will suffer because of you.";
}

// start 1-at-a-time 2 max
// 3. 1-at-a-time, No limits or exclusions

else if ((form.D1.selectedIndex == 2) && (pastDVD < 3)&& !((futureDVD < 1)&&(pastDVD <=2)) && !((futureDVD < 1)&&(pastDVD >2)&&(pastDVD < 50)) && !((futureDVD < 1)&&(pastDVD >=50)) && !((futureDVD >= 3)&& (pastDVD <3)) && !((futureDVD >= 3)&& (pastDVD >=3)&& (pastDVD <=49)) && !((futureDVD >= 3)&& (pastDVD > 49))) {
form.answer.value = "Turnaround time will be less than 1 week. We'll send you " + futureDVD + " DVDs next month. DVDS will cost $" + Math.round(100*plan1)/100 + " each.";
}

// 4. 1-at-a-time, No limits or exclusions, pastDVD > 2

else if ((form.D1.selectedIndex == 2) && (pastDVD > 2)&& (pastDVD <=49) && !((futureDVD < 1)&&(pastDVD <=2)) && !((futureDVD < 1)&&(pastDVD >2)&&(pastDVD < 50)) && !((futureDVD < 1)&&(pastDVD >=50)) && !((futureDVD >= 3)&& (pastDVD <3)) && !((futureDVD >= 3)&& (pastDVD >=3)&& (pastDVD <=49)) && !((futureDVD >= 3)&& (pastDVD > 49))) {
form.answer.value = "Turnaround time will be less than 1 week. We'll send you " + futureDVD + " DVDs next month. DVDS will cost $" + Math.round(100*plan1)/100 + " each. You should have only received 2 rentals last month unless you recently downgraded your plan.";
}

// 5. 1-at-a-time, No limits or exclusions, pastDVD >50

else if ((form.D1.selectedIndex == 2) && (pastDVD >=50) && !((futureDVD < 1)&&(pastDVD <=2)) && !((futureDVD < 1)&&(pastDVD >2)&&(pastDVD < 50)) && !((futureDVD < 1)&&(pastDVD >=50)) && !((futureDVD >= 3)&& (pastDVD <3)) && !((futureDVD >= 3)&& (pastDVD >=3)&& (pastDVD <=49)) && !((futureDVD >= 3)&& (pastDVD > 49))) {
form.answer.value = "Turnaround time will be less than 1 week. We'll send you " + futureDVD + " DVDs next month. DVDS will cost $" + Math.round(100*plan1)/100 + " each. It is highly unlikely you received this many rentals last month.";
}

// 6. 1-at-a-time, futureDVD = 0

else if ((form.D1.selectedIndex == 2) && (futureDVD < 1)&&(pastDVD <=2)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $4.99 next month.";
}
// 7. 1-at-a-time, futureDVD = 0, pastDVD <=50

else if ((form.D1.selectedIndex == 2) && (futureDVD < 1)&&(pastDVD >2)&&(pastDVD < 50)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $4.99 next month. You should have only received 2 rentals last month unless you recently downgraded your plan.";
}
// 8. 1-at-a-time, futureDVD = 0, pastDVD >50

else if ((form.D1.selectedIndex == 2) && (futureDVD < 1)&&(pastDVD >=50)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $4.99 next month. It is highly unlikely you received this many rentals last month.";
}
// 9. 1-at-a-time, future >=3, past < 3

else if ((form.D1.selectedIndex == 2) && (futureDVD >= 3)&& (pastDVD <3)) {
form.answer.value = "Your membership only allows for 2 movies per month.";
}
// 10. 1-at-a-time, future >=3, past >=3

else if ((form.D1.selectedIndex == 2) && (futureDVD >= 3)&& (pastDVD >=3)&& (pastDVD <=49)) {
form.answer.value = "Your membership only allows for 2 movies per month. You should have only received 2 rentals last month unless you recently downgraded your plan.";
}

// 11. 1-at-a-time, future >=3, past > 50

else if ((form.D1.selectedIndex == 2) && (futureDVD >= 3)&& (pastDVD > 49)) {
form.answer.value = "Your membership only allows for 2 movies per month. It is highly unlikely you received this many rentals last month.";
}

// Next plan
// 12. 1-at-a-time, No limits or exclusions

else if ((form.D1.selectedIndex == 3) && (plan1b >2) && (plan1Pb >2) && (futureDVD >= 1)) {
form.answer.value = "Turnaround time will be less than 1 week. We'll send you " + futureDVD + " DVDs next month.  cost $" + Math.round(100*plan1b)/100 + " each.";
}
// 13. 1-at-a-time, futureDVD = 0

else if ((form.D1.selectedIndex == 3) && (futureDVD < 1)&&(pastDVD <15)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $8.99 next month";
}
// 14. 1-at-a-time, futureDVD = 0, pastDVD >=15

else if ((form.D1.selectedIndex == 3) && (futureDVD < 1)&&(pastDVD >=15)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $8.99 next month. It is highly unlikely you received this many rentals last month.";
}
// 15. 1-at-a-time, penalize future

else if ((form.D1.selectedIndex == 3) && (plan1b <2)&& (plan1Pb >2)&& (futureDVD < 15 )) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day.";
}
// 16. 1-at-a-time, penalize now

else if ((form.D1.selectedIndex == 3) && (plan1Pb <2)&& (plan1b >2)&& (pastDVD < 15 )) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day.";
}
// 17. 1-at-a-time, penalize twice

else if ((form.D1.selectedIndex == 3) && (plan1Pb <2)&&(plan1b <2)&&(futureDVD < 15 )&& (pastDVD < 15 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days.";
}
// 18. 1-at-a-time, penalize future, future too many

else if ((form.D1.selectedIndex == 3) && (plan1b <2)&& (plan1Pb >2)&& (futureDVD >= 15)) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day. It is highly unlikely you will recieve this many rentals";
}
// 19. 1-at-a-time, penalize now, past too many

else if ((form.D1.selectedIndex == 3) && (plan1Pb <2)&& (plan1b >2)&&(pastDVD >=15)) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day although it is highly unlikely you received this many rentals last month.";
}
// 20. 1-at-a-time, penalize twice, future too many, past < 15

else if ((form.D1.selectedIndex == 3) && (plan1Pb <2)&&(plan1b <2)&&(futureDVD >=15)&&(pastDVD < 15)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive this many rentals.";
}
// 21. 1-at-a-time, penalize twice, past too many

else if ((form.D1.selectedIndex == 3) && (plan1Pb <2)&&(plan1b <2)&&(futureDVD <15 )&& (pastDVD >=15 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you received this many rentals last month.";
}
// 22. 1-at-a-time, penalize twice, too many future/past

else if ((form.D1.selectedIndex == 3) && (plan1Pb <2)&&(plan1b <2)&&(pastDVD >=15)&&(futureDVD >=15)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive or received this many rentals.";
}

// start 2-at-a-time unlimited
// 23. 2-at-a-time, No limits or exclusions

else if ((form.D1.selectedIndex == 4) && (plan2 >2) && (plan2P >2) && (futureDVD >= 1)) {
form.answer.value = "Turnaround time will be less than 1 week. We'll send you " + futureDVD + " DVDs next month.  will cost $" + Math.round(100*plan2)/100 + " each.";
}
// 24. 2-at-a-time, futureDVD = 0

else if ((form.D1.selectedIndex == 4) && (futureDVD < 1)&&(pastDVD <20)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $13.99 next month";
}
// 25. 2-at-a-time, futureDVD = 0, pastDVD >=20

else if ((form.D1.selectedIndex == 4) && (futureDVD < 1)&&(pastDVD >=20)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $13.99 next month. It is highly unlikely you received this many rentals last month.";
}
// 26. 2-at-a-time, penalize future

else if ((form.D1.selectedIndex ==4) && (plan2 <2)&& (plan2P >2)&& (futureDVD < 20 )) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day.";
}
// 27. 2-at-a-time, penalize now

else if ((form.D1.selectedIndex ==4) && (plan2P <2)&& (plan2 >2)&& (pastDVD < 20 )) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day.";
}
// 28. 2-at-a-time, penalize twice

else if ((form.D1.selectedIndex ==4) && (plan2P <2)&&(plan2 <2)&&(futureDVD < 20 )&& (pastDVD < 20 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days.";
}
// 29. 2-at-a-time, penalize future, future unlikely

else if ((form.D1.selectedIndex ==4) && (plan2 <2)&& (plan2P >2)&& (futureDVD >= 20)) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day. It is highly unlikely you will recieve this many rentals.";
}
// 30. 2-at-a-time, penalize now, past unlikely

else if ((form.D1.selectedIndex ==4) && (plan2P <2)&& (plan2 >2)&&(pastDVD >=20)) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day although it is highly unlikely you received this many rentals last month.";
}
// 31. 2-at-a-time, penalize twice, future unlikely

else if ((form.D1.selectedIndex ==4) && (plan2P <2)&&(plan2 <2)&&(futureDVD >=20)&&(pastDVD < 20)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive this many rentals.";
}
// 32. 2-at-a-time, penalize twice, past unlikely

else if ((form.D1.selectedIndex ==4) && (plan2P <2)&&(plan2 <2)&&(futureDVD <20 )&& (pastDVD >=20 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you received this many rentals last month.";
}
// 33. 2-at-a-time, penalize twice, future & past unlikely

else if ((form.D1.selectedIndex ==4) && (plan2P <2)&&(plan2 <2)&&(pastDVD >=20)&&(futureDVD >=20)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive or received this many rentals.";
}
// 34. 3-at-a-time, No limits or exclusions

else if ((form.D1.selectedIndex == 5) && (plan3 >2) && (plan3P >2) && (futureDVD >= 1)) {
form.answer.value = "Turnaround time will be less than 1 week. We'll send you " + futureDVD + " DVDs next month.  will cost $" + Math.round(100*plan3)/100 + " each.";
}
// 35. 3-at-a-time, futureDVD = 0

else if ((form.D1.selectedIndex == 5) && (futureDVD < 1)&&(pastDVD <25)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $16.99 next month";
}
// 36. 3-at-a-time, futureDVD = 0, pastDVD >=25

else if ((form.D1.selectedIndex == 5) && (futureDVD < 1)&&(pastDVD >=25)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $16.99 next month. It is highly unlikely you received this many rentals last month.";
}
// 37. 3-at-a-time, penalize future

else if ((form.D1.selectedIndex ==5) && (plan3 <2)&& (plan3P >2)&& (futureDVD < 25 )) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day.";
}
// 38. 3-at-a-time, penalize now

else if ((form.D1.selectedIndex ==5) && (plan3P <2)&& (plan3 >2)&& (pastDVD < 25 )) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day.";
}
// 39. 3-at-a-time, penalize twice

else if ((form.D1.selectedIndex ==5) && (plan3P <2)&&(plan3 <2)&&(futureDVD < 25 )&& (pastDVD < 25 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days.";
}
// 40. 3-at-a-time, penalize future, future unlikely

else if ((form.D1.selectedIndex ==5) && (plan3 <2)&& (plan3P >2)&& (futureDVD >= 25)) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day. It is highly unlikely you will recieve this many rentals.";
}
// 41. 3-at-a-time, penalize now, past unlikely

else if ((form.D1.selectedIndex ==5) && (plan3P <2)&& (plan3 >2)&&(pastDVD >=25)) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day although it is highly unlikely you received this many rentals last month.";
}
// 42. 3-at-a-time, penalize twice, future unlikely 

else if ((form.D1.selectedIndex ==5) && (plan3P <2)&&(plan3 <2)&&(futureDVD >=25)&&(pastDVD < 25)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive this many rentals.";
}
// 43. 3-at-a-time, penalize twice, past unlikely

else if ((form.D1.selectedIndex ==5) && (plan3P <2)&&(plan3 <2)&&(futureDVD <25 )&& (pastDVD >=25 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you received this many rentals last month.";
}
// 44. 3-at-a-time, penalize twice, future & past unlikely

else if ((form.D1.selectedIndex ==5) && (plan3P <2)&&(plan3 <2)&&(pastDVD >=25)&&(futureDVD >=25)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive or received this many rentals.";
}
// 45. 4-at-a-time No Limits Or Exclusions

else if ((form.D1.selectedIndex == 6) && (plan4 >2) && (plan4P >2) && (futureDVD >= 1)) {
form.answer.value = "Turnaround time will be less than 1 week. We'll send you " + futureDVD + " DVDs next month.  will cost $" + Math.round(100*plan4)/100 + " each.";
}
// 46. 4-at-a-time Future DVD = 0

else if ((form.D1.selectedIndex == 6) && (futureDVD < 1)&&(pastDVD <30)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $23.99 next month";
}
// 47. 4-at-a-time, futureDVD = 0, pastDVD >=30

else if ((form.D1.selectedIndex == 6) && (futureDVD < 1)&&(pastDVD >=30)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $23.99 next month. It is highly unlikely you received this many rentals last month.";
}
// 48. 4-at-a-time, penalize future

else if ((form.D1.selectedIndex ==6) && (plan4 <2)&& (plan4P >2)&& (futureDVD < 30 )) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day.";
}
// 49. 4-at-a-time, penalize now

else if ((form.D1.selectedIndex ==6) && (plan4P <2)&& (plan4 >2)&& (pastDVD < 30 )) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day.";
}
// 50. 4-at-a-time, penalize twice

else if ((form.D1.selectedIndex ==6) && (plan4P <2)&&(plan4 <2)&&(futureDVD < 30 )&& (pastDVD < 30 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days.";
}
// 51. 4-at-a-time, penalize future, future unlikely

else if ((form.D1.selectedIndex ==6) && (plan4 <2)&& (plan4P >2)&& (futureDVD >= 30)) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day. It is highly unlikely you will recieve this many rentals.";
}
// 52. 4-at-a-time, penalize now, past unlikely

else if ((form.D1.selectedIndex ==6) && (plan4P <2)&& (plan4 >2)&&(pastDVD >=30)) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day although it is highly unlikely you received this many rentals last month.";
}
// 53. 4-at-a-time, penalize twice, future unlikely, 

else if ((form.D1.selectedIndex ==6) && (plan4P <2)&&(plan4 <2)&&(futureDVD >=30)&&(pastDVD < 30)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive this many rentals.";
}
// 54. 4-at-a-time, penalize twice, past unlikely

else if ((form.D1.selectedIndex ==6) && (plan4P <2)&&(plan4 <2)&&(futureDVD <30 )&& (pastDVD >=30 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you received this many rentals last month.";
}
// 55. 4-at-a-time, penalize twice, future & past unlikely

else if ((form.D1.selectedIndex ==6) && (plan4P <2)&&(plan4 <2)&&(pastDVD >=30)&&(futureDVD >=30)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive or received this many rentals.";
}
// 56. 5-at-a-time, No limits or exclusions

else if ((form.D1.selectedIndex == 7) && (plan5 >2) && (plan5P >2) && (futureDVD >= 1)) {
form.answer.value = "Turnaround time will be less than 1 week. We'll send you " + futureDVD + " DVDs next month.  will cost $" + Math.round(100*plan5)/100 + " each.";
}
// 57. 5-at-a-time, futureDVD = 0

else if ((form.D1.selectedIndex == 7) && (futureDVD < 1)&&(pastDVD <35)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $29.99 next month";
}
// 58. 5-at-a-time, futureDVD = 0, pastDVD >35

else if ((form.D1.selectedIndex == 7) && (futureDVD < 1)&&(pastDVD >=35)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $29.99 next month. It is highly unlikely you received this many rentals last month.";
}
// 59. 5-at-a-time, penalize future

else if ((form.D1.selectedIndex ==7) && (plan5 <2)&& (plan5P >2)&& (futureDVD < 35 )) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day.";
}
// 60. 5-at-a-time, penalize now

else if ((form.D1.selectedIndex ==7) && (plan5P <2)&& (plan5 >2)&& (pastDVD < 35 )) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day.";
}
// 61. 5-at-a-time, penalize twice

else if ((form.D1.selectedIndex ==7) && (plan5P <2)&&(plan5 <2)&&(futureDVD < 35 )&& (pastDVD < 35 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days.";
}
// 62. 5-at-a-time, penalize future, future unlikely

else if ((form.D1.selectedIndex ==7) && (plan5 <2)&& (plan5P >2)&& (futureDVD >= 35)) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day. It is highly unlikely you will recieve this many rentals.";
}
// 63. 5-at-a-time, penalize now, past unlikely

else if ((form.D1.selectedIndex ==7) && (plan5P <2)&& (plan5 >2)&&(pastDVD >=35)) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day although it is highly unlikely you received this many rentals last month.";
}
// 64. 5-at-a-time, penalize twice, future unlikely

else if ((form.D1.selectedIndex ==7) && (plan5P <2)&&(plan5 <2)&&(futureDVD >=35)&&(pastDVD < 35)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive this many rentals.";
}
// 65. 5-at-a-time, penalize twice, past unlikely

else if ((form.D1.selectedIndex ==7) && (plan5P <2)&&(plan5 <2)&&(futureDVD <35 )&& (pastDVD >=35 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you received this many rentals last month.";
}
// 66. 5-at-a-time, penalize twice, future, past unlikely

else if ((form.D1.selectedIndex ==7) && (plan5P <2)&&(plan5 <2)&&(pastDVD >=35)&&(futureDVD >=35)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive or received this many rentals.";
}
// 67. 6-at-a-time No Limits Or Exclusions

else if ((form.D1.selectedIndex == 8) && (plan6 >2) && (plan6P >2) && (futureDVD >= 1)) {
form.answer.value = "Turnaround time will be less than 1 week. We'll send you " + futureDVD + " DVDs next month.  will cost $" + Math.round(100*plan6)/100 + " each.";
}
// 68. 6-at-a-time Future DVD = 0

else if ((form.D1.selectedIndex == 8) && (futureDVD < 1)&&(pastDVD <40)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $35.99 next month";
}
// 69. 6-at-a-time, futureDVD = 0, pastDVD >=40

else if ((form.D1.selectedIndex == 8) && (futureDVD < 1)&&(pastDVD >=40)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $35.99 next month. It is highly unlikely you received this many rentals last month.";
}
// 70. 6-at-a-time, penalize future

else if ((form.D1.selectedIndex ==8) && (plan6 <2)&& (plan6P >2)&& (futureDVD < 40 )) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day.";
}
// 71. 6-at-a-time, penalize now

else if ((form.D1.selectedIndex ==8) && (plan6P <2)&& (plan6 >2)&& (pastDVD < 40 )) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day.";
}
// 72. 6-at-a-time, penalize twice

else if ((form.D1.selectedIndex ==8) && (plan6P <2)&&(plan6 <2)&&(futureDVD < 40 )&& (pastDVD < 40 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days.";
}
// 73. 6-at-a-time, penalize future, future unlikely

else if ((form.D1.selectedIndex ==8) && (plan6 <2)&& (plan6P >2)&& (futureDVD >= 40)) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day. It is highly unlikely you will recieve this many rentals.";
}
// 74. 6-at-a-time, penalize now, past unlikely

else if ((form.D1.selectedIndex ==8) && (plan6P <2)&& (plan6 >2)&&(pastDVD >=40)) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day although it is highly unlikely you received this many rentals last month.";
}
// 75. 6-at-a-time, penalize twice, future unlikely, 

else if ((form.D1.selectedIndex ==8) && (plan6P <2)&&(plan6 <2)&&(futureDVD >=40)&&(pastDVD < 40)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive this many rentals.";
}
// 76. 6-at-a-time, penalize twice, past unlikely

else if ((form.D1.selectedIndex ==8) && (plan6P <2)&&(plan6 <2)&&(futureDVD <40 )&& (pastDVD >=40 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you received this many rentals last month.";
}
// 77. 6-at-a-time, penalize twice, future & past unlikely

else if ((form.D1.selectedIndex ==8) && (plan6P <2)&&(plan6 <2)&&(pastDVD >=40)&&(futureDVD >=40)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive or received this many rentals.";
}
// 78. 7-at-a-time No Limits Or Exclusions

else if ((form.D1.selectedIndex == 9) && (plan7 >2) && (plan7P >2) && (futureDVD >= 1)) {
form.answer.value = "Turnaround time will be less than 1 week. We'll send you " + futureDVD + " DVDs next month.  will cost $" + Math.round(100*plan7)/100 + " each.";
}
// 79. 7-at-a-time Future DVD = 0

else if ((form.D1.selectedIndex == 9) && (futureDVD < 1)&&(pastDVD <45)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $41.99 next month";
}
// 80. 7-at-a-time, futureDVD = 0, pastDVD >=45

else if ((form.D1.selectedIndex == 9) && (futureDVD < 1)&&(pastDVD >=45)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $41.99 next month. It is highly unlikely you received this many rentals last month.";
}
// 81. 7-at-a-time, penalize future

else if ((form.D1.selectedIndex ==9) && (plan7 <2)&& (plan7P >2)&& (futureDVD < 45 )) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day.";
}
// 82. 7-at-a-time, penalize now

else if ((form.D1.selectedIndex ==9) && (plan7P <2)&& (plan7 >2)&& (pastDVD < 45 )) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day.";
}
// 83. 7-at-a-time, penalize twice

else if ((form.D1.selectedIndex ==9) && (plan7P <2)&&(plan7 <2)&&(futureDVD < 45 )&& (pastDVD < 45 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days.";
}
// 84. 7-at-a-time, penalize future, future unlikely

else if ((form.D1.selectedIndex ==9) && (plan7 <2)&& (plan7P >2)&& (futureDVD >= 45)) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day. It is highly unlikely you will recieve this many rentals.";
}
// 85. 7-at-a-time, penalize now, past unlikely

else if ((form.D1.selectedIndex ==9) && (plan7P <2)&& (plan7 >2)&&(pastDVD >=45)) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day although it is highly unlikely you received this many rentals last month.";
}
// 86. 7-at-a-time, penalize twice, future unlikely, 

else if ((form.D1.selectedIndex ==9) && (plan7P <2)&&(plan7 <2)&&(futureDVD >=45)&&(pastDVD < 45)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive this many rentals.";
}
// 87. 7-at-a-time, penalize twice, past unlikely

else if ((form.D1.selectedIndex ==9) && (plan7P <2)&&(plan7 <2)&&(futureDVD <45 )&& (pastDVD >=45 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you received this many rentals last month.";
}
// 88. 7-at-a-time, penalize twice, future & past unlikely

else if ((form.D1.selectedIndex ==9) && (plan7P <2)&&(plan7 <2)&&(pastDVD >=45)&&(futureDVD >=45)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive or received this many rentals.";
}
// 89. 8-at-a-time, No limits or exclusion

else if ((form.D1.selectedIndex == 10) && (plan8 >2) && (plan8P >2) && (futureDVD >= 1)) {
form.answer.value = "Turnaround time will be less than 1 week. We'll send you " + futureDVD + " DVDs next month.  will cost $" + Math.round(100*plan8)/100 + " each.";
}
// 90. 8-at-a-time, futureDVD = 0

else if ((form.D1.selectedIndex == 10) && (futureDVD < 1)&&(pastDVD <50)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $47.99 next month.";
}
// 91. 8-at-a-time, futureDVD = 0, pastDVD >50

else if ((form.D1.selectedIndex == 10) && (futureDVD < 1)&&(pastDVD >=50)) {
form.answer.value = "We'll send you " + futureDVD + " DVDs next month. You will be charged $47.99 next month. It is highly unlikely you received this many rentals last month.";
}
// 92. 8-at-a-time, penalize future

else if ((form.D1.selectedIndex ==10) && (plan8 <2)&& (plan8P >2)&& (futureDVD < 50 )) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day.";
}
// 93. 8-at-a-time, penalize now

else if ((form.D1.selectedIndex ==10) && (plan8P <2)&& (plan8 >2)&& (pastDVD < 50 )) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day.";
}
// 94. 8-at-a-time, penalize twice

else if ((form.D1.selectedIndex ==10) && (plan8P <2)&&(plan8 <2)&&(futureDVD < 50 )&& (pastDVD < 50 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days.";
}
// 95. 8-at-a-time, penalize future, future unlikely

else if ((form.D1.selectedIndex ==10) && (plan8 <2)&& (plan8P >2)&& (futureDVD >= 50)) {
form.answer.value = "Turnaround time will be 1 week. You will exceed our secret limit. The next billing cycle we will deny we have received your rentals by 2 days and delay shipping your rentals by 1 day. It is highly unlikely you will recieve this many rentals.";
}
// 96. 8-at-a-time, penalize now, past unlikely

else if ((form.D1.selectedIndex ==10) && (plan8P <2)&& (plan8 >2)&&(pastDVD >=50)) {
form.answer.value = "Turnaround time will be 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day although it is highly unlikely you received this many rentals last month.";
}
// 97. 8-at-a-time, penalize twice, future unlikely, past <50

else if ((form.D1.selectedIndex ==10) && (plan8P <2)&&(plan8 <2)&&(futureDVD >=50)&&(pastDVD < 50)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive this many rentals.";
}
// 98. 8-at-a-time, penalize twice, past unlikely

else if ((form.D1.selectedIndex ==10) && (plan8P <2)&&(plan8 <2)&&(futureDVD <50 )&& (pastDVD >=50 )) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you received this many rentals last month.";
}
// 99. 8-at-a-time, penalize twice, future unlikely, past unlikely

else if ((form.D1.selectedIndex ==10) && (plan8P <2)&&(plan8 <2)&&(pastDVD >=50)&&(futureDVD >=50)) {
form.answer.value = "Turnaround time will be more than 1 week. You have exceeded our secret limit. We are currently denying we have received your rentals by 2 days and delaying shipping your rentals by 1 day. Next billing cycle we will deny receiving your rentals by 4 days and delay shipping by 2 days. It is highly unlikely you will receive or received this many rentals.";
}
//none of the above

else {
form.answer.value = "something is wrong";
}

//alerts
if((form.futureNumber.value==null)||(form.futureNumber.value=="")||(isNaN(form.futureNumber.value))){
alert('Enter the number of rentals you want next month.\nPlease enter numbers only.');
form.futureNumber.focus();
form.futureNumber.select();
return false;
}
if((form.pastNumber.value==null)||(form.pastNumber.value=="")||(isNaN(form.pastNumber.value))){
alert('Enter the number of rentals you received last month.\nPlease enter numbers only.');
form.pastNumber.focus();
form.pastNumber.select();
return false;
}
if(form.D1.selectedIndex ==0){
alert('Please select your plan');
form.D1.focus();
return false;
}
}
