﻿// JScript 文件
//选项卡
function setTab(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var con=document.getElementById("con_"+name+"_"+i);
  menu.className=i==cursel?"hover":"";
  con.style.display=i==cursel?"block":"none";
 }
}
function fontZoomEx(size)
			{
				if(size==12)
			   {			   
				document.getElementById('LabContent').style.fontSize='12px';	
				document.getElementById('LabContent').style.lineHeight='22px';
				document.getElementById('LabTitle').style.fontSize='16px';
				}
				else  if(size==14)
			   {			   
				document.getElementById('LabContent').style.fontSize='14px';	
				document.getElementById('LabContent').style.lineHeight='24px';
				document.getElementById('LabTitle').style.fontSize='18px';
				}
				else if(size==16)
				{
				document.getElementById('LabContent').style.fontSize='16px';	
				document.getElementById('LabContent').style.lineHeight='26px';
				document.getElementById('LabTitle').style.fontSize='20px';
				}
				
				
			}

//添加到收藏夹 兼容IE 和 Firefox
function setHome(title, url) {    
    if(!title) {    
        var title = window.document.title;    
    }    
    if(!url) {    
        var url = window.document.location;    
    }    
    try{    
        if (document.all){     
            window.external.addFavorite(url,title);     
        } else if (window.sidebar) {     
            window.sidebar.addPanel(title, url,"");     
        }     
    }catch(e){};    
}  
function copyToClipBoard(){ 

var clipBoardContent=document.location; 

clipBoardContent+='\r\n'; 

window.clipboardData.setData("Text",clipBoardContent); 

alert("复制成功喽！你可以粘贴在QQ消息里送给你的好朋友呀！感谢您的支持哦！"); 

} 