<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#hidden{
display:block;
position:relative;
background:#FFFFCC;
border:1px solid red;
height:auto;
width:auto;
background-color: #E4E4CB;
}
</style>
<script type="text/javascript">
function toggle(){
var state=document.getElementById("hidden").style.display;
if(state=='block'){
document.getElementById("hidden").style.display='none';
}else{
document.getElementById("hidden").style.display='block';
}
}
window.onload=function(){
var button=
document.getElementById("eventButton");
if(button.addEventListener){
button.addEventListener("click",toggle,false)
}else if(button.attachEvent){
button.attachEvent("onclick",toggle);
}
};
</script>
</head>
<body>
<input type="button" id="eventButton" value="hide/show" />
<div id ="hidden">
hidden
</div>
</body>
</html>