// agregados

function CuentaRegresiva() {
now = new Date();
y2k = new Date("May 12 2011 10:00:00" );
days = (y2k - now) / 1000 / 60 / 60 / 24;
daysRound = Math.floor(days);
hours = (y2k - now) / 1000 / 60 / 60 - (24 * daysRound);
hoursRound = Math.floor(hours);
minutes = (y2k - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
minutesRound = Math.floor(minutes);
seconds = (y2k - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
secondsRound = Math.round(seconds);
sec = (secondsRound == 1) ? " seg" : " Seg";
min = (minutesRound == 1) ? " min" : " Min";
hr = (hoursRound == 1) ? " hrs" : " Hrs ";
dy = (daysRound == 1) ? " Día" : " Dís "
if (daysRound==0 && hoursRound==0 && minutesRound==0 && secondsRound==0)
document.write("Inicia la Feria Tabasco 2011" );
else {
document.ContadorFRM.TxtDias.value = daysRound;
/*document.ContadorFRM.TxtDiasL.value = dy;*/
document.ContadorFRM.TxtHoras.value =  hoursRound;
document.ContadorFRM.TxtHorasL.value =  hr ;
document.ContadorFRM.TxtMinutos.value = minutesRound;
document.ContadorFRM.TxtMinutosL.value = min  ;
document.ContadorFRM.TxtSegundos.value = secondsRound ;
document.ContadorFRM.TxtSegundosL.value = sec ;
newtime = window.setTimeout("CuentaRegresiva();", 1000);
}
}

