In what way doesn't this work? What errors are you seeing? Scott Hamm wrote: > Sorry. I will be more intelligent. :) > > What I want is to accept values ONLY if sum of > krono_process.ktpo.value and krono_process.khrs.value do not exceed 8. > > [code] > kpptot=Number(krono_process.kpto.value); > kphtot=Number(krono_process.khrs.value); > ktot=kpptot+kphtot; > If(ktot>8) > { > alert("Exceeding 8 hours total to use PTO") > krono_process.khrs.focus() > return false; > } > [/code] > On 11/2/05, Hassan Schroeder <hassan at webtuitive.com> wrote: > >>Scott Hamm wrote: >> >>>Tried your method to no avail: (thanks for trying) >> >>Well, since I don't have time to build a complete test harness to >>demo your code, perhaps (!) it would be helpful if you described >>*exactly* what "the problem" is, instead of >> >> >>> //here lies the problem >> >>What is or is not happening that you don't or do expect? Are there >>any error messages? Providing actual information will likely get >>you much better answers... >> >>ref: <http://www.catb.org/~esr/faqs/smart-questions.html> >>-- >>Hassan Schroeder ----------------------------- hassan at webtuitive.com >>Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com >> >> dream. code. >> >> >>_______________________________________________ >>Javascript mailing list >>Javascript at LaTech.edu >>https://lists.LaTech.edu/mailman/listinfo/javascript >> > > > > -- > Please avoid sending me Word or PowerPoint attachments. > See http://www.gnu.org/philosophy/no-word-attachments.html > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > -- > This email has been verified as Virus free > Virus Protection and more available at http://www.plus.net >