Currently I have a page that dynamically creates items and also for each item is a check box. The user can check up to 5 boxes and click the compare link and then it goes to a different page to compare the selected items. All of these items are in a single form.

My issue is that I need to put a new form on this page for each item (buy info button). I don't believe you can do a form within a form so my thought was to make each checkbox a new form as well.

So for each product displayed on the screen I will have a form for my compare checkbox and a form for the buy button. Does anyone know if I can still have javascript code that checks to see if more then 5 checkboxes (5 different forms) have been selected to send a alert?

Hope I have explained it well enough. Thanks in advance for any assistance.