Make your life easier and get a petcock suitable for your bike. The time spent futzing around trying to get a hardware store valve to work in a small space, such as under the tank, is better used riding, drinking beer and/or watching girls. Plus, I would have to assume hardware store valves are not manufactured with gasoline in mind. So you might end up with a shiny brass thing under the tank that doesn't do much but allow gas to weep into the float bowl, which drains into the cylinder, which removes any oil from the cylinder wall, thereby effing up the piston/cylinder and putting a bucha gas in the oil.
Pingle offers aftermarket valves for some bikes. K & L offers the 4 holed washer thingy for most bikes. That may be all you need, rather than a complete valve. Pages 198-205 in the K & L catalog: http://www.klsupply.com/Portals/0/Downloads/2009catalog.zip Have yer friendly local moto shop order what you need. Just give them the K & L numbers.
If yuh can't duck it, f*&k it.
NE