//全局变量，判断是否隐藏搜索引擎选择层
		var engineDiv = true;
		var showDiv = true;
function noBodyClick(id){
	if(id=="engineDiv"){
	engineDiv = false;
	}else if(id=="showDiv"){
	showDiv = false;
	}
}

function reBodyClick(id){
	if(id=="engineDiv"){
	engineDiv = true;
	}else if(id=="showDiv"){
	showDiv = true;

	}

}


function hAllDiv(){
	if(engineDiv){//alert("#loginDiv).hide()");
    //$("#engineDiv").hide(); 
   	}
  	if(showDiv){
	$("#showDiv").fadeOut(400);
	
	}
	
	}

	
	
	//搜索
var urlall = "";
function startSch(obj) {
	 $("#keyword").attr("value",native2ascii($("#keyword").attr("value")));
  		var one = $("#selectedOneEngine").html();
		switch (one){
		case "Google":
			urlall +="google,";
			break;
		case "bing":
			urlall +="bing,";
			break;
		case "百度":
			urlall +="baidu,";
			break;
		case "yahoo!":
			urlall +="yahoo,";
			break;
		case "搜狗":
			urlall +="sogou,";
			break;
		case "有道":
			urlall +="youdao,";
			break;
		case "搜搜":
			urlall +="soso,";
			break;
		case "狗狗":
			urlall +="gougou,";
			break;
		case "Cuil":
			urlall +="cuil,";
			break;
		case "中搜":
			urlall +="zhongsou,";
			break;
		case "Sapo":
			urlall +="sapo,";
			break;
		}
	
	
	//}
	//if($("#s_pause").html()=="暂停"){
		var two = $("#selectedTwoEngine").html();
		switch (two){
		case "Google":
			urlall +="google,";
			break;
		case "bing":
			urlall +="bing,";
			break;
		case "百度":
			urlall +="baidu,";
			break;
		case "yahoo!":
			urlall +="yahoo,";
			break;
		case "搜狗":
			urlall +="sogou,";
			break;
		case "有道":
			urlall +="youdao,";
			break;
		case "搜搜":
			urlall +="soso,";
			break;
		case "狗狗":
			urlall +="gougou,";
			break;
		case "Cuil":
			urlall +="cuil,";
			break;
		case "中搜":
			urlall +="zhongsou,";
			break;
		case "Sapo":
			urlall +="sapo,";
			break;
		}
	//alert(urlall);
	if(urlall!=""&&urlall!=null&&urlall!="null"){
		var arr = new Array();
		arr = urlall.split(",");
		//清空
		urlall = "";
		//只选了一个搜索引擎,确定传哪一个url
		if(arr.length==2){
		var tempvar = document.getElementById("justOneUrl").value;
		//alert(tempvar);
			if(tempvar=="undefined"||tempvar==null||tempvar=="null"||tempvar==""){
				judgeFrame(arr[0],"justOneUrl");
				
			}
			document.getElementById("oneOrTwo").value = "1_f";
			obj.action = "/help/doerhelp/DoerEngineResult.jsp";
		}
		
		//选了两个搜索引擎
		if(arr.length==3){
		//alert("选了两个搜索引擎");
		var v1 = $("#frame1Url").attr("value");
		var v2 = $("#frame2Url").attr("value");
		//alert("v1--"+v1+"---v2---"+v2 );
		if((v1=="undefined"||v1==null||v1=="null"||v1=="")&&(v2=="undefined"||v2==null||v2=="null"||v2=="")){
				judgeFrame(arr[0],"frame1Url");
				judgeFrame(arr[1],"frame2Url");
		}
			document.getElementById("oneOrTwo").value = "2_f";
			obj.action = "/help/doerhelp/DoerEngineResult.jsp";

		}

	}else{
		//默认搜索google网页
		//document.getElementById("justOneUrl").value = "http://www.google.cn/search?hl=zh-CN&q=hello&btnG=Google+%E6%90%9C%E7%B4%A2&meta=&aq=f&oq=";
		document.getElementById("oneOrTwo").value = "0_f";
		obj.action = "/help/doerhelp/DoerEngineResult.jsp";
	}
}

function judgeFrame(engineName,frameurl){
	switch (engineName){
					case "baidu":
					document.getElementById(frameurl).value = "http://www.baidu.com/s?wd=hello";
					break;
					case "google":
					document.getElementById(frameurl).value = "http://www.google.cn/search?hl=zh-CN&q=hello&btnG=Google+%E6%90%9C%E7%B4%A2&meta=&aq=f&oq=";
					break;
					case "youdao":
					document.getElementById(frameurl).value = "http://www.youdao.com/search?q=hello&keyfrom=web.index";
					break;
					case "soso":
					document.getElementById(frameurl).value = "http://www.soso.com/q?pid=s.idx&w=hello";
					break;
					case "gougou":
					document.getElementById(frameurl).value = "http://web.gougou.com/search?search=hello&id=1";
					break;
					case "sogou":
					document.getElementById(frameurl).value = "http://www.sogou.com/web?query=hello&_asf=www.sogou.com&_ast=1245647322&w=01019900&p=40040100";
					break;
					case "cuil":
					document.getElementById(frameurl).value = "http://www.cuil.com/search?q=hello";
					break;
					case "bing":
					document.getElementById(frameurl).value = "http://cn.bing.com/search?q=hello&go=&form=QBLH&filt=all";
					break;
					case "sapo":
					document.getElementById(frameurl).value = "http://pesquisa.sapo.pt/?barra=resumo&st=&channel=&q=hello";
					break;
					case "yahoo":
					document.getElementById(frameurl).value = "http://one.cn.yahoo.com/s?p=hello&pid=hp&v=web";
					break;
					case "zhongsou":
					document.getElementById(frameurl).value = "http://p.zhongsou.com/p?dt=2&pt=1&w=hello&word=hello&w1=";
					break;
				}
}

//全局变量 判断多选引擎时选择的是第一个还是第二个
var which_engine= "";


//function this_engine(flag){
//	which_engine = flag;

