Illegal?...
maybe jami59 should have gotten a few more dives in the old log book before a night dive but...let's put this in perspective. A night dive in Cozumel...most likely at Paradise reef. This was a 40' dive in crystal clear water with little if any current at all and if there was any moon at all, then it most likely wasn't even complety dark underwater. The last night dive I did at Paradise, I turned my light off for much of the dive because it was too bright. I could have read a book sitting on the bottom without a light. Like Zen squirrell said, there are alot of daytime dives that are more hairy than this one. Being 40' feet from the surface Jami59 could have most likely gotten to the surface without the DM's help and without any problems. With that said I will agree that you should probably get some more experience before pushing on to new diving frontiers, but I don't think a night dive is out of the question just because you haven't taken AOW. Especially this dive. 40' of clear water with a DM an arms reach away.
I'm glad everything worked out and Jami59 is OK. It sounds like Jami kept a cool head in a crisis situation and that's what's important. Chalk it up as a lesson learned and use the experience to make yourself a better diver. These lessons that you learn from experience tend to stick with you more so than something you may or may not have read in a book somewhere (case in point: folks getting through OW and thinking it is illegal to do a night dive without an AOW c-card)
The good thing about that analog pressure guage is that when this situation occurs, you can look at it and when you take a breath, the needle will probably dip or something to that effect. That will let you know to try checking the valve before you panic and bolt for the surface.
I assume that the first stage had already been set up by diver or buddy, and the diver came back and turned the valve to close position by accident. This just doesn't make good logical sense
Most likely the boat crew set the gear up. They can be awfully stealthy when switching gear out..a lot of times they can have your gear on a new tank before you've even gotten out of the water from your dive and gotten to your seat on the boat, or they can turn your air on without you even seeing them do it.
This is why you should always go over your gear before getting in the water. These boat crews are used to handling all the gear for alot of their customers and when a customer does something for themselves this kind of thing can happen. If you want to let them do it for you, fine. If you want to do it all yourself, fine, but either way, ALWAYS check it over good before you get in to make sure the BC placed on the tank where you like it, that the first stage is on correctly and the power inflator hose is connected, the valve is on, etc... if a DM sets my gear up for me, I always sort of treat it like they are the student and I'm the instructor, and they are trying to pass their "gear setup " exam. I check it over to make sure it was done to my liking.
You can bet in the future that Jami59 will be checking and double checking that valve before getting tin the water.