radio button onClick event

<!DOCTYPE HTML>
<head>
<script>
	function loadXMLDoc(str) 
	{
		document.getElementById("textHint").innerHTML = str;
	}
</script>
</head>
<body>
	<form name="Form1">
		<input type="radio" name="sex" value="Male" onclick="loadXMLDoc(this.value);"> M 
		<input type="radio" name="sex" value="Female" onclick="loadXMLDoc(this.value);">F
	</form>
	<div id="textHint">
	</div>
</body>
</html>