//}
function setUrl(e_num,e_index,e_name,classVal){
	//alert("fddddddfd");
	var prekeyword = "";
	var ename = changeEngine(e_name);
	if(e_num=="oneframe"){
	$("#selectedOneEngine").html(ename);
	$("#selectedTwoEngine").html("");
	$("#vsand").html("");
	which_engine= "";
	
	prekeyword = classVal;
	setUrlToFrame(classVal,"justOneUrl");
	}else if(e_num=="twoframe"){
		$("#engineDiv").fadeIn();
		if(e_name=="unknown"){
			if(classVal.indexOf("百度")>-1){
				ename = "百度";
			}
			if(classVal.indexOf("Google")>-1){
				ename = "Google";
			}
			if(classVal.indexOf("Yahoo")>-1){
				ename = "Yahoo！";
			}
			if(classVal.indexOf("bing")>-1){
				ename = "bing";
			}
			if(classVal.indexOf("有道")>-1){
				ename = "有道";
			}
			if(classVal.indexOf("搜狗")>-1){
				ename = "搜狗";
			}
			if(classVal.indexOf("中搜")>-1){
				ename = "中搜";
			}
			if(classVal.indexOf("搜搜")>-1){
				ename = "搜搜";
			}
			if(classVal.indexOf("狗狗")>-1){
				ename = "狗狗";
			}
			if(classVal.indexOf("Cuil")>-1){
				ename = "Cuil";
			}
			if(classVal.indexOf("Sapo")>-1){
				ename = "Sapo";
			}
		
		
		}
		if(which_engine.length==0){
				$("#selectedOneEngine").html(ename);
				$("#vsand").html("vs");
				$("#selectedTwoEngine").html(ename);
				setUrlToFrame(classVal,"frame1Url");
				setUrlToFrame(classVal,"frame2Url");
				prekeyword = classVal;
		}else if(which_engine=="fst"){
			if(e_index=="fst"){
				$("#selectedOneEngine").html(ename);
				setUrlToFrame(classVal,"frame1Url");
	
			}
			if(e_index=="scnd"){
				$("#selectedTwoEngine").html(ename);
				setUrlToFrame(classVal,"frame2Url");
			}
			prekeyword = $("#selectedOneEngine").html()+" & "+$("#selectedTwoEngine").html();
		}else if(which_engine=="scnd"){
			if(e_index=="fst"){
				$("#selectedOneEngine").html(ename);
				setUrlToFrame(classVal,"frame1Url");
			}
			if(e_index=="scnd"){
				$("#selectedTwoEngine").html(ename);
				setUrlToFrame(classVal,"frame2Url");
			}
			prekeyword = $("#selectedOneEngine").html()+" & "+$("#selectedTwoEngine").html();
		
		}
		which_engine = e_index;
	}
	$("#keyword").attr("value",prekeyword);
//alert("fddd-------------dddfd");
}

function changeEngine(e){
	var engine = "";
	switch (e){
		case "google":
			engine ="Google";
			break;
		case "bing":
			engine ="bing";
			break;
		case "baidu":
			engine ="百度";
			break;
		case "yahoo":
			engine ="Yahoo!";
			break;
		case "sogou":
			engine ="搜狗";
			break;
		case "youdao":
			engine ="有道";
			break;
		case "soso":
			engine ="搜搜";
			break;
		case "gougou":
			engine ="狗狗";
			break;
		case "cuil":
			engine ="Cuil";
			break;
		case "zhongsou":
			engine ="中搜";
			break;
		case "sapo":
			engine ="Sapo";
			break;
		}
	return engine;
}



