function write_time(){
	now = new Date(),hour = now.getHours()
	if(hour < 6){document.write("凌晨好")}
	else if (hour < 9){document.write("早上好")}
	else if (hour < 12){document.write("上午好")}
	else if (hour < 14){document.write("中午好")}
	else if (hour < 19){document.write("下午好")}
//	else if (hour < 19){document.write("傍晚好")}
//	else if (hour < 22){document.write("晚上好")}
	else {document.write("晚上好")}
}

function network_error(){
	alert('网络故障，请联系网络管理员！');
}
function block(id){
	if(typeof(id) == '' || typeof(id) == "undefined"){
		id = 'displayBox';
	}
	$.blockUI({ 
        message: $('img#'+id), 
        css: { 
            top:  ($(window).height() - 100) /2 + 'px', 
            left: ($(window).width() - 100) /2 + 'px', 
            width: '100px' 
        } 
    }); 
}
function unblock(msg){
	var show_alert = true;
	if(typeof(msg) == '' || typeof(msg) == "undefined"){
		show_alert = false;
	}
	$.unblockUI({ 
        onUnblock: function(){ if(show_alert){alert(msg);} } 
    }); 
}
