//henxing 139 ad
/*
var siteurl = document.URL;
if(siteurl.indexOf("/page/")!=-1 || siteurl.indexOf("web_top")!=-1 || siteurl.indexOf("admin")!=-1)
	{
	  document.write('');	
	}
	else if(siteurl.indexOf("/article")!=-1 || siteurl.indexOf("/list_")!=-1 || siteurl.indexOf(".asp")!=-1 || siteurl.indexOf(".htm")!=-1 || siteurl.indexOf("/campus")!=-1 || siteurl.indexOf("/essay")!=-1 || siteurl.indexOf("/paper")!=-1){
		 document.write('');
	}else{
	 function div_hide(){
setTimeout("div_139.style.display='none'",60000);}

document.write('<div align="center" id="div_139">');
document.write("<iframe src='/recommend/hengxin/mail_fm774-338.htm' height='340' width='776' marginwidth='0' marginheight='0' hspace='0' vspace='0' frameborder='0' scrolling='no' ALIGN='default'></iframe>");
document.write('</div>');

div_hide();
  }
*/
//henxing 139 ad

document.write('<script language="javascript" type="text/javascript" src="http://www.gzu521.com/recommend/firefox/firefox.js"></script>');

//屏蔽组合键ctrl+N 
function KeyDown(){    
  if ((window.event.altKey)&& 
      ((window.event.keyCode==37)||   //屏蔽 Alt+ 方向键 ← 
       (window.event.keyCode==39))){  //屏蔽 Alt+ 方向键 → 
     alert("不准你使用ALT+方向键前进或后退网页！"); 
     event.returnValue=false; 
     } 
  if ((event.keyCode==8)||            //屏蔽退格删除键 
      (event.keyCode==116)){          //屏蔽 F5 刷新键 
     event.keyCode=0; 
     event.returnValue=false; 
     } 
  if ((event.ctrlKey)&&(event.keyCode==78)){   //屏蔽 Ctrl+n 
     event.returnValue=false; 
     } 
  if ((event.shiftKey)&&(event.keyCode==121)){ //屏蔽 shift+F10 
     event.returnValue=false; 
     } 
  if (event.keyCode==122){ //屏蔽 F11 
     event.returnValue=false; 
     } 
  } 


//进度条
var intervalID=0;
function loadBar(f1)
//fl is show/hide flag
{
	if (f1==0){
	 window.clearInterval(intervalID);
   playLoadBar(0);
  }
  else if (f1==1){
  	if (document.readyState=='complete'){ 
       playLoadBar(0);
    } else {
    	 intervalID=window.setInterval("playLoadBar(1)",50);
    }
  }
  else {
  }
}

function playLoadBar(f2)
{
  var x,y;

  if (self.innerHeight)
  {// all except Explorer
    x = self.innerWidth;
    y = self.innerHeight;
  }
  else 
  if (document.documentElement && document.documentElement.clientHeight)
  {// Explorer 6 Strict Mode
   x = document.documentElement.clientWidth;
   //y = document.documentElement.clientHeight;
   y = document.documentElement.clientHeight + document.documentElement.scrollTop
  }
  else
  if (document.body)
  {// other Explorers
   x = document.body.clientWidth;
   //y = document.body.clientHeight;
   y = document.body.clientHeight + document.body.scrollTop;
  }
   
    var el=document.getElementById('loader');
	if(null!=el)
	{
		//var top = (y/2) - 50;
		var top = y - 35;
		var left = x - 175;
		//var left = 0;
		//if( left<=0 ) left = 10;
		el.style.visibility = (f2==1)?'visible':'hidden';
		el.style.display = (f2==1)?'block':'none';
		el.style.left = left + "px"
		el.style.top = top + "px";
		el.style.zIndex = 9999999;
	}
}
  

function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=70
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}

function urlencode(str) {
	var ns = (navigator.appName=="Netscape") ? 1 : 0;
	if (ns) { return escape(str); }
	var ms = "%25#23 20+2B?3F<3C>3E{7B}7D[5B]5D|7C^5E~7E`60";
	var msi = 0;
	var i,c,rs,ts ;
	while (msi < ms.length) {
		c = ms.charAt(msi);
		rs = ms.substring(++msi, msi +2);
		msi += 2;
		i = 0;
		while (true)	{ 
			i = str.indexOf(c, i);
			if (i == -1) break;
			ts = str.substring(0, i);
			str = ts + "%" + rs + str.substring(++i, str.length);
		}
	}
	return str;
}


function doZoom(size){
document.getElementById('article').style.fontSize=size+'px'
document.getElementById('article').style.lineHeight=(size+3)+'pt'
}

	function doPrint(){
	var str="<html>";
	var article;
	var css;
	var strFontSize='【<A href="javascript:doZoom(18)">大</A> <A href="javascript:doZoom(15)">中</A> <A href="javascript:doZoom(12)">小</A>】'
	var strdoPrint="doPrint()";
	var strTmp;
	
	  /*
		css="<style>"
		+"#nocopy {DISPLAY: none}"
		+"body{font-family:宋体}"
		+"td,.f12{font-size:12px}"
		+".f24 {font-size:24px;}"
		+".f14 {font-size:14px;}"
		+".title14 {font-size:14px;line-height:130%}"
		+".l17 {line-height:170%;}"
		+"</style>";
		str +=	css;
		*/
		str +=  '<link rel="stylesheet" type="text/css" href="/css/campusStyle.css">';
		str +=	'<meta http-equiv="content-type" content="text/html; charset=gb2312">';
		str +=	'<title>'+document.title+'</title>';
		//str +=	"<body bgcolor=#ffffff topmargin=5 leftmargin=5 marginheight=5 marginwidth=5 oncontextmenu='return false' ondragstart='return false' onselectstart='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false' onmouseup='document.selection.empty()' onLoad='window.print()'>";
		str +=	"<body bgcolor=#ffffff topmargin=5 leftmargin=5 marginheight=5 marginwidth=5 onLoad='window.print()'>";
		str +=	"<center><table width=600 border=0 cellspacing=0 cellpadding=0><tr><td height=34 align=right><td align=right valign=bottom><a href='javascript:window.print()'>打印</a> <a href='javascript:history.back()'>返回</a></td></tr></table>";
		str +=	"<table width=600 border=0 cellpadding=0 cellspacing=10 bgcolor=#EDF0F5>";
		str +="<TR><TD><h2>"+document.getElementById('title').innerHTML+"</h2></TD></TR>";
		str +="<TR><TD><HR SIZE=1 bgcolor='#d9d9d9'></TD></TR>";
		str +="<TR><TD align=right height=20>http://www.Gzu521.com 贵州学习网</TD></TR>";
		str +="<tr><td>";
		
		article=document.getElementById('article').innerHTML;
		str +=article
		str += window.location.href

		str +=	"</td></tr></table></center>";
		str +=	"</body></html>";
		document.write(str);
		document.close();
	}


