I'm trying to create (what I think is) a simple webpage to display on
the PcoketPC 2003. I've included the code I thought would work (and
it does on my desktop computer), but it doesn't on PcoketPC 2003
emulator (I don't have real hardware to test on). Can anyone lend a
hand?

Thanks

<html>
<head>
<title>Control HTML Layer Visibility</title>
<script language=jscript>
function toggleMe(layerName)
{ if (document.all[layerName].style.visibility == 'visible')
{ document.all[layerName].style.visibility='hidden';
window.alert('hiding');
}
else
{ document.all[layerName].style.visibility='visible';
window.alert('showing');
}
}
</script>

<style type="text/css">
#menu {position:absolute;
left:10px;
top:35px;
width:150px;
height:150px;
visibility:visible;
border:1px solid #ff0000;
}
</style>
</head>

<body>
<a href="#" onclick="toggleMe('menu')">Display Layer</a>
<div id="menu" onclick="toggleMe('menu')">My Layer</div>
</body>
</html>