Well I guess if the stores sell it, it must be legal. Every plumbing code I ever read does not allow that trap. When it comes time to sell the home, it will fail inspection.
I just had to give an estimate yesterday on tearing out all the plumbing the homeowner did 3 years ago and bring it all up to code. It got tagged by a home inspector, and when the plumbing inspector came to see what the deal was he wrote up a 15K fine for this home owner for doing plumbing with out a permit and with out a license. Way the fines work is its 5k for first offense and each violation their after it doubles. So he got hit with 5k for the permit and 10k for not being a licensed plumber.
Moral of my tail of woes to make sure if you do any work check with your local building department about permits and codes. Plumbing codes in most states are the "law" and are enforced as such by "code enforcement officers" which can cost you a whole lot more grief than the few bucks you save. Reason we have these plumbing codes is to ensure the protection of the health to all those in your home as well as the community. And the reason we have licensed plumbers is they studied these codes under an apprenticeship and took the required tests to prove their knowledge. Its just like how doctors have to goto school and intern somewhere before they become full fledged doctors. If we didn't have some sort of system to keep things in check there would be huge epidemics like their was in the dark ages.
I am real glad you all found these forums and are smart enough to ask questions about whats is the right way to do things. Key about doing anything yourself is do it right the first time, and if you are not sure how to do it right ask questions or hire a pro. If you go for the asking questions part please follow the advice given even if you think it might be to hard to do.