I am having a slight problem getting a fucntion to work. I have multiple function similar to this one running on one page. The purpose of these functions is to take a yes or no selection and populate other boxes with numbers and then add them up to a total. All of the function work except this one and I am stuck.
Code:
function EXTRAEMAILCOST(field){
Code:
if(field.value==5) {
document.PlanCost.EXTRAEMAIL.value="5";
}
else if(field.value ==4){
document.PlanCost.EXTRAEMAIL.value="4";
}
else if(field.value ==3){
document.PlanCost.EXTRAEMAIL.value="3";
}
else if(field.value ==2){
document.PlanCost.EXTRAEMAIL.value="2";
}
else if(field.value ==1){
document.PlanCost.EXTRAEMAIL.value="1";
}
else {
document.PlanCost.EXTRAEMAIL.value="0";
}
var FTP = eval(document.PlanCost.FTP.value);
var EMAIL = eval(document.PlanCost.EMAIL.value);
var EXTRAEMAIL = eval(document.PlanCost.EXTRAEMAIL.value);
var SQL = eval(document.PlanCost.SQL.value);
var DOMAIN = eval(document.PlanCost.DOMAIN.value);
document.PlanCost.TOTAL.value=FTP+EMAIL+EXTRAEMAIL+SQL+DOMAIN + "." + "00";
}
Does anyone have any ideas?