How can I convert a string to boolean in JavaScript? I'm having a hard time to explain but this is how it should work: above computes the product and i want the product to be in hidden field. This may be easier if I show what I have. How do I include a JavaScript file in another JavaScript file? input This can be used to detect changes in a or