function clickTime() {
	var thistime = new Date();
	var years = thistime.getYear();
	var days = thistime.getDay();
	var hours = thistime.getHours();
	var minutes = thistime.getMinutes();
	var seconds = thistime.getSeconds();
	var lastDate = new Date(thistime.getYear(), thistime.getMonth(), thistime
					.getDate(), hours, 5 * parseInt(minutes / 5));
	if (hours > 17 || hours < 9) {
		document.getElementById("mainbody").parentNode.className = "row11";
		if (hours >= 18) {
			document.getElementById("mainbody").innerHTML = "下次更新时间是明日9:00";
		} else {
			document.getElementById("mainbody").innerHTML = "下次更新时间是今日9:00";
		}
		document.getElementById("lastTime").innerHTML = "上次更新时间18:00";
	} else {
		document.getElementById("mainbody").parentNode.className = "row1";
		minutes = 4 - minutes % 5;
		seconds = 59 - seconds;
		var smin = lastDate.getMinutes();
		if (smin < 10)
			smin = "0" + smin;
		document.getElementById("lastTime").innerHTML = "上次更新时间"
				+ (lastDate.getHours()) + ":" + smin;
		if (minutes == 0 && seconds == 0) {
			// window.location.reload();
			document.getElementById('timeIframe').src = 'production/searchhomepage.xhtml';
		} else {
			if (minutes < 10)
				minutes = "0" + minutes;
			if (seconds < 10)
				seconds = "0" + seconds;
			thistime = minutes + ":" + seconds;
			document.getElementById("mainbody").innerHTML = thistime;
		}
	}
	//setTimeout("clickTime()", 1000);
}
// ]]>