//去掉空格
function trim(obj){
	return obj.replace(/(^\s*)|(\s*$)/g, "");
}


// 判断字符串长度，汉字按双字节
function Len(str)
{
    var i,sum;
    sum=0;
    for(i=0;i<str.length;i++)
    {
        if ((str.charCodeAt(i)>=0) && (str.charCodeAt(i)<=255))
            sum=sum+1;
        else
            sum=sum+2;
    }
    return sum;
}


function pop(pageurl,popname,features) {
 var
 popwin=(window.open(pageurl,popname,features));
 return false;
}






function openscript(url, width, height) {
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=yes,status=yes' );
}
ie = (document.all)? true:false
if (ie){
function ctlent(eventobject){if(event.ctrlKey && window.event.keyCode==13){this.document.FORM.submit();}}
}




//***********默认设置定义.*********************
tPopWait=50;//停留tWait豪秒后显示提示。
tPopShow=5000;//显示tShow豪秒后关闭提示
showPopStep=20;
popOpacity=99;

//***************内部变量定义*****************
sPop=null;
curShow=null;
tFadeOut=null;
tFadeIn=null;
tFadeWaiting=null;

document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText {  background-color: #F8F8F5;color:#000000; border: 1px #000000 solid;font-color: font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");
document.write("</style>");
document.write("<div id='dypopLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");


function showPopupText(){
var o=event.srcElement;
try{
	MouseX=event.x;
	MouseY=event.y;
	if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
        if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
	if(o.dypop!=sPop) {
			sPop=o.dypop;
			clearTimeout(curShow);
			clearTimeout(tFadeOut);
			clearTimeout(tFadeIn);
			clearTimeout(tFadeWaiting);	
			if(sPop==null || sPop=="") {
				dypopLayer.innerHTML="";
				dypopLayer.style.filter="Alpha()";
				dypopLayer.filters.Alpha.opacity=0;	
				}
			else {
				if(o.dyclass!=null) popStyle=o.dyclass 
					else popStyle="cPopText";
				curShow=setTimeout("showIt()",tPopWait);
			}
			
	}
}catch(E){}
}

function showIt(){
		dypopLayer.className=popStyle;
		dypopLayer.innerHTML=sPop;
		popWidth=dypopLayer.clientWidth;
		popHeight=dypopLayer.clientHeight;
		if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
			else popLeftAdjust=0;
		if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
			else popTopAdjust=0;
		dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
		dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
		dypopLayer.style.filter="Alpha(Opacity=0)";
		fadeOut();
}

function fadeOut(){
	if(dypopLayer.filters.Alpha.opacity<popOpacity) {
		dypopLayer.filters.Alpha.opacity+=showPopStep;
		tFadeOut=setTimeout("fadeOut()",1);
		}
		else {
			dypopLayer.filters.Alpha.opacity=popOpacity;
			tFadeWaiting=setTimeout("fadeIn()",tPopShow);
			}
}

function fadeIn(){
	if(dypopLayer.filters.Alpha.opacity>0) {
		dypopLayer.filters.Alpha.opacity-=1;
		tFadeIn=setTimeout("fadeIn()",1);
		}
}
document.onmouseover=showPopupText;




//cookie
    var caution = false 
    function setCookie(name, value, expires, path, domain, secure) { 
    var curCookie = name + "=" + escape(value) + 
    ((expires) ? "; expires=" + expires.toGMTString() : "") + 
    ((path) ? "; path=" + path : "") + 
    ((domain) ? "; domain=" + domain : "") + 
    ((secure) ? "; secure" : "") 
    if (!caution || (name + "=" + escape(value)).length <= 4000) 
    document.cookie = curCookie 
    else 
    if (confirm("Cookie exceeds 4KB and will be cut!")) 
    document.cookie = curCookie 
    } 
    function getCookie(name) { 
    var prefix = name + "=" 
    var cookieStartIndex = document.cookie.indexOf(prefix) 
    if (cookieStartIndex == -1) 
    return null 
    var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length) 
    if (cookieEndIndex == -1) 
    cookieEndIndex = document.cookie.length 
    return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)) 
    } 
    function deleteCookie(name, path, domain) { 
    if (getCookie(name)) { 
    document.cookie = name + "=" + 
    ((path) ? "; path=" + path : "") + 
    ((domain) ? "; domain=" + domain : "") + 
    "; expires=Thu, 01-Jan-70 00:00:01 GMT" 
    } 
    } 
    function fixDate(date) { 
    var base = new Date(0) 
    var skew = base.getTime() 
    if (skew > 0) 
    date.setTime(date.getTime() - skew) 
    } 