I have a form with a text box in it. when uses click on the text box i want it to pop up a new window with a calandar in it, the user selects the date by clicking on it, the calandar window closes and the date selected appears in the text box. I tried playing with a few java scripts to do this but i could not get any of them to work. It does nothing
-------------------------------------------------------------------------
<html>
<head>
<title>test</title>
<script language="JavaScript1.2">
function popcalendar() {
newWindow = window.open('calendar.php', 'myWindow2','width=570,height=400,directories=0,status=1,menuBar=0,scrollBars=1,resizable=1');
newWindow.focus()
}
</script>
<body>
<input type='text' size='13' name='displayDate' OnClick=\"javascript

opcalendar()>
</body>
</html>
-------------------------------------------------------------------------