How to diabale a button when more than two checkboxes are selected

Hai all, I am having a jsp page where i had some entries and a checkbox for each entry. Any user has to select one of the checkboxes and click the download button. This is working fine. But if more than one checkbox is selected, the download button should be disabled. I know that it is a bit of javasript stuff but am not getting it right. so please help me in this regard.

Thanks in advance.....

[411 byte] By [autoa] at [2007-10-3 1:17:59]
# 1
What the error that ur getting in ur js..regardsShanu
mshanua at 2007-7-14 18:15:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hai, i need the logic such that if the user selects more than one file the download button should be disabled automatically. There are some other buttons in the same page which need not get affected but i need only this particular download button to be disabled once the user selects more than one file. I am not able to get an idea of how to start it.

Thank u,,,,

autoa at 2007-7-14 18:15:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...