Write a JavaScript program to read a stored cookie value.
<html>
<head>
<title>Read cookie example</title>
<script>
function readCookie()
{
var value = document.cookie;
var x = value.split("=");
document.getElementById("panel").innerHTML = "Hello, " + x[1]
}
</script>
</head>
<body onload="readCookie()">
<p id="panel"></p>
</body>
</html>
