Пожалуйста помогите
Есть таймер обратного отсчета:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Тест</title>
<script type="text/javascript">
<!--
var newYear = new Date().getTime()+111000;
function newYearIn()
{
var now = new Date();
var totalRemains = (newYear-now.getTime());
if (totalRemains>1)
{
var RemainsSec=(parseInt(totalRemains/1000));
var RemainsFullDays=(parseInt(RemainsSec/(24*60*60)));
var secInLastDay=RemainsSec-RemainsFullDays*24*3600;
var RemainsFullHours=(parseInt(secInLastDay/3600));
if (RemainsFullHours<10){RemainsFullHours="0"+Remains FullHours};
var secInLastHour=secInLastDay-RemainsFullHours*3600;
var RemainsMinutes=(parseInt(secInLastHour/60));
if (RemainsMinutes<10){RemainsMinutes="0"+RemainsMinu tes};
var lastSec=secInLastHour-RemainsMinutes*60;
if (lastSec<10){lastSec="0"+lastSec};
var mcend = Date.parse("Jan 1, 2010, 00:00:00");
var mcnow = now.getTime();
var mc = ((mcend-mcnow)/10).toFixed(0).substr(8);
document.getElementById('newyear').innerHTML = "Время на ответ: "+RemainsFullDays+" дней "+RemainsFullHours+":"+RemainsMinutes+":"+lastSec+ "."+mc;
setTimeout("newYearIn()",10);
}
else
{
document.form1.submit();
}
}
//-->
</script>
</head>
<body onload="newYearIn();">
<form id="form1" name="form1" method="post" action="http://10.0.0.2/cgi-bin/TestServer3.exe">
<input type="submit" name="buttonE" id="buttonE" value="CC" />
</form>
<span id="newyear"></span>
</body></html>
как выводить время не в таге span, а например через input type="text"
|