Checkbox javascript
Hi.
I need some help in making the right JavaScript for my Price Group checkboxes. I will try to explain.

First of all, my Price Group 1 checkbox is always checked (YES) and locked in normal setup.
What I want help with is when
- Price Group 6 is checked (YES), Price Group 2, 3, 4 and 5 must be autofilled checked (YES)
- Price Group 5 is checked (YES), Price Group 2, 3 and 4 must be autofilled checked (YES) - Not Price Group 6
- Price Group 4 is checked (YES), Price Group 2 and 3 must be autofilled checked (YES) - Not Price Group 5 and 6
- Price Group 3 is checked (YES), Price Group 2 must be autofilled checked (YES) - Not Price Group 4, 5 and 6
- Price Group 2 does not execute any JavaScript in this matter
And the other way around
- If Price Group 2, 3, 4, 5 and 6 are checked (YES) and Price Group 2 is unchecked (OFF), Price Group 3, 4, 5 and 6 must be unchecked (OFF)
- If Price Group 2, 3, 4, 5 and 6 are checked (YES) and Price Group 3 is unchecked (OFF), Price Group 4, 5 and 6 must be unchecked (OFF), but Price Group 2 will remain checked (YES)
- If Price Group 2, 3, 4, 5 and 6 are checked (YES) and Price Group 4 is unchecked (OFF), Price Group 5 and 6 must be unchecked (OFF), but Price Group 2 and 3 will remain checked (YES)
- If Price Group 2, 3, 4, 5 and 6 are checked (YES) and Price Group 5 is unchecked (OFF), Price Group 6 must be unchecked (OFF), but Price Group 2, 3 and 4 will remain checked (YES)
- If Price Group 2, 3, 4, 5 and 6 are checked (YES) and Price Group 6 is unchecked (OFF), Price Group 6 must be unchecked (OFF), but Price Group 2, 3, 4 and 5 will remain checked (YES)
You must not be able to check (YES) to a higher Price Group unless you also get the Price Groups below. And if you uncheck (OFF) a lower Price Group you also uncheck (OFF) any higher Price Groups.
I hope it make sence to someone who are able to help me setup the right JavaScript.
Thanks in advance!
/Jesper
