Código HTML:
<head> <title></title> <script language="JavaScript" src="./calendario/CalendarPopup.js" type="text/javascript"> </script> <script language="JavaScript" src="./slidemenu2/slidemenu.js" type="text/javascript"> /********************************************************************************** SlideMenu 2.0 * Copyright (C) 2002 Thomas Brattli * This script was released at DHTMLCentral.com * Visit for more great scripts! * This may be used and changed freely as long as this msg is intact! * We will also appreciate any links you could give us. * * Made by Thomas Brattli * *Script date: 08/05/2002 (keep this date to check versions) *********************************************************************************/ </script> <script language="JavaScript" src="./menu_3.js" type="text/javascript"> </script> <!-- This prints out the default stylehseets used by the DIV style calendar. Only needed if you are using the DIV style popup --> <SCRIPT LANGUAGE="JavaScript">document.write(getCalendarStyles());</SCRIPT> <!-- These styles are here only as an example of how you can over-ride the default styles that are included in the script itself. --> <SCRIPT LANGUAGE="JavaScript" ID="jscal1x"> var cal1x = new CalendarPopup(); </SCRIPT> <script languaje="JavaScript"> function CambiarFecha(Frm) { alert('hola'); Frm.Accion.value='RecargarFecha' Frm.submit(); } </script> </head> <body> <form name="Frm" method="post" action="CrearMinuta.php"> <INPUT type="hidden" name="MinutaId" value=""> <INPUT type="hidden" name="Accion" value="CrearMinuta"> <!--Encabezado y Crear la minuta--> <table width="500" align="center" cellspacing="1" cellpadding="0" border="0"> <tr> <td> </td> <td class="CampoMinuta" style="text-align: right; width: 50%;">Fecha: </td> <td align="left"> <input name="Fecha" type="text" size="10" class="entrada" value="2007-11-04" onchange="CambiarFecha(document.Frm); return true;" onclick="CambiarFecha(document.Frm); return true;"> <a href="#" onClick="cal1x.select(document.Frm.Fecha, document.Frm.Fecha, 'anchor1x', 'yyyy-MM-dd'); return false;" title="Click para abrir Calendario" name="anchor1x" id="anchor1x" > <img src="imagenes/calbtn.gif" border="0" valign="top" align="center"> </a> </td> <td align="left" ><input class="boton" type="submit" name="Crear" value=" Crear " title="Crear una nueva minuta de trabajo"></td> </TR> </table> </body>