If you're not determined to have your paragraph open in a different window then this could be done quite easily with jQuery
var text = '<p>There once was a <b>';
text += $('input[name=sex] :checked').val();
text += '</b> named <b>';
text += $('#name').val();
text += '</b></p>';
$('#ResultsDiv').append(text);
You're going to have to play with this a little bit, opening the paragraph in a new window will be tricky. You're also going to have to add a jQuery reference to your header.