Here is the one I use. It toggles between backface culling on with hard edges and backface culling off. You caqn poke around at the flags to make it toggle between your favorite two options.
global proc toggleBackFace()
{
polyOptions -r -backCullVertex false; // toggles vertex backface cull
int $tmp[] = polyOptions -q -backCulling
;
if ($tmp[0]) polyOptions -hardBack;
else polyOptions -backCulling;
}