if (request.again == "yes")
{
client.gameno = 1 + parseInt(client.gameno,10);
client.newgame = "true"; // set flag to initialize new game
redirect("hangman.html"); // redirect back to hangman page to play again.
}
else if (request.again == "no")
redirect("thanks.html"); // redirect to thanks page.
CONGRATULATIONS, YOU WON!!!
write(client.answer);