﻿// JScript 文件

function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",80)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=80
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity =100
else if (window.highlighting)
clearInterval(highlighting)
}

//picture
function bbimg(o){
	var width=o.width;
	var zoom=parseInt(o.style.zoom, 10)||100;
	zoom+=event.wheelDelta/12;
	if (zoom>0) {
		if((zoom*width/100)>600){
			return false;
		}
		o.style.zoom=zoom+'%';	
	}
	return false;
}
//search
function doSearch()
{
var key=document.getElementById("key").value;
if ( key=="")
{
  alert("请输入关键字.");
  return false;
}
else
{
location.href="Search.aspx?doKey="+key.replace(/^\s+/g,"");    		     
}
}
