<!--
var brOK=false; //浮动广告
var mie=false;
var aver=parseInt(navigator.appVersion.substring(0,1));
var aname=navigator.appName;

function checkbrOK()
{if(aname.indexOf("Internet Explorer")!=-1)
   {if(aver>=4) brOK=navigator.javaEnabled();
    mie=true;
   }
 if(aname.indexOf("Netscape")!=-1)  
   {if(aver>=4) brOK=navigator.javaEnabled();}
}

var vmin=2;
var vmax=5;
var vr=2;
var timer1;

function Chip(chipname,width,height)
{this.named=chipname;
 this.vx=vmin+vmax*Math.random();
 this.vy=vmin+vmax*Math.random();
 this.w=width;
 this.h=height;
 this.xx=0;
 this.yy=0;
 this.timer1=null;
}

function movechip(chipname)
{
 if(brOK)
  {eval("chip="+chipname);
   if(!mie)
    {pageX=window.pageXOffset;
     pageW=window.innerWidth;
     pageY=window.pageYOffset;
     pageH=window.innerHeight;
    }
   else
    {pageX=window.document.body.scrollLeft;
     pageW=window.document.body.offsetWidth-8;
     pageY=window.document.body.scrollTop;
     pageH=window.document.body.offsetHeight;
    } 

   chip.xx=chip.xx+chip.vx;
   chip.yy=chip.yy+chip.vy;
   
   chip.vx+=vr*(Math.random()-0.5);
   chip.vy+=vr*(Math.random()-0.5);
   if(chip.vx>(vmax+vmin))  chip.vx=(vmax+vmin)*2-chip.vx;
   if(chip.vx<(-vmax-vmin)) chip.vx=(-vmax-vmin)*2-chip.vx;
   if(chip.vy>(vmax+vmin))  chip.vy=(vmax+vmin)*2-chip.vy;
   if(chip.vy<(-vmax-vmin)) chip.vy=(-vmax-vmin)*2-chip.vy;


   if(chip.xx<=pageX)
     {chip.xx=pageX;
      chip.vx=vmin+vmax*Math.random();
     }
   if(chip.xx>=pageX+pageW-chip.w)
     {chip.xx=pageX+pageW-chip.w;
      chip.vx=-vmin-vmax*Math.random();
     }
   if(chip.yy<=pageY)
     {chip.yy=pageY;
      chip.vy=vmin+vmax*Math.random();
     }
   if(chip.yy>=pageY+pageH-chip.h)
     {chip.yy=pageY+pageH-chip.h;
      chip.vy=-vmin-vmax*Math.random();
     }

   if(!mie)
      {eval('document.'+chip.named+'.top ='+chip.yy);
       eval('document.'+chip.named+'.left='+chip.xx);
      } 
   else
      {eval('document.all.'+chip.named+'.style.pixelLeft='+chip.xx);
       eval('document.all.'+chip.named+'.style.pixelTop ='+chip.yy); 
      }
   chip.timer1=setTimeout("movechip('"+chip.named+"')",100);
  }
}

function stopme(chipname)
{if(brOK)
  {//alert(chipname)
   eval("chip="+chipname);
   if(chip.timer1!=null)
    {clearTimeout(chip.timer1)}
  }
}

var mm;
function mm()
{checkbrOK(); 
mm=new Chip("mm",60,80);
if(brOK) 
{ movechip("mm");}
}


function displaybfb()
{
	var str=""
	var n=document.zdform.qhname.length
	for(i=0;i<n;++i){
	   if (document.zdform.qhname.options[i].selected) {
	      str=document.zdform.qhname.options[i].value
	      break
	      } 
	}
	up_value=parseInt(str)
	up_str=up_value+"a"
	up_str_len=up_str.length
	substr=str.substring(up_str_len)
	down_value=parseInt(substr)
	bfb_value=up_value/(up_value+down_value)*10000
	bfb_value=Math.round(bfb_value)
	bfb_value=bfb_value/100
	document.all("bfb").innerText=bfb_value+"%"
}
	
function kzdisplay()
{
	var str=""
	var n=document.zdform.qhname.length
	for(i=0;i<n;++i){
	   if (document.zdform.qhname.options[i].selected) {
	      str=document.zdform.qhname.options[i].value
	      break
	      } 
	}
	up_value=parseInt(str)
	up_str=up_value+"a"
	up_str_len=up_str.length
	substr=str.substring(up_str_len)
	down_value=parseInt(substr)
	down_str=down_value.toString()
	
	down_str_len=down_str.length
	left_str=str.substring(up_str_len+down_str_len)
		
	bfb_value=(up_value+1)/(up_value+1+down_value)*10000
	bfb_value=Math.round(bfb_value)
	bfb_value=bfb_value/100
	document.all("bfb").innerText=bfb_value+"%"
	
	up_value=up_value+1
	up_str=up_value+"a"
	document.zdform.qhname.options[i].value=up_str+down_str+left_str
}
	
function kddisplay()
{
	var str=""
	var n=document.zdform.qhname.length
	for(i=0;i<n;++i){
	   if (document.zdform.qhname.options[i].selected) {
	      str=document.zdform.qhname.options[i].value
	      break
	      } 
	}
	up_value=parseInt(str)
	up_str=up_value+"a"
	up_str_len=up_str.length
	
	substr=str.substring(up_str_len)
	
	down_value=parseInt(substr)
	down_str=down_value.toString()
	down_str_len=down_str.length
	
	left_str=str.substring(up_str_len+down_str_len)
		
	bfb_value=up_value/(up_value+down_value+1)*10000
	bfb_value=Math.round(bfb_value)
	bfb_value=bfb_value/100
	document.all("bfb").innerText=bfb_value+"%"
	
	down_value=down_value+1
	down_str=down_value.toString()
	document.zdform.qhname.options[i].value=up_str+down_str+left_str
}

function CR_delblank()
{
  var s_nickname
  s_nickname = cr_form.nickname.value
  if (s_nickname=="")
  {
    alert('昵称不能为空');
    return false;
  }
  var offset=s_nickname.indexOf(" ");
  if (offset !=-1)
  {
    alert('昵称不能有空格');
    return false;
  }
  return true;
}

function openwindow1(addr,width,height)
{
    window.open(addr,"_blank","width=" + width +",height="+ height + ",left=0,top=0,resizable=yes,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");                      
}

function openwindow(addr,width,height)
{
    var width =800;
	var height=600;
    window.open(addr,"_blank","width=" + width +",height="+ height + ",left=30,top=30,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");                      
}
function openWnd(addr,width,height)
{
    var width =800;
	var height=600;
    window.open(addr,"_blank","width=" + width +",height="+ height +",left=30,top=30,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes");
}
function check()
{
	if (document.search_form.keyword.value=="")
	{
	    alert("请输入查询字符串！");
		return false;
	}
	return true;
}
//-->