function gebi(s){if(document.getElementById){return document.getElementById(s);}else{return eval('document.all.' + s);}}
function gebi$(s){if(document.getElementById){return parent.document.getElementById(s);}else{return eval('parent.document.all.' + s);}}
function ParseInt(n){n=parseInt(n);return isNaN(n)?0:n;}
function PageNavgList(pMax,pNow,pSize,pTemp){try{var i=1;if(!pNow) pNow=1;if(pSize<1){pSize=1;}var s='<a href="javascript:;" class="no" target="_self">第'+pNow+'/'+pMax+'页</a>';if(pMax>10){if(pNow>5){pMax=pNow*1+5;} else{pMax=10;}i=pMax-10;}if(i<1) i=1;for(i;i<=pMax;i++){s+=(i==pNow)?'<a href="javascript:;" class="no" target="_self">'+i+'</a>':' <a href="'+pTemp.replace('{page}',i)+'" target="_self">'+i+'</a>';}return s;}catch(e){alert(e.message);}}
function getCookie(cookieName){try{var cookieValue='';var posName=document.cookie.indexOf(escape(cookieName)+'=');if (posName==-1) return '';var posValue=posName+(escape(cookieName)+'=').length;var endPos=document.cookie.indexOf(';',posValue);return unescape(document.cookie.substring(posValue,(endPos==-1)?99999:endPos));}catch(e){}}
function setCookie(nm,vu,tm){try{var expires=new Date();if(typeof(tm)=='undefined') tm=60*240;expires.setTime(expires.getTime()+tm*60000);document.cookie=escape(nm)+'='+escape(vu)+'; expires='+expires.toGMTString()+'; path=/; ';}catch(e){}}
function swf(w,h,u){var s='';s+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+w+'" height="'+h+'" title="">';s+='	<param name="movie" value="'+u+'" />';s+='	<param name="quality" value="high" /><param name="SCALE" value="exactfit" />';s+='	<embed src="'+u+'" width="'+w+'" height="'+h+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="exactfit"></embed>';s+='</object>';document.write(s);}
function echo(s){document.write(s);}
function disableOtherSubmit()
        {            var obj = event.srcElement;
            var objs = document.getElementsByTagName('INPUT');
            for(var i=0; i<objs.length; i++)
            {
                if(objs[i].type.toLowerCase() == 'submit')
                {
                    objs[i].disabled = true;
                }
            }        }

function Mask(s)
{
	o1=gebi('t5Mask8');
	o2=gebi('t5Mask9');
	if(o1==null)
	{
		o1=document.createElement('div');
		o1.setAttribute('id','t5Mask8');
		o1.style.cssText='position:absolute;z-index:785199;width:'+document.body.offsetWidth+'px;height:'+document.body.scrollHeight+'px;left:0;top:0;opacity: 0.6;-moz-opacity:0.6;filter:Alpha(opacity=60);background-color:#898989;text-align:center;padding-top:200px;color:#fff;font-size:20px;';
		document.body.appendChild(o1);
		o2=document.createElement('div');
		o2.setAttribute('id','t5Mask9');
		o2.style.cssText='position:absolute;z-index:785299;width:100%;height:80px;left:0;background-color:#f3f7f9;text-align:left;padding:10px;color:#000;font-size:12px;top:expression(eval(document.documentElement.scrollTop)+300);';
		document.body.appendChild(o2);
	}
	o2.innerHTML=s;
	o1.style.display=o2.style.display=s?'block':'none';

}



function Vote(n)
{
	document.frmVote.PID.value=n;
	Mask('\
	<input type="text" id="randPass" value="" size="5" maxlength="5" >\
	<img id="imgRand" onclick="randImg()"  style="cursor:pointer;">\
	<input type="button" onclick="Vote2()" value=" 提 交 ">\
	<input type="button" onclick="Mask(null)" value=" 取消 ">\
	<a href="?News/Info/323.htm" target="_blank">关于组委会防作弊机制 </a>\
	');
	randImg();
}

function showrandimg () {gebi('imgRand').style.visibility = 'visible';}

function randImg()
{
	gebi('imgRand').src='/rand/?'+Math.random().toString().substr(2);
}

function Vote2()
{
	var o=document.frmVote;
	o.CN0.value=gebi('randPass').value;
	o.submit();
}

function Voted(id)
{
	alert("谢谢您的投票！");
}

function errvote()
{
	alert("验证码错误！");
}