/*弹出窗口并获取当前页标题、网址信息*/
function openwinx(url,name,w,h)
{ 
    window.open(url,name,"top=100,left=400,width=" + w + ",height=" + h + ",toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no")
}
/*更改字体大小*/
var status0='';
var curfontsize=10;
var curlineheight=18;
function contentA(){
  if(curfontsize>8){
    document.getElementById('content').style.fontSize=(--curfontsize)+'pt';
	document.getElementById('content').style.lineHeight=(--curlineheight)+'pt';
  }
}
function contentB(){
  if(curfontsize<64){
    document.getElementById('content').style.fontSize=(++curfontsize)+'pt';
	document.getElementById('content').style.lineHeight=(++curlineheight)+'pt';
  }
}
/*获取当前URL并复制到粘贴板*/
function CText()
{ tt=location.href;
clipboardData.setData('text',tt);
alert(location.href+' 网址已复制，粘贴给好友请按Crtl+V。');
}
/*设为主页*/
function h(obj,url){
obj.style.behavior='url(#default#homepage)';
obj.setHomePage(url);
}
/*第一种形式 第二种形式 更换显示样式*/
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";
 }
}