/*function s(num, val) {
amount = num * 1; // amount is the num or NaN
sum = (!num ? 0 : num) * val;  // the sum for that bill or coin

if (isNaN(amount)) { // if the entire is not a number

alert(
"' " + num + " ' is not a valid entry and that field will "
+ "not be included in the total money calculation."
);

return 0;
}
else
return sum; // if it is OK, send sum back
}*//*if (form.onea.value !=num) {
return 0;
}*/

/*function printpage(){
  window.print()
}*/
function oneplus(form) {
onea=eval(form.onea.value*1);
oneb=eval(form.oneb.value*1);
onec=eval(form.onec.value*1);
a=onea+oneb+onec;
form.oneans.value = a;
}
/**** oneplus (above) totals actual income ****/

function twoplus(form) {
twoa=eval(form.twoa.value*1);
twob=eval(form.twob.value*1);
twoc=eval(form.twoc.value*1);
twoe=eval(form.twoe.value*1);
twof=eval(form.twof.value*1);
twog=eval(form.twog.value*1);
b=twoa+twob+twoc+twoe+twof+twog;
form.twoans.value = b;
}
/**** twoplus (above) totals fixed expenses ****/
function threeplus(form) {
threea=eval(form.threea.value*1);
threeb=eval(form.threeb.value*1);
threec=eval(form.threec.value*1);
threed=eval(form.threed.value*1);
threee=eval(form.threee.value*1);
threef=eval(form.threef.value*1);
threeg=eval(form.threeg.value*1);
threeh=eval(form.threeh.value*1);
threei=eval(form.threei.value*1);
threei=eval(form.threei.value*1);
threej=eval(form.threej.value*1);
threek=eval(form.threek.value*1);
threel=eval(form.threel.value*1);
threem=eval(form.threem.value*1);
threen=eval(form.threen.value*1);
threeo=eval(form.threeo.value*1);
threep=eval(form.threep.value*1);
threeq=eval(form.threeq.value*1);
threer=eval(form.threer.value*1);
threes=eval(form.threes.value*1);
threet=eval(form.threet.value*1);
c=threea+threeb+threec+threed+threee+threef+threeg+threeh+threei+threej+threek+threel+threem+threen+threeo+threep+threeq+threer+threes+threet;
form.threeans.value = c;
}
/**** threeplus (above) totals flexible expenses ****/
function totalexpenses(form){
twoa=eval(form.twoa.value*1);
twob=eval(form.twob.value*1);
twoc=eval(form.twoc.value*1);
twoe=eval(form.twoe.value*1);
twof=eval(form.twof.value*1);
twog=eval(form.twog.value*1);
threea=eval(form.threea.value*1);
threeb=eval(form.threeb.value*1);
threec=eval(form.threec.value*1);
threed=eval(form.threed.value*1);
threee=eval(form.threee.value*1);
threef=eval(form.threef.value*1);
threeg=eval(form.threeg.value*1);
threeh=eval(form.threeh.value*1);
threei=eval(form.threei.value*1);
threei=eval(form.threei.value*1);
threej=eval(form.threej.value*1);
threek=eval(form.threek.value*1);
threel=eval(form.threel.value*1);
threem=eval(form.threem.value*1);
threen=eval(form.threen.value*1);
threeo=eval(form.threeo.value*1);
threep=eval(form.threep.value*1);
threeq=eval(form.threeq.value*1);
threer=eval(form.threer.value*1);
threes=eval(form.threes.value*1);
threet=eval(form.threet.value*1);
d=twoa+twob+twoc+twoe+twof+twog+threea+threeb+threec+threed+threee+threef+threeg+threeh+threei+threej+threek+threel+threem+threen+threeo+threep+threeq+threer+threes+threet;
form.calcallans.value = d;
}
/**** totalexpenses (above) totals both flexible and fixed expenses ****/
function income_minus_expenses(form) {
    income=(form.oneans.value);
    expenses=(form.calcallans.value);
    e=income-expenses;
    form.calcform.value ='$ '+ e;
}
var dataOK=false;

function ConfirmCancel (){
  if (confirm("Are you sure you want to clear the form? Click OK to clear it."))
   {
      document.formx.reset();
   }
  return true;
}
function tdselectinput(){
}
// End -->