Your Compaq manual will show the instructions you need for that model#. Otherwise, that same info is provided by the support website, again for that model#. demanding on the ease of looking-up your HP product line, then surf there.
The real simple and outright quick way is to remove the CMOS battery(unplug AC beforehand) then return it. You can also swap it out for a new one, since the 310V is a dated product. Reset the bios values or review them to what is required and save before exiting.
tada -----Willy ![]()
for the compaq evo 310v desktop

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic