<!--
//脚本容错
function killErrors() {
return true;
}
window.onerror = killErrors;


//显示年月日
function showweek() // 显示中文星期 
{now = new Date() //定义新对象，new具有Date的性质   
if (now.getDay() == 1) return ("星期一")   
if (now.getDay() == 2) return ("星期二")   
if (now.getDay() == 3) return ("星期三")  
if (now.getDay() == 4) return ("星期四")  
if (now.getDay() == 5) return ("星期五")  
if (now.getDay() == 6) return ("星期六")   
if (now.getDay() == 0) return ("星期日")   
}   
function showdate() //显示系统日期   
{   
var now = new Date()   
var year = now.getYear()   
var month = now.getMonth()+1   
var day = now.getDate()   
return year+"年"+month+"月"+day+"日"   
} 

//站内搜索
function checkform(){
						  if (document.frm_search.keyword.value==""){
							  ymPrompt.alert('请输入关键字!',null,null,'天古装饰网提醒您:');
							  document.frm_search.keyword.focus();
							  return false;
							  }
						  else
							  return true;
						}

//复制文本时在后面加上页面网址
var mb="本文转自天古装饰网[WWW.TGZS.COM.CN]:"+location.href
function onKeyDown()
{
	if ((event.keyCode==116)||(window.event.ctrlKey)||(window.event.shiftKey)||(event.keyCode==122))
	{
	event.keyCode=0;
	event.returnValue=false;
	}
}

//双击鼠标滚动屏幕的代码
var currentpos,timer;
function initialize()
{
timer=setInterval ("scrollwindow ()",30);
}
function sc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos !=document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize

//更改字体大小
var status0='';
var curfontsize=10;
var curlineheight=18;
function fontZoomA(){
  if(curfontsize>8){
    document.getElementById('fontzoom').style.fontSize=(--curfontsize)+'pt';
	document.getElementById('fontzoom').style.lineHeight=(--curlineheight)+'pt';
  }
}
function fontZoomB(){
  if(curfontsize<64){
    document.getElementById('fontzoom').style.fontSize=(++curfontsize)+'pt';
	document.getElementById('fontzoom').style.lineHeight=(++curlineheight)+'pt';
  }
}


//多滑门JS
function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i <tabList.length; i++)
{
  if (i == Num)
  {
   thisObj.className = "active"; 
      document.getElementById(tabObj+"_Content"+i).style.display = "block";
  }else{
   tabList[i].className = "normal"; 
   document.getElementById(tabObj+"_Content"+i).style.display = "none";
  }
} 
}


//-->