function setUrlToFrame(val,which){
	var f_url = "";
	switch(val){
		case "百度网页":
		f_url = "http://www.baidu.com/s?wd=hello";
		break;
		case "百度新闻":
		f_url = "http://news.baidu.com/ns?word=hello&tn=news&from=news&cl=2&rn=20&ct=1";
		break;
		case "百度贴吧":
		f_url = "http://tieba.baidu.com/f?kw=hello&t=1";   
		break;
		case "进入百度贴吧":
		f_url = "http://tieba.baidu.com/f?ct=&tn=&rn=&pn=&lm=&cm=0&kw=hello&rs2=0&sc=&un=&rs1=&rs5=&sn=&rs6=&myselectvalue=0&word=hello&submit=%B0%D9%B6%C8%D2%BB%CF%C2&tb=on";
		break;
		case "百度帖子":
		f_url = "http://tieba.baidu.com/f?ct=352321536&tn=baiduPostSearch&rn=10&pn=&lm=65536&cm=0&kw=&rs2=1&sc=&un=&rs1=&rs5=&sn=&rs6=&myselectvalue=0&word=hello&submit=%B0%D9%B6%C8%D2%BB%CF%C2&tb=on";  
		break;
		case "百度帖子按作者搜":			
		f_url = "http://tieba.baidu.com/f?ct=352321536&tn=baiduPostSearch&rn=10&pn=&lm=65541&cm=0&kw=&rs2=2&sc=&un=&rs1=&rs5=&sn=&rs6=&myselectvalue=0&word=hello&submit=%B0%D9%B6%C8%D2%BB%CF%C2&tb=on";  

		break;
		case "百度知道":
		f_url = "http://zhidao.baidu.com/q?ct=17&pn=0&tn=ikaslist&rn=10&word=hello";  
		break;
		case "百度mp3":	
		f_url = "http://mp3.baidu.com/m?f=ms&tn=baidump3&ct=134217728&lf=&rn=&word=hello&lm=0"; 
		break;
		case "百度rm格式音乐":
		f_url = "http://mp3.baidu.com/m?f=ms&rn=&tn=baidump3&ct=134217728&word=hello&lm=1";
		break;
		case "百度wma格式音乐":
		f_url = "http://mp3.baidu.com/m?f=ms&tn=baidump3&ct=134217728&lf=&rn=&word=hello&lm=2";
		break;
		case "百度其他格式音乐":
		f_url = "http://mp3.baidu.com/m?f=ms&tn=baidump3&ct=134217728&lf=&rn=&word=hello&lm=32767";  
		break;
		case "百度铃声":
		f_url = "http://mp3.baidu.com/m?f=ms&tn=baidump3ring&ct=285212672&lf=&rn=&word=hello&lm=-1";  
		break;
		case "百度彩铃":
		f_url = "http://calling.baidu.com/m?f=ms&tn=baidump3cal&ct=134217728&lf=&rn=&word=hello&lm=-1"; 
		break;
		case "百度音乐掌门人":
		f_url = "http://zhangmen.baidu.com/search.jsp?f=ms&tn=baidump3&ct=134217728&lf=&rn=&word=hello";  
		break;
		case "百度少儿版":
		f_url = "http://www.baidu.com/s?tn=baiduchild&ie=gb2312&bs=111&cl=3&f=8&wd=hello";  
		break;
		case "百度图片":
		f_url = "http://image.baidu.com/i?tn=baiduimage&ct=201326592&lm=-1&cl=2&word=hello&t=12"; 
		break;
		case "百度全部图片":
		f_url = "http://image.baidu.com/i?ct=201326592&cl=2&lm=-1&tn=baiduimage&pv=&word=hello&z=0";
		break;
		case "百度大图片":
		f_url = "http://image.baidu.com/i?tn=baiduimage&ct=201326592&cl=2&lm=-1&fr=&pv=&word=hello&z=3"; 
		break;
		case "百度中图片":
		f_url = "http://image.baidu.com/i?tn=baiduimage&ct=201326592&cl=2&lm=-1&fr=&pv=&word=hello&z=2";  
		break;
		case "百度小图片":
		f_url = "http://image.baidu.com/i?tn=baiduimage&ct=201326592&cl=2&lm=-1&fr=&pv=&word=hello&z=1"; 
		break;
		case "百度壁纸":
		f_url = "http://image.baidu.com/i?tn=baiduimage&ct=201326592&cl=2&lm=-1&fr=&pv=&word=hello&z=19"; 
		break;
		case "百度视频":
		f_url = "http://video.baidu.com/v?ct=301989888&rn=20&pn=0&db=0&s=7&word=hello";  
		break;
		case "百度地图":
		f_url = "http://map.baidu.com/#word=hello&ct=10&bs=023"; 
		break;
		case "百度电影":
		f_url = "http://v.baidu.com/search.php?word=hello&type=1";
		break;
		case "百度电视剧":
		f_url = "http://v.baidu.com/search.php?word=hello&type=2"; 
		break;
		case "百度娱乐":
		f_url = "http://v.baidu.com/search.php?word=hello&type=9";
		break;
		case "百度动漫":
		f_url = "http://v.baidu.com/search.php?word=hello&type=4"; 
		break;
		case "百度首映":
		f_url = "http://v.baidu.com/search.php?word=hello&type=18"; 
		break;
		case "百度空间":
		f_url = "http://hi.baidu.com/sys/search?type=0&sort=1&entry=1&region=0&word=hello"; 
		break;
		case "百度百科":
		f_url = "http://baike.baidu.com/list-php/dispose/searchword.php?word=hello&pic=1"; 
		break;
		case "百度财经":
		f_url = "http://baidu.hexun.com/stock/code.php?code=hello&c=9"; 
		break;
		case "百度博客":
		f_url = "http://blogsearch.baidu.com/s?tn=baidublog&bsm=0&ct=2097152&wd=hello&cl=3";  
		break;
		case "百度词典":
		f_url = "http://dict.baidu.com/s?wd=hello"; 
		break;
		case "百度法律":
		f_url = "http://law.baidu.com/s?tn=baidulaw&cl=0&ct=2097152&si=law.baidu.com&word=hello"; 
		break;
		case "百度国学搜全文":
		f_url = "http://guoxue.baidu.com/s?tn=baiduguoxue&ie=gb2312&bs=&cl=3&wd=hello&si=guoxue.baidu.com&ct=2097152";
		break;
		case "百度国学搜书名":
		f_url = "http://guoxue.baidu.com/s?tn=baiduguoxue&ie=gb2312&bs=&cl=3&wd=hello&si=guoxue.baidu.com&ct=538968064"; 
		break;
		case "百度国学搜作者":
		f_url = "http://guoxue.baidu.com/s?tn=baiduguoxue&ie=gb2312&bs=&cl=3&wd=hello&si=guoxue.baidu.com&ct=270532608";
		break;
		case "百度黄页":
		f_url = "http://yp.baidu.com/m?word=hello&tn=baiduyp&ct=553648128&rn=20&lm=-1&z=-1";  
		break;
		case "百度教育":
		f_url = "http://www.baidu.com/s?tn=baidujiaoyu&wd=hello";  
		break;

		case "百度老年搜索":
		f_url = "http://www.baidu.com/s?wd=hello&tn=baidulaonian"; 
		break;
		case "百度图书搜索":
		f_url = "http://book.baidu.com/s?tn=baidubook&ct=2097152&si=book.baidu.com&cl=3&wd=hello";  
		break;
		case "百度邮编":
		f_url = "http://youbian.baidu.com/s?word=hello&tn=baiduyb&ct=2097152&cl=0&si=youbian.baidu.com";  
		break;
		case "百度游戏新闻":
		f_url = "http://g.baidu.com/sr.jsp?wd=hello&g=1"; 
		break;
		case "百度游戏攻略":
		f_url = "http://g.baidu.com/sr.jsp?wd=hello&g=2";
		break;
		case "百度政府网站搜索":
		f_url = "http://www.baidu.com/s?tn=baidugov&wd=hello";  
		break;
		case "百度指数搜索":
		f_url = "http://index.baidu.com/main/word.php?word=hello";  
		break;
		case "百度专利全文搜索":
		f_url = "http://zhuanli.baidu.com/s?tn=baiduzhuanli&ie=gb2312&bs=&cl=3&si=zhuanli.baidu.com&ct=2097152&wd=hello&ver=3";
		break;
		case "百度专利名称搜索":
		f_url = "http://zhuanli.baidu.com/s?tn=baiduzhuanli&ie=gb2312&bs=&cl=3&si=zhuanli.baidu.com&ct=2097152&wd=hello&ver=1";
		break;
		case "百度所有文档搜索":
		f_url = "http://www.baidu.com/baidu?q1=hello&ft=all";
		break;
		case "百度word":
		f_url = "http://www.baidu.com/baidu?q1=hello&ft=doc"; 
		break;
		case "百度pdf":
		f_url = "http://www.baidu.com/baidu?q1=hello&ft=pdf"; 
		break;
		case "百度excel":
		f_url = "http://www.baidu.com/baidu?q1=hello&ft=xls"; 
		break;
		case "百度ppt":
		f_url = "http://www.baidu.com/baidu?q1=hello&ft=ppt"; 
		break;
		case "百度RTF":
		f_url = "http://www.baidu.com/baidu?q1=hello&ft=rtf";  
		break;
		case "百度文化":
		f_url = "http://www.baidu.com/s?tn=baiduwenhua&ct=0&ie=utf-8&bs=%E7%99%BE%E5%BA%A6%E6%96%87%E5%8C%96&sr=&z=&cl=3&f=8&wd=hello";
		break;
		case "Google娱乐场所":
		f_url = "http://shenghuo.google.cn/shenghuo/search?a_y0=9&a_n0=%E5%A8%B1%E4%B9%90&q=hello&view=table&a_n1=%E5%9F%8E%E5%B8%82&a_y1=1&a_o1=0&a_v1";
		break;
		case "Google活动":
		f_url = "http://shenghuo.google.cn/shenghuo/search?a_y0=9&a_n0=%E6%B4%BB%E5%8A%A8&q=hello&view=table&nl=::::"; 
		break;
		case "Google影讯":
		f_url = "http://shenghuo.google.cn/shenghuo/search?a_y0=9&a_n0=%E7%94%B5%E5%BD%B1%E4%BF%A1%E6%81%AF&q=hello&view=table&nl=::::";  
		break;
		case "Google餐饮":
		f_url = "http://shenghuo.google.cn/shenghuo/search?a_y0=9&a_n0=%E9%A4%90%E9%A5%AE&q=hello&view=table&nl=::::";  
		break;
		case "Google火车票":
		f_url = "http://shenghuo.google.cn/shenghuo/search?a_y0=9&a_n0=%E7%81%AB%E8%BD%A6%E7%A5%A8&view=Table&a_n1=%E5%A7%8B%E5%8F%91%E7%AB%99&a_y1=1&a_o1=0&a_v1=beginningstation&a_n2=%E5%88%B0%E8%BE%BE%E7%AB%99&a_y2=1&a_o2=0&a_v2=endstation&a_n3=%E8%BD%A6%E6%AC%A1&a_y3=1&a_o3=0&a_v3=trainnumber";
		break;
		case "Google工作":
		f_url = "http://shenghuo.google.cn/shenghuo/search?a_y0=9&a_n0=%E5%B7%A5%E4%BD%9C&q=hello&view=table&a_n1=%E5%9F%8E%E5%B8%82&a_y1=1&a_o1=0&a_v1";
		break;
		case "Google房屋":
		f_url = "http://shenghuo.google.cn/shenghuo/search?a_y0=9&a_n0=%E6%88%BF%E5%B1%8B&q=hello&view=table&a_n1=%E5%9F%8E%E5%B8%82&a_y1=1&a_o1=0&a_v1";
		break;
		case "Google公交":
		f_url = "http://ditu.google.cn/maps?ie=UTF8&f=d&dirflg=r&saddr=srcaddr&daddr=desaddr";
		break;
		case "Google代码":
		f_url = "http://www.google.cn/codesearch";
		break;
		case "Google趋势":
		f_url = "http://www.google.cn/trends?q=hello&hl=zh-CN";
		break;
		case "Google购物":
		f_url = "http://www.google.cn/products?q=hello";
		break;
		case "Google热榜":
		f_url = "http://www.google.cn/rebang/search?q=hello&source=billboard_site&sourceid=search_box"; 
		break;
		case "Google生活":
		f_url = "http://shenghuo.google.cn/shenghuo/search?a_y0=9&a_n0=%E6%88%BF%E5%B1%8B&q=hello&view=table&a_n1=%E5%9F%8E%E5%B8%82&a_y1=1&a_o1=0&a_v1=%E9%87%8D%E5%BA%86";  
		break;
		case "Google网页目录":
		f_url = "http://www.google.cn/search?q=hello&btnG=%E6%90%9C%E7%B4%A2%E7%9B%AE%E5%BD%95&hl=zh-CN&cat=gwd%2FTop";  
		break;
		case "Google网页学术":
		f_url = "http://scholar.google.cn/scholar?q=hello&hl=zh-CN&lr=&lr="; 
		break;
		case "Google网页":
		f_url = "http://www.google.cn/search?hl=zh-CN&q=hello&btnG=Google+%E6%90%9C%E7%B4%A2&meta=&aq=f&oq=";
		break;
		case "Google中文网页":
		f_url = "http://www.google.cn/search?hl=zh-CN&q=hello&btnG=Google+%E6%90%9C%E7%B4%A2&meta=lr%3Dlang_zh-CN%7Clang_zh-TW&aq=f&oq="; 
		break;
		case "Google简体中文网页":
		f_url = "http://www.google.cn/search?hl=zh-CN&q=hello&btnG=Google+%E6%90%9C%E7%B4%A2&meta=lr%3Dlang_zh-CN&aq=f&oq="; 
		break;
		case "Google中国网页":
		f_url = "http://www.google.cn/search?hl=zh-CN&q=hello&btnG=Google+%E6%90%9C%E7%B4%A2&meta=cr%3DcountryCN&aq=f&oq="; 
		break;
		case "Google音乐":
		f_url = "http://www.google.cn/music/search?q=hello&aq=f";  
		break;
		case "Google潮流女星图片":
		f_url = "http://images.google.cn/imgcat?q=hello&hl=zh-CN&num=10&newwindow=1&output=search&cid=2&sa=h&seq=2_6_7_9_5"; 
		break;
		case "Google精美壁纸":
		f_url = "http://images.google.cn/imgcat?q=hello&hl=zh-CN&num=10&newwindow=1&output=search&cid=6&sa=h&seq=2_6_7_9_5";
		break;
		case "Google爆笑趣图":
		f_url = "http://images.google.cn/imgcat?q=hello&hl=zh-CN&num=10&newwindow=1&output=search&cid=7&sa=h&seq=2_6_7_9_5";
		break;
		case "Google风景名胜":
		f_url = "http://images.google.cn/imgcat?q=hello&hl=zh-CN&num=10&newwindow=1&output=search&cid=9&sa=h&seq=2_6_7_9_5";
		break;
		case "Google全部图片":
		f_url = "http://images.google.cn/images?hl=zh-CN&q=hello&btnG=%E6%90%9C%E7%B4%A2%E5%9B%BE%E7%89%87&gbv=2&aq=f&oq="; 
		break;
		case "Google全部视频":
		f_url = "http://video.google.cn/videosearch?q=hello&hl=zh-CN&aq=-1&oq=#";
		break;
		case "Google今日视频":
		f_url = "http://video.google.cn/videosearch?q=hello&hl=zh-CN&aq=-1&oq=#q=hello&hl=zh-CN&aq=-1&oq=&st=day"; 
		break;
		case "Google本周视频":
		f_url = "http://video.google.cn/videosearch?q=hello&hl=zh-CN&aq=-1&oq=#q=hello&hl=zh-CN&aq=-1&oq=&st=week"; 
		break;
		case "Google本月视频":
		f_url = "http://video.google.cn/videosearch?q=hello&hl=zh-CN&aq=-1&oq=#q=hello&hl=zh-CN&aq=-1&oq=&st=month";
		break;
		case "Google 4分钟视频":
		f_url = "http://video.google.cn/videosearch?q=hello&hl=zh-CN&aq=-1&oq=#q=hello&hl=zh-CN&dur=1";  
		break;
		case "Google 4-20分钟视频":
		f_url = "http://video.google.cn/videosearch?q=hello&hl=zh-CN&aq=-1&oq=#q=hello&hl=zh-CN&dur=2";  
		break;
		case "Google大于20分钟视频":
		f_url = "http://video.google.cn/videosearch?q=hello&hl=zh-CN&aq=-1&oq=#q=hello&hl=zh-CN&dur=3"; 
		break;
		case "Google地图":
		f_url = "http://ditu.google.cn/maps?hl=zh-CN&q=hello&tab=il";  
		break;
		case "Google资讯":
		f_url = "http://news.google.cn/nwshp?hl=zh-CN&q=hello&tab=in"; 
		break;
		case "Google游戏动漫":
		f_url = "http://images.google.cn/imgcat?q=hello&hl=zh-CN&num=10&newwindow=1&output=search&cid=5&sa=h&seq=2_6_7_9_5";  
		break;
		case "Google财经":
		f_url = "http://www.google.cn/finance?hl=zh-CN&q=hello&tab=ie";
		break;
		case "Google所有博客":
		f_url = "http://blogsearch.google.cn/blogsearch?hl=zh-CN&q=hello&btnG=%E6%90%9C%E7%B4%A2%E5%8D%9A%E5%AE%A2&lr="; 
		break;
		case "Google简体中文博客":
		f_url = "http://blogsearch.google.cn/blogsearch?hl=zh-CN&q=hello&btnG=%E6%90%9C%E7%B4%A2%E5%8D%9A%E5%AE%A2&lr=lang_zh-CN"; 
		break;
		case "Google国学图书":
		f_url = "http://books.google.cn/books?q=hello&as_brr=2";
		break;
		case "Google所有图书":
		f_url = "http://books.google.cn/books?q=hello&btnG=%E6%90%9C%E7%B4%A2%E5%9B%BE%E4%B9%A6";
		break;
		case "Google部分预览和全书预览":
		f_url = "http://books.google.cn/books?as_brr=3&q=hello&btnG=%E6%90%9C%E7%B4%A2%E5%9B%BE%E4%B9%A6";
		break;
		case "Google仅全书浏览":
		f_url = "http://books.google.cn/books?q=hello&as_brr=1";
		break;
		case "Yahoo分类信息":
		f_url = "http://www.koubei.com/fuwu/list.html?city=2696&keyword=hello";  
		break;
		case "Yahoo二手房":
		f_url = "http://www.koubei.com/fang/listsell.html?city=2696&option.keyword=hello";
		break;
		case "Yahoo租房":
		f_url = "http://www.koubei.com/fang/listrentout.html?city=2696&option.keyword=hello";
		break;
		case "Yahoo餐饮":
		f_url = "http://bendi.koubei.com/search/searchstore.html?city=2696&option.category=4&option.key=hello"; 
		break;
		case "Yahoo生活搜索":
		f_url = "http://www.koubei.com/fuwu/list.html?keyword=hello&source=218";  
		break;
		case "Yahoo网页":
		f_url = "http://one.cn.yahoo.com/s?p=hello&pid=hp&v=web"; 
		break;
		case "Yahoo全部音乐":
		f_url = "http://one.cn.yahoo.com/s?p=hello&v=music&pid=hp";
		break;
		case "Yahoo mp3":
		f_url = "http://one.cn.yahoo.com/s?p=hello&v=music&ei=UTF-8&mimetype=lyric&source=ysearch_music_result_topsearch&pid=hp&x=mp3%3Aalls";
		break;
		case "Yahoo rm格式音乐":
		f_url = "http://one.cn.yahoo.com/s?p=hello&v=music&ei=UTF-8&mimetype=lyric&source=ysearch_music_result_topsearch&pid=hp&x=rm%3Aalls"; 
		break;
		case "Yahoo wma格式音乐":
		f_url = "http://one.cn.yahoo.com/s?p=hello&v=music&ei=UTF-8&mimetype=lyric&source=ysearch_music_result_topsearch&pid=hp&x=wma%3Aalls"; 
		break;
		case "Yahoo flash":
		f_url = "http://one.cn.yahoo.com/s?p=hello&v=music&ei=UTF-8&mimetype=lyric&source=ysearch_music_result_topsearch&pid=hp&x=flash%3Aalls"; 
		break;
		case "Yahoo歌词":
		f_url = "http://music.cn.yahoo.com/onesearch_lyric.html?p=hello&v=music&ei=gbk&pid=ysearch&x=lyric&source=ysearch_music_result_topsearch";
		break;
		case "Yahoo其他格式音乐":
		f_url = "http://one.cn.yahoo.com/s?p=hello&v=music&ei=UTF-8&mimetype=lyric&source=ysearch_music_result_topsearch&pid=hp&x=mtype%3Aalls"; 
		break;
		case "Yahoo新闻图片":
		f_url = "http://one.cn.yahoo.com/s?p=hello&v=ni&source=ysearch_img_result_topsearch&x=ni";  
		break;
		case "Yahoo全部图片":
		f_url = "http://one.cn.yahoo.com/s?p=hello&v=image&x=";
		break;
		case "Yahoo壁纸":
		f_url = "http://one.cn.yahoo.com/s?p=hello&v=image&x=w0";
		break;
		case "Yahoo头像":
		f_url = "http://one.cn.yahoo.com/s?p=hello&v=image&source=ysearch_img_result_topsearch&x=head";
		break;
		case "Yahoo表情":
		f_url = "http://one.cn.yahoo.com/s?p=hello&v=image&source=ysearch_img_result_topsearch&x=face";  
		break;
		case "Yahoo地图":
		f_url = "http://ditu.koubei.com/?city=2696&keywords=hello";  
		break;
		case "Yahoo资讯":
		f_url = "http://one.cn.yahoo.com/s?p=hello&v=news&pid=hp";
		break;
		case "Yahoo知识堂":
		f_url = "http://one.cn.yahoo.com/s?p=hello&pid=ysearch&v=ks"; 
		break;
		case "Yahoo人物":
		f_url = "http://one.cn.yahoo.com/s?p=hello&v=person&pid=ysearch";
		break;
		case "Yahoo黄页":
		f_url = "http://bendi.koubei.com/search/searchstore.html?ei=gbk&searchFlag=1&option.key=hello&source=219";  
		break;
		case "中搜网页":
		f_url = "http://p.zhongsou.com/p?dt=2&pt=1&w=hello&word=hello&w1="; 
		break;
		case "中搜最新网页":
		f_url = "http://p.zhongsou.com/p?w=hello&pt=1&k=&jc=&aid=&rt=0";  
		break;
		case "中搜三天内网页":
		f_url = "http://p.zhongsou.com/p?w=hello&pt=1&k=&jc=&aid=&rt=t"; 
		break;
		case "中搜一周内网页":
		f_url = "http://p.zhongsou.com/p?w=hello&pt=1&k=&jc=&aid=&rt=w";  
		break;
		case "中搜一月内网页":
		f_url = "http://p.zhongsou.com/p?w=hello&pt=1&k=&jc=&aid=&rt=m";
		break;
		case "中搜门户":
		f_url = "http://i.zhongsou.com/sr/ig.php?tp=2&n=10&pn=3&w=hello";
		break;
		case "中搜IG微件":
		f_url = "http://i.zhongsou.com/sr/ig.php?w=hello&tp=1"; 
		break;
		case "中搜全部IG门户":
		f_url = "http://i.zhongsou.com/sr/ig.php?w=hello&tp="; 
		break;
		case "中搜行业正文":
		f_url = "http://z.zhongsou.com/n?w=hello&k=&aid=E0700000000&oi=0&hs2=%CB%D1%CB%F7&t=0";  
		break;
		case "中搜行业标题":
		f_url = "http://z.zhongsou.com/n?w=hello&k=&aid=E0700000000&oi=0&hs2=%CB%D1%CB%F7&t=1";
		break;
		case "中搜歌曲":
		f_url = "http://mp3.zhongsou.com/m?w=hello&b=+%CB%D1%CB%F7+&lg=0&k=&aid=E050000000&ty=1";  
		break;
		case "中搜资讯正文":
		f_url = "http://z.zhongsou.com/n?w=hello&k=&aid=E0200000000&oi=0&hs2=%CB%D1%CB%F7&t=0";  
		break;
		case "中搜资讯正文图片":
		f_url = "http://z.zhongsou.com/n?w=hello&k=&aid=E0200000000&oi=1&t=0";  
		break;
		case "中搜资讯标题":
		f_url = "http://z.zhongsou.com/n?w=hello&k=&aid=E0200000000&oi=0&hs2=%CB%D1%CB%F7&t=1";
		break;
		case "中搜资讯标题图片":
		f_url = "http://z.zhongsou.com/n?w=hello&k=&aid=E0200000000&oi=1&t=1";
		break;
		case "中搜800*800图片":
		f_url = "http://img.zhongsou.com/i?w=hello&k=&st=&l=&r=&t=800";  
		break;
		case "中搜800*800新闻图片":
		f_url = "http://img.zhongsou.com/i?w=hello&k=&st=&l=3&r=&t=800";
		break;
		case "中搜1024*768图片":
		f_url = "http://img.zhongsou.com/i?w=hello&k=&st=&l=&r=&t=1024"; 
		break;
		case "中搜1024*768新闻图片":
		f_url = "http://img.zhongsou.com/i?w=hello&k=&st=&l=3&r=&t=1024";  
		break;
		case "中搜1280*1024图片":
		f_url = "http://img.zhongsou.com/i?w=hello&k=&st=&l=&r=&t=1280";
		break;
		case "中搜1280*1024新闻图片":
		f_url = "http://img.zhongsou.com/i?w=hello&k=&st=&l=3&r=&t=1280";
		break;
		case "中搜论坛图片":
		f_url = "http://bbs.zhongsou.com/b?w=hello&oi=8&t=0&s=1&k=&aid=E0300000000";  
		break;
		case "中搜股票":
		f_url = "http://www.zhongsou.net/%B9%C9%C6%B1";
		break;
		case "中搜股票代码或名称":
		f_url = "http://www.zhongsou.net/600137";
		break;
		case "中搜便捷搜索":
		f_url = "http://help.zhongsou.com/zs-help-2.htm#9"; 
		break;
		case "中搜Ip查询":
		f_url = "http://p.zhongsou.com/p?w=202.108.33.134&x=38&y=14"; 
		break;
		case "中搜邮编地区查询":
		f_url = "http://p.zhongsou.com/p?w=postcode%3A100000&x=31&y=13";
		break;
		case "中搜电话区号查询":
		f_url = "http://p.zhongsou.com/p?w=Quhao%3Ahello&x=27&y=8";
		break;
		case "中搜帖子搜索":
		f_url = "http://bbs.zhongsou.com/b?w=hello&oi=0&t=0&s=1&k=&aid=E0300000000&b1=%CB%D1%CB%F7%CC%FB%D7%D3";
		break;
		case "中搜mp3":
		f_url = "http://mp3.zhongsou.com/m?w=hello&b=+%CB%D1%CB%F7+&lg=0&k=&aid=E050000000&ty=16";
		break;
		case "中搜rm格式音乐":
		f_url = "http://mp3.zhongsou.com/m?w=hello&b=+%CB%D1%CB%F7+&lg=0&k=&aid=E050000000&ty=17"; 
		break;
		case "中搜wma格式音乐":
		f_url = "http://mp3.zhongsou.com/m?w=hello&b=+%CB%D1%CB%F7+&lg=0&k=&aid=E050000000&ty=18";
		break;
		case "中搜flash":
		f_url = "http://mp3.zhongsou.com/m?w=hello&b=+%CB%D1%CB%F7+&lg=0&k=&aid=E050000000&ty=19"; 
		break;
		case "中搜专辑":
		f_url = "http://mp3.zhongsou.com/m?w=hello&b=+%CB%D1%CB%F7+&lg=0&k=&aid=E050000000&ty=6";
		break;
		case "中搜新闻图片":
		f_url = "http://img.zhongsou.com/i?w=hello&k=&st=&l=3&r=&t=";
		break;
		case "中搜图片":
		f_url = "http://img.zhongsou.com/i?w=hello&k=&st=&l=&r=&t="; 
		break;
		case "中搜词典":
		f_url = "http://p.zhongsou.com/p?w=dict%3Ahello&x=32&y=8";  
		break;
		case "bing网页":
		f_url = "http://cn.bing.com/search?q=hello&go=&form=QBLH&filt=all"; 
		break;
		case "bing中文网页":
		f_url = "http://cn.bing.com/search?q=hello&go=&form=QBRE&filt=lf";
		break;
		case "bing人气榜":
		f_url = "http://cn.bing.com/xrank/search?q=hello&go=&form=QBXO&scope=celebrity"; 
		break;
		case "bing图片":
		f_url = "http://cn.bing.com/images/search?q=hello&FORM=BIFD#";
		break;
		case "bing视频":
		f_url = "http://cn.bing.com/videos/search?q=hello&FORM=BVFD";  
		break;
		case "bing地图":
		f_url = "http://cn.bing.com/ditu/?q=hello&mkt=zh-CN&FORM=BYFD";
		break;
		case "bing资讯":
		f_url = "http://cn.bing.com/news/search?q=hello&FORM=BNFD";
		break;
		case "搜狗网页":
		f_url = "http://www.sogou.com/web?query=hello&_asf=www.sogou.com&_ast=1245647322&w=01019900&p=40040100";  
		break;
		case "搜狗新闻":
		f_url = "http://news.sogou.com/news?query=hello"; 
		break;
		case "搜狗新闻标题":
		f_url = "http://news.sogou.com/news?query=hello&sort=0&time=0&w=03009900&_ast=1245647343&_asf=news.sogou.com&mode=2"; 
		break;
		case "搜狗全部音乐":
		f_url = "http://mp3.sogou.com/music.so?query=hello"; 
		break;
		case "搜狗mp3":
		f_url = "http://mp3.sogou.com/music.so?query=hello&as=&st=&ac=1&pf=mp3&class=1&music.so=null&_asf=mp3.sogou.com&_ast=1245648102&w=02009900";  
		break;
		case "搜狗rm格式音乐":
		f_url = "http://mp3.sogou.com/music.so?query=hello&as=&st=&ac=1&pf=rm&class=1&w=02009900&dr=1&_asf=mp3.sogou.com&_ast=1245648182";
		break;
		case "搜狗wma格式音乐":
		f_url = "http://mp3.sogou.com/music.so?query=hello&as=false&st=&ac=1&pf=wma&class=1&w=02009900&dr=1&_asf=mp3.sogou.com&_ast=1245648163";
		break;
		case "搜狗歌词":
		f_url = "http://mp3.sogou.com/gecisearch.so?query=hello&as=true&st=heat&ac=1&pf=&class=5&w=02009900&dr=1";  
		break;
		case "搜狗铃声":
		f_url = "http://mp3.sogou.com/ring.so?query=hello&as=true&st=heat&ac=1&pf=&class=8&w=02009900&dr=1";
		break;
		case "搜狗专辑":
		f_url = "http://mp3.sogou.com/music.so?query=hello&as=true&st=heat&ac=1&pf=&class=1&w=02009900&dr=1&_asf=mp3.sogou.com&_ast=1245648206";
		break;
		case "搜狗新闻图片":
		f_url = "http://news.sogou.com/news?query=hello&sort=0&time=0&w=03009900&_ast=1245647375&_asf=news.sogou.com&mode=3";
		break;
		case "搜狗全部图片":
		f_url = "http://pic.sogou.com/pics?query=hello";
		break;
		case "搜狗大图片":
		f_url = "http://pic.sogou.com/pics?query=hello&mode=2&p=&dp=&mood=0&dheight=900&dwidth=1440&di=2&_asf=pic.sogou.com&_ast=1245648382&w=05009900"; 
		break;
		case "搜狗壁纸":
		f_url = "http://pic.sogou.com/pics?query=hello&mode=5&p=&dp=&mood=0&dheight=900&dwidth=1440&di=2&_asf=pic.sogou.com&_ast=1245648507&w=05009900";
		break;
		case "搜狗头像":
		f_url = "http://pic.sogou.com/pics?query=hello&mode=9&p=&dp=&mood=0&dheight=900&dwidth=1440&di=2&_asf=pic.sogou.com&_ast=1245648427&w=05009900";
		break;
		case "搜狗套图":
		f_url = "http://pic.sogou.com/pics?query=hello&mode=8&p=&dp=&mood=0&dheight=900&dwidth=1440&di=2&_asf=pic.sogou.com&_ast=1245648533&w=05009900"; 
		break;
		case "搜狗视频":
		f_url = "http://v.sogou.com/v?query=hello";  
		break;
		case "搜狗地图":
		f_url = "http://map.sogou.com/#city=%u5168%u56FD&lq=hello&page=1";
		break;
		case "搜狗博客":
		f_url = "http://blogsearch.sogou.com/blog?query=hello";
		break;
		case "搜狗说吧":
		f_url = "http://bbs.sogou.com/t?p=40230450&s=hello";  
		break;
		case "搜狗问答":
		f_url = "http://wenda.sogou.com/search?query=hello";  
		break;
		case "搜搜QQ书签":
		f_url = "http://shuqian.qq.com/search/hello";
		break;
		case "搜搜手机":
		f_url = "http://x.soso.com/cgi-bin/rssearch/rssearch?q=hello&ContentClass=6&fm=";
		break;
		case "搜搜软件":
		f_url = "http://x.soso.com/cgi-bin/rssearch/rssearch?q=hello&ContentClass=4&fm=";
		break;
		case "搜搜女性":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=lady";
		break;
		case "搜搜儿童":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=kid";
		break;
		case "搜搜证券":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=stock1.finance";
		break;
		case "搜搜体育":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=sports"; 
		break;
		case "搜搜星座":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=astro";
		break;
		case "搜搜读书":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=book";
		break;
		case "搜搜笑话":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=joke";  
		break;
		case "搜搜汽车":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=auto";
		break;
		case "搜搜综合":
		f_url = "http://www.soso.com/q?w=hello&sc=int&uin=&lr=chs"; 
		break;
		case "搜搜科技":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=tech"; 
		break;
		case "搜搜QQ空间":
		f_url = "http://blog.soso.com/qz.q?sc=qz&cid=&ty=diary&pid=qz.s.res&st=r&sd=&op=blog.diary&ie=utf8&w=hello"; 
		break;
		case "搜搜QQ号":
		f_url = "http://blog.soso.com/qz.q?sc=qz&op=blog.uin&pid=qz.s.res&st=r&sd=&w=hello&ty=uin";
		break;
		case "搜搜生活":
		f_url = "http://life.soso.com/?area=bizsearch&cmd=bigmap&city=北京&a=&q=hello&frm=soso_sc_txt";
		break;
		case "搜搜网页":
		f_url = "http://www.soso.com/q?pid=s.idx&w=hello"; 
		break;
		case "搜搜新闻":
		f_url = "http://news.soso.com/n.q?sc=news&ty=c&w=hello";
		break;
		case "搜搜新闻标题":
		f_url = "http://news.soso.com/n.q?sc=news&pid=n.res.i&ch=n.res.uf&num=&st=r&sd=&w=hello&ty=t";
		break;
		case "搜搜进入吧":
		f_url = "http://post.soso.com/sobar.q?op=enterbar&ch=&kw=&bn=hello&proto=4";
		break;
		case "搜搜帖子":
		f_url = "http://post.soso.com/sobar.q?op=SearchPost&ch=&kw=hello&bn=hello&proto=11";
		break;
		case "搜搜帖子按作者搜":
		f_url = "http://post.soso.com/sobar.q?op=SearchPost&ch=&kw=hello&bn=hello&proto=12";
		break;
		case "搜搜问问-已解决":
		f_url = "http://wenwen.soso.com/z/SearchSolved.e?sp=Shello";
		break;
		case "搜搜问问-待解决":
		f_url = "http://wenwen.soso.com/z/SearchPending.e?sp=Shello&sp=0"; 
		break;
		case "搜搜问问-零答案":
		f_url = "http://wenwen.soso.com/z/SearchZeroReply.e?sp=Shello&sp=0"; 
		break;
		case "搜搜问问-高悬赏":
		f_url = "http://wenwen.soso.com/z/SearchHighOffer.e?sp=Shello&sp=0"; 
		break;
		case "搜搜全部":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=www";  
		break;
		case "搜搜全部音乐":
		f_url = "http://music.soso.com/music.cgi?w=hello&sc=mus&ch=&pid=";
		break;
		case "搜搜mp3":
		f_url = "http://music.soso.com/music.cgi?sc=mus&ch=s.m.res.i&pid=&gid=&cin=&pg=1&w=hello&clz=mp3";
		break;
		case "搜搜rm格式音乐":
		f_url = "http://music.soso.com/music.cgi?sc=mus&ch=s.m.nores.i&pid=&gid=&cin=&w=hello&clz=rm";
		break;
		case "搜搜wma格式音乐":
		f_url = "http://music.soso.com/music.cgi?sc=mus&ch=s.m.nores.i&pid=&gid=&cin=&w=hello&clz=wma";
		break;
		case "搜搜flash":
		f_url = "http://music.soso.com/music.cgi?sc=mus&ch=s.m.nores.i&pid=&gid=&cin=&w=hello&clz=swf"; 
		break;
		case "搜搜歌词":
		f_url = "http://music.soso.com/music.cgi?sc=mus&ch=s.m.res.i&pid=&gid=&cin=&pg=1&w=hello&clz=lyric";
		break;
		case "搜搜音乐":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=music";
		break;
		case "搜搜专辑":
		f_url = "http://music.soso.com/music.cgi?sc=mus&ch=s.m.nores.i&pid=&gid=&cin=&w=hello&clz=albumn";
		break;
		case "搜搜新闻图片":
		f_url = "http://news.soso.com/n.q?sc=news&pid=n.res.i&ch=n.res.uf&num=&st=r&sd=&w=hello&ty=p";
		break;
		case "搜搜图片":
		f_url = "http://image.soso.com/image.cgi?sc=img&w=hello"; 
		break;
		case "搜搜视频":
		f_url = "http://video.soso.com/search/?sc=vid&pid=v.res.i&w=hello";
		break;
		case "搜搜电影":
		f_url = "http://x.soso.com/cgi-bin/rssearch/rssearch?q=hello&ContentClass=1&fm=";
		break;
		case "搜搜娱乐":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=ent";
		break;
		case "搜搜动漫":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=comic";
		break;
		case "搜搜游戏":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=gamezone";  
		break;
		case "搜搜百科":
		f_url = "http://baike.soso.com/v60463.htm?sp=SSThello";
		break;
		case "搜搜财经":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=finance"; 
		break;
		case "搜搜博客":
		f_url = "http://blog.soso.com/qz.q?sc=qz&op=blog.blog&ty=blog&w=hello";
		break;
		case "搜搜词典":
		f_url = "http://dict.soso.com/d.q?sc=dict&ie=utf-8&w=hello";
		break;
		case "搜搜教育":
		f_url = "http://www.soso.com/q?ch=w.ptl&sc=qq&uin=&w=hello&site=edu";
		break;
		case "搜搜图书":
		f_url = "http://x.soso.com/cgi-bin/rssearch/rssearch?q=hello&ContentClass=5&fm="; 
		break;
		case "Cuil网页":
		f_url = "http://www.cuil.com/search?q=hello";  
		break;
		case "Sapo网页":
		f_url = "http://pesquisa.sapo.pt/?barra=resumo&st=&channel=&q=hello";
		break;
		case "Sapo新闻":
		f_url = "http://pesquisa.sapo.pt/?q=hello&barra=noticias&location=pt";
		break;
		case "Sapo图片":
		f_url = "http://pesquisa.sapo.pt/?q=hello&barra=imagens&location=pt";
		break;
		case "Sapo产品":
		f_url = "http://pesquisa.sapo.pt/?q=hello&barra=shopping&location=pt";
		break;
		case "Sapo博客":
		f_url = "http://pesquisa.sapo.pt/?q=hello&barra=blogs&location=pt";
		break;
		case "狗狗软件":
		f_url = "http://soft.gougou.com/search?search=hello&restype=2&id=10000006&ty=0";
		break;
		case "狗狗网页":
		f_url = "http://web.gougou.com/search?search=hello&id=1";  
		break;
		case "狗狗BT":
		f_url = "http://www.gougou.com/search?search=hello&restype=-1&id=10000001&ty=1&pattern=0";
		break;
		case "狗狗电驴":
		f_url = "http://www.gougou.com/search?search=hello&restype=-1&id=10000001&ty=2&pattern=0";
		break;
		case "狗狗RMV视频":
		f_url = "http://movie.gougou.com/search?search=hello&suffix=41&id=6"; 
		break;
		case "狗狗WMV视频":
		f_url = "http://movie.gougou.com/search?search=hello&suffix=50&id=6";
		break;
		case "狗狗AVI视频":
		f_url = "http://movie.gougou.com/search?search=hello&suffix=7&id=6"; 
		break;
		case "狗狗在线播放":
		f_url = "http://video.gougou.com/search?s=hello&id=10000006&fr=1";  
		break;
		case "狗狗MTV":
		f_url = "http://mp3.gougou.com/search?search=hello&suffix=32_50_41&mtv=1&id=10000006&pattern=0";  
		break;
		case "狗狗影视":
		f_url = "http://movie.gougou.com/Sections/movies?search=hello&page=1&searchby=2";  
		break;
		case "狗狗书籍":
		f_url = "http://book.gougou.com/search?search=hello&restype=3&id=10000006&ty=0&pattern=0"; 
		break;
		case "狗狗全集":
		f_url = "http://blog.gougou.com/search?search=hello&page=1&id=10000006";  
		break;
		case "狗狗MP4视频":
		f_url = "http://mp4.gougou.com/search?search=hello&suffix=30&id=10000006";
		break;
		case "狗狗3GP视频":
		f_url = "http://mp4.gougou.com/search?search=hello&suffix=3&id=10000006"; 
		break;
		case "狗狗PMP视频":
		f_url = "http://mp4.gougou.com/search?search=hello&suffix=52&id=10000006";
		break;
		case "狗狗全部音乐":
		f_url = "http://mp3.gougou.com/search?search=hello&suffix=&mtv=0&id=10000006&pattern=0";
		break;
		case "狗狗mp3":
		f_url = "http://mp3.gougou.com/search?search=hello&suffix=29&mtv=0&id=10000006&pattern=0";
		break;
		case "狗狗wma音乐":
		f_url = "http://mp3.gougou.com/search?search=hello&suffix=49&mtv=0&id=10000006&pattern=0";
		break;
		
		case "狗狗歌词":
		f_url = "http://mp3.gougou.com/lrc?search=hello&id=10000006&pattern=0";
		break;
		case "狗狗全部视频":
		f_url = "http://mp4.gougou.com/search?search=hello&suffix=&id=10000006"; 
		break;
		case "狗狗游戏":
		f_url = "http://game.gougou.com/search?search=hello&restype=1&id=10000006&ty=0"; 
		break;
		case "有道购物":
		f_url = "http://gouwu.youdao.com/search?q=hello&keyfrom=gouwu.index";
		break;
		case "有道网页":
		f_url = "http://www.youdao.com/search?q=hello&keyfrom=web.index";
		break;
		case "有道热闻":
		f_url = "http://news.youdao.com/search?q=hello&start=0&length=10&s=%24sort&tl=&keyfrom=search.index";
		break;
		case "有道快帖":
		f_url = "http://tie.youdao.com/search?method=searchdft&word=hello&srchtype=board";  
		break;
		case "有道音乐":
		f_url = "http://mp3.youdao.com/search?q=hello&keyfrom=music.index&t=ALL"; 
		break;
		case "有道图片":
		f_url = "http://image.youdao.com/search?q=hello&keyfrom=image.index"; 
		break;
		case "有道视频":
		f_url = "http://video.youdao.com/search?q=hello&keyfrom=video.index";
		break;
		case "有道地图":
		f_url = "http://ditu.youdao.com/#q=hello&center=&city=&curPage=&pageCap=&iq=hello&lq=&radius=1000&inputcity=";
		break;
		case "有道博客":
		f_url = "http://blog.youdao.com/search?q=hello&keyfrom=blog.index";  
		break;
		case "有道词典":
		f_url = "http://dict.youdao.com/search?q=hello&ue=utf-8&keyfrom=dict.index";
		break;
	
	}
	document.getElementById(which).value = f_url;
	var keyobj = document.getElementById("keyword");
	keyobj.value = val;
	 keyobj.style.color ="gray";
}


