Daragh -
I think I understand what you're trying to do. You mean you want to write out the proper JavaScript for form checking so that the user can't check more than two boxes before submitting the form?
You can add a JS function that will be called every time a box is checked or unchecked, thereby providing you with a total number of boxes checked...when the user tries to check a box when two are already checked, you can handle it however you want (alert box, auto-unchecking one of them, etc.).
Add an onClick handler to your checkboxes (e.g. <input type='checkbox' name='blah' onClick='myFunction(this)'>) so that your JS function will be called when the user clicks a box. In that function, you can increment a counter of total boxes checked, store an array of checked boxes, etc. Always check for the value of that counter when the function's called, though, so you know whether to allow the box to be checked, or to throw an alert up or something.
-Jeremy
Web Developer
Helium FLASH
http://www.heliumflash.com