							var searchType='';
							var searchIn=null;
							function changeSearchType(){
							select1.value
								searchType = select1.value;
							}
							function getElement(id){
								return document.getElementById(id);
							}
							function queryNewsXmlFirst(){
								var url='http://search.cctv.com/tv/tv.php?type=video';
								if(searchType != ''){
									url = 'http://search.cctv.com/tv/tv.php?type='+searchType;
								}
								url+='&q='+encodeURIComponent(getElement('text').value);
								if(searchIn&&searchIn=='TAG'){
									url+='&searchIn=TAG';
								}
								window.open(url);
							}
							function enterKeyDown(event){
								if(event.keyCode==13){
									var obj;
									if(event.target){
										obj=event.target;
									}else if(event.srcElement){  
										obj=event.srcElement;
									}	
									//getElement('pn').value=1;
									searchIn=null;
									queryNewsXmlFirst();
								}
							}
							function queryNewsXmlFirst1(txt){
								var str = '';
								str = txt;
								getElement('text').value = str;
								queryNewsXmlFirst();
							}
							
document.write('							<div id="" class="md">');
document.write('							<div class="md_hd">');
document.write('								<span class="tf"></span>');
document.write('								<span class="mh_title">相关搜索</span>');
document.write('								<span class="mh_option">');
document.write('								');
document.write('								</span>');
document.write('							</div>');
document.write('							<div class="md_bd" style="">');
document.write('							   <div class="search_l">');
document.write('								<select name="select1" onchange="changeSearchType()">');
document.write('								  <option value="video" >视频</option>');
document.write('								  <option value="group" >圈子</option>');
document.write('								  <option value="blog" >日志</option>');
document.write('								  <option value="topic" >话题</option>');
document.write('								  <option value="image" >图片</option>');
document.write('								  <option value="space" >空间</option>');
document.write('								</select>');
document.write('								<input  name="text" id="text" type="text" class="input_txt search_txt" onKeyDown="enterKeyDown(event);"/>');
document.write('								<input type="button" class="search_btn" value="搜索" name="" onclick="queryNewsXmlFirst();"/>');
document.write('								</div>							');
document.write('							<div class="btn_l">');
document.write('								<a href="http://tv.cctv.com/13/index.shtml" target="_blank"><img src="http://www.cctv.com/library/column/C20257/image/btn_time.jpg" /></a><a href="http://tv.cctv.com/minglan/zimu/index.shtml" target="_blank"><img src="http://www.cctv.com/library/column/C20257/image/btn_mlm.jpg" /></a><a href="http://zhibo.cctv.com/" target="_blank"><img src="http://www.cctv.com/library/column/C20257/image/btn_zb.jpg" /></a><a href="http://vod.cctv.com/" target="_blank"><img src="http://www.cctv.com/library/column/C20257/image/btn_db.jpg" /></a>');
document.write('							</div>');
document.write('							   <div class="hot_tags">');
document.write('									<strong>栏目:</strong>');
document.write('									<a href="http://space.tv.cctv.com/podcast/bjjt" target="_blank">百家讲坛</a>');
document.write('									<a href="http://space.tv.cctv.com/podcast/ttys" target="_blank">天天饮食</a>');
document.write('									<a href="http://space.tv.cctv.com/podcast/tansuofaxian" target="_blank">探索发现</a>');
document.write('									<a href="http://space.tv.cctv.com/podcast/jkzlgroup" target="_blank">健康之路</a>');
document.write('									<a href="http://space.tv.cctv.com/podcast/zoujinkexue" target="_blank">走近科学</a>');
document.write('									<a href="http://space.tv.cctv.com/podcast/zhyy" target="_blank">中华医药</a>');
document.write('									<a href="http://www.cctv.com/docu/special/junshijilu/01/index.shtml" target="_blank">军事</a>');
document.write('									<a href="http://tv.cctv.com/minglan/jiankang/index.shtml" target="_blank">健康</a>');
document.write('									<a href="http://tv.cctv.com/minglan/tanmi/index.shtml" target="_blank">科教</a>');
document.write('									<a href="http://www.cctv.com/docu/special/lishijilu/01/index.shtml" target="_blank">历史</a>');
document.write('								</div>');
document.write('							   <div class="clear_float"></div>');
document.write('							</div>');
document.write('							<div class="md_ftc"><b></b></div>');
document.write('						</div><!--remian-->');
