//盒高度相同
function setboxHeight(){
  var maxHeight=0;
  var a=[];
  for(var i=0,n=arguments.length;i<n;i++){
    a[i]=document.getElementById(arguments[i]);
    if(a[i].scrollHeight>maxHeight)
      maxHeight=a[i].scrollHeight;
  }
  for(i=0;i<n;i++)
    a[i].style.height=maxHeight+'px';
}
// 复制网址
function copyToClipBoard(){
	var clipBoardContent=''; 
	//clipBoardContent+=document.title;
	//clipBoardContent+='\r\n';
	clipBoardContent+=window.location.href;
	if(navigator.userAgent.toLowerCase().indexOf('ie') > -1) {
		clipboardData.setData('Text',clipBoardContent);
		alert ("本文网址“"+clipBoardContent+"”\n\n已经复制到您的剪贴板中\n\n您可以使用Ctrl+V快捷键粘贴到需要的地方");
	} else {
		prompt("请复制网站地址:",clipBoardContent); 
	}
}
// 加入收藏
function AddFavor(){
	if(navigator.userAgent.toLowerCase().indexOf('ie') > -1) {
		window.external.addFavorite(window.location.href,window.document.title)
	} else if (navigator.userAgent.toLowerCase().indexOf('opera') > -1) {
		alert ("请使用Ctrl+T将本页加入收藏夹");
	} else {
		alert ("请使用Ctrl+D将本页加入收藏夹");
	}
}
// 关闭页面
function closepage(){
	window.opener=null;
	window.close();
}
//滑动门
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";
  }
} 
}