Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/09/2007, 04:45
menorcaol
 
Fecha de Ingreso: septiembre-2007
Mensajes: 3
Antigüedad: 16 años, 8 meses
Puntos: 0
w3c validation error

Buenos dias a todos, estoy intentado validar una web en el w3c, pero me da errores y alertas indicandome los siguientes puntos:

ALERTA character "<" is the first character of a delimiter but occurred as data .
…urn (((date.getTime()-totime_d.getTime())/time_d)<(-1));

ERRROR XML Parsing Error: StartTag: invalid element name .
…n (((date.getTime()-totime_d.getTime())/time_d)<(-1));

Os pego la zona del codigo que me esta dando problemas a ver si me podeis ayudar. Pues la funcion funciona perfectamente pero a la hora de validar... me da este fallo.
Esta funcion me sirve para llamar un calendario (DHTML Calendar).

Código:
<script type="text/javascript"> 
var fecha = new Date(); 
fecha.setDate(fecha.getDate()+1); 
var cal_inif_div = document.getElementById("cal_inif"); 
var cal_inif_date = new Calendar(true, fecha, Refreshinif); 
cal_inif_date.time_wNumbers = false; 
cal_inif_date.electric = false; 
cal_inif_date.getDateStatus = function(date) { 
var totime_d = new Date(); 
return (((date.getTime()-totime_d.getTime())/time_d)<(-1)); 
} 
cal_inif_date.ifFormat = "%d-%m-%Y"; 
cal_inif_date.create(cal_inif_div); 
cal_inif_date.show(); 
</script>
Gracias, cualquier sugerencia sera bien venida.
Pues he intentado a incluirlo dentro de un archivo js y luego llamarlo y nada, tambien he probado a crear una funcion y luego llamarla y nada... Estoy buscando una solucion a ver si lo consigo validar.