  function getTime() {
	now = new Date();
	y2k = new Date("Feb 10 2007 08:00:00");
	days = (now - y2k) / 1000 / 60 / 60 / 24;
	daysRound = Math.floor(days);
	hours = (now - y2k) / 1000 / 60 / 60 - (24 * daysRound);
	hoursRound = Math.floor(hours);
	minutes = (now - y2k) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
	minutesRound = Math.floor(minutes);
	seconds = (now - y2k) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
	secondsRound = Math.round(seconds);
	sec = (secondsRound == 1) ? "" : "";
	min = (minutesRound == 1) ? ":" : ":";
	hr = (hoursRound == 1) ? ":" : ":";
	dy = (daysRound == 1)  ? " hari - " : " hari - "
	document.wedding.input1.value = daysRound  + dy + hoursRound + hr + minutesRound + min + secondsRound + sec;
	newtime = window.setTimeout("getTime();", 1000);
  }

  function MakeArrayday(size) {
	this.length = size;
	for(var i = 1; i <= size; i++) {
	  this[i] = "";
    }
    return this;
  }
  function MakeArraymonth(size) {
	this.length = size;
	for(var i = 1; i <= size; i++) {
	  this[i] = "";
	}
	return this;
  }
function funClock() {
/*
if (!document.layers && !document.all)
return;
*/
var runTime = new Date();
var hours = runTime.getHours();
var minutes = runTime.getMinutes();
var seconds = runTime.getSeconds();
var dn = "AM";
if (hours >= 12) {
dn = "PM";
hours = hours - 12;
}
if (hours == 0) {
hours = 12;
}
if (minutes <= 9) {
minutes = "0" + minutes;
}
if (seconds <= 9) {
seconds = "0" + seconds;
}
movingtime = "<b>"+ hours + ":" + minutes + ":" + seconds + " " + dn + "</b>";
if (document.layers) {
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all) {
        document.getElementById("clock").innerHTML = movingtime;
}
else {
	document.getElementById("clock").innerHTML = movingtime;
}
setTimeout("funClock()", 1000);
}
