Ok, alors voici le début de ma page :
<HTML>
<HEAD>
<Title>Détail pour le dépôt </title>
<SCRIPT language=JavaScript>
<!--
function maxWindow()
{window.moveTo(0,0);
if (document.all)
{top.window.resizeTo(screen.availWidth,screen.availHeight);}
else if (document.layers||document.getElementById)
{if(top.window.outerHeight<screen.availHeight||Top.window.outerWidth<screen.availWidth)
{top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;}}}
//-->
</SCRIPT>
<link rel='stylesheet' href='../../gnoocalendar.css' />
<script type="text/javascript" src="../../gnoocalendar.js"></script>
<script type="text/javascript">
var CL = new GnooCalendar("CL", 5, 5,"","/AGEN/detail.htm");
function init()
{
CL.init("calend", document.forms["testform"].elements["dateDetail"]);
CL.isDragable(false);
CL.initdate("11/09/2007");
}
function AddDateSelector(inputename, inputename2,value)
{
document.write('<input type="text" name="'+inputename+'" SIZE = 10 style="text-align:center;" value="'+value+'"');
document.write('> <input type="image" src="../../images/calendar.gif" name="'+inputename2+'" onclick="CL.show2();return false;" >');
}
</script>
<div id="calend" style="position: absolute; top: 1px; width: 190px; height: 190px; z-index: 1; border: solid 0px #000000;visibility: hidden;"></div>
</HEAD>
<BODY onload="init();maxWindow();">
Ensuite c'est un tableau et mon sélecteur de date.
Si je mets <BODY onload="alert("toto");init();maxWindow();"> je n'ai plus de problèmes et c'est ça que je comprends pas.