<!--
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;}
function startclock () {
stopclock();
showtime();}
function showtime () {

var now = new Date();
function initArray(){
	this.length=initArray.arguments.length
	for(var i=0;i<this.length;i++)
	this[i+1]=initArray.arguments[i] 
}

var d=new initArray(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六");

var timeValue = ""+now.getYear()+"年"+(now.getMonth()+1)+"月"+now.getDate()+"日"+" "+d[now.getDay()+1]+" "

var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
timeValue += ((hours >= 12) ? "下午 " : "上午 " )
timeValue += ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
document.getElementById("thetime").innerText = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;}
/*var func = window.onload; 
window.onload = function () {
	if(typeof func == 'function') {
		func();
	}
	startclock();
}
var $time = jQuery.noConflict(); 
$time(document).ready(function(){
	startclock();
})
*/
window.onload = startclock;

function addCookie(){　 // 加入收藏夹
	if (document.all){
		window.external.addFavorite('http://www.qxy.com.cn/qxy_web/pages/index.faces', '大连人力资源市场网');
	}else if (window.sidebar){
		window.sidebar.addPanel('大连人力资源市场网', 'http://www.qxy.com.cn/qxy_web/pages/index.faces', "");
	}
}

function setHomepage(){　 // 设置首页
	if (document.all){
		document.body.style.behavior = 'url(#default#homepage)';
		document.body.setHomePage('http://www.qxy.com.cn/qxy_web/pages/index.faces');
	}else if (window.sidebar){
		if (window.netscape){
			try {
				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
			}catch (e) {
				alert("该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true");
			}
		}
		var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
		prefs.setCharPref('browser.startup.homepage', 'http://www.qxy.com.cn/qxy_web/pages/index.faces');
	}
}


//-->