function setSty(obj){
	 obj.value ="";
	 obj.style.color ="#000000";

}


function switchSch(obj){
	if(obj.id=="bycompany"){
		$("#onlyOne").css("display","block");
		$("#schByClass").css("display","none");
	}else if(obj.id=="byclass"){
		$("#schByClass").css("display","block");
		$("#onlyOne").css("display","none");
	
	}

}

function quitDiv(obj){
	if(obj.id=="quitBtn"){
		$("#engineDiv").hide(200);
		var fstE = getCookie("fstE");
			var scndE = getCookie("scndE");
			var justOneUrl = getCookie("justOneUrl");
			var frame1Url = getCookie("frame1Url");
			var frame2Url = getCookie("frame2Url");
			var schVal = getCookie("schVal");
			//if(fstE==""){
			//alert("fstE==kong");
			
			//}
			if((fstE==null||fstE=='undefined'||fstE=="")&&(scndE==null||scndE=='undefined'||scndE=="")){
				//alert('1');
				$("#selectedOneEngine").html("百度");
				$("#vsand").html("vs.");
				$("#selectedTwoEngine").html("Google");
			}else if(fstE!=null&&fstE!='undefined'&&fstE!=''&&scndE!=null&&scndE!='undefined'&&scndE!=''){
				//alert('2');
				$("#selectedOneEngine").html(fstE);
				$("#selectedTwoEngine").html(scndE);
				$("#frame1Url").attr("value",frame1Url);
				$("#frame2Url").attr("value",frame2Url);
			
			}else if(fstE!=null&&fstE!='undefined'&&fstE!=''&&(scndE==null||scndE.length==0||scndE=='undefined'||scndE=='')){
				//alert('3');
				$("#selectedOneEngine").html(fstE);
				$("#vsand").html("");
				$("#selectedTwoEngine").html("");
				$("#justOneUrl").attr("value",justOneUrl);
			}
			if(schVal!='undefined'){	
				$("#keyword").attr("value",schVal);
				$("#keyword").css("color","gray");
			}
				
	
	}else if(obj.id=="sure"){
		$("#engineDiv").hide(200);
	
	}else if(obj.id=="sureandsave"){
		$("#engineDiv").hide(200);
		var fst = $("#selectedOneEngine").html();
		var scnd = $("#selectedTwoEngine").html();
		var oneurl = $("#justOneUrl").attr("value");
		var frame1url = $("#frame1Url").attr("value");
		var frame2url = $("#frame2Url").attr("value");
		var schVal = $("#keyword").attr("value");
		setCookie("schVal",schVal,365);
		if(fst.length>0&&scnd.length>0){
			setCookie("fstE",fst,365);
			setCookie("scndE",scnd,365);
			setCookie("justOneUrl","",365);
			setCookie("frame1Url",frame1url,365);
			setCookie("frame2Url",frame2url,365);
		}
		if(fst.length>0&&scnd.length==0){
			setCookie("fstE",fst,365);
			setCookie("scndE","",365);
			setCookie("justOneUrl",oneurl,365);
			setCookie("frame1Url","",365);
			setCookie("frame2Url","",365);
		
		}
		
	}


}