It sounds as if the Hinges are broke or bolts/nuts are very loose
Either way, sounds as if your going to have to disassemble the laptop to fix it
You may be able to find a Maintenance or Service manual at Compaq/HP site
Most are basic, but gives you an idea how to remove keyboard, display, etc....
I don't think there is much anyone can do to help, you must be willing to disassemble product yourself or get it professionally repaired, which may cost a bit
I've had to disassemble my old Dell laptop on occassion,
Take note, if you are going to go the route of disassembly, ensure you clean out Heat sink, etc... while your inside the unit