/*
作者 :
睿哲資訊創意企業 鄭石春 0912238406
20080913
功能 :
在網頁上秀出電腦時間
範例 :
<span id=clock style=color:#878686; class=defaultFont2><script>ShowClock()</script></span>
*/

function ShowClock()
{
	var now = new Date();
	var year = now.getYear();
	var month = now.getMonth() + 1;
	var date = now.getDate();
	var hours = now.getHours();
	var minutes = now.getMinutes();
	if (minutes<10)
		minutes="0"+minutes
	var seconds = now.getSeconds();
	if (seconds<10)
		seconds="0"+seconds
	var TimeVal = year + "年" + month + "月" + date + "日 台灣時間 (GMT+8) " + hours + ":" +
	minutes + ":" + seconds;
	document.all.clock.innerText = TimeVal;
	timerID = setTimeout("ShowClock()",1000);
}

/*
作者 :
睿哲資訊創意企業 鄭石春 0912238406
20081014
功能 :
開窗
範例 :
open_window('data_delete.asp?sn="&ors("sn")&"');

*/
function open_window(strurl)
{
	window.open(strurl,'竹東鎮公所',"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,titlebar=no",true);
}

/*
作者 :
睿哲資訊創意企業 鄭石春 0912238406
20081014
功能 :
關窗
範例 :
close_window();

*/
function close_window()
{
	if (window.opener) {window.opener.history.go(0);self.close();}
	else {top.close();}
	window.opener=null;
}
