//搜索标签切换
			function doChange1(a) {
				var get_li=document.getElementById("sea_tag").getElementsByTagName("li")
				for(var i=0;i<get_li.length;i++) {
					get_li[i].className=''
				}
				get_li[a-1].className="on2"
			}
			//搜索提交
			function getResult(){
				var lis=document.getElementById("sea_tag").getElementsByTagName('li');
				var tagIndex;
				var sea_word =encodeURIComponent(document.getElementById("txtSearch").value);
				for(var i = 0;i<lis.length;i++) {
					if(lis.item(i).className === "on2"){
						tagIndex = i
					}
				}
				switch(tagIndex){
					case 0:
					window.location.href="http://so.dy.com.cn/DyzServlet?keyword="+ sea_word;
					//window.location.href="http://www.dy.com.cn/modules/SearchResult.aspx?params="+ sea_word +"&type=7"; 旧站搜索旧模板
					//window.location.href="http://www.dy.com.cn/search/SearchNew.aspx?t=All&v="+sea_word  旧站搜索新模板
					break;
					case 2:
					window.location.href="http://www.dy.com.cn/modules/SearchResult.aspx?params="+ sea_word +"&type=7";
					//window.location.href="http://www.dy.com.cn/search/SearchNew.aspx?t=Film&v="+sea_word
					break;
					case 4:
					window.location.href="http://www.dy.com.cn/modules/SearchList.aspx?type=Actor&key="+sea_word;
					//window.location.href="http://www.dy.com.cn/search/SearchNew.aspx?t=Actor&v="+sea_word
					break;
					case 6:
					window.location.href="http://www.dy.com.cn/modules/SearchList.aspx?type=Picture&key="+sea_word;
					//window.location.href="http://www.dy.com.cn/search/SearchNew.aspx?t=Pictures&v="+sea_word
					break;
				}
 
			}
			//判断回车
			function getKeycode(e){
				//alert("gogo")
				//alert("ggg")
				//var evt = e || window.event;//兼容IE和火狐
				if(event.keyCode == 13||event.keyCode == 32){
					getResult();        
				}
			}
