
var googlvalue;
function getgooglesvalue() {
	googlvalue = document.getElementById("googl").value;
}
function googleshow() {
	googlvalue = document.getElementById("googl").value;
	open("http://www.google.com.hk/search?client=pub-0084673751261698&channel=2000072013&forid=1&prog=aff&hl=zh-CN&q=" + encodeURIComponent(googlvalue));
}
var select = 0;//ä¯ÀÀÆ÷Ñ¡Ôñ
function show() {
	open(document.getElementById("a").action);
}
function xiugai() {
	if (select == 0) {
		GetSelectRowUuid();
	}
}
function GetSelectRowUuid() {
	select = 0;
	var radioButton = document.getElementsByTagName("input");
	var value = document.getElementById("valueradio").value;
	var text;
	for (var i = 0; i < radioButton.length; i++) {
		if (radioButton[i].type == "radio") {
			if (radioButton[i].checked) {
				if (radioButton[i].checked == true && radioButton[i].value == 0) {
					text = "http://www.baidu.com/s?tn=hao8com&wd=" + value;
					document.getElementById("a").action = text;
					document.getElementById("srh_a").href = text;
					document.getElementById("srh_i").src = "i/srh_1.gif";
				}
				if (radioButton[i].checked == true && radioButton[i].value == 1) {
					text = "http://www.sogou.com/web?query=" + value + "&_asf=www.sogou.com&_ast=1273553636&w=01019900&p=40040100";
					document.getElementById("a").action = text;
					document.getElementById("srh_a").href = text;
					document.getElementById("srh_i").src = "img/sogoglogo2.gif";
				}
				if (radioButton[i].checked == true && radioButton[i].value == 2) {
					text = "http://www.soso.com/q?sc=web&bs=&ch=w.uf&num=10&w=" + value;
					document.getElementById("a").action = text;
					document.getElementById("srh_a").href = text;
					document.getElementById("srh_i").src = "i/02.gif";
				}
				if (radioButton[i].checked == true && radioButton[i].value == 3) {
					text = "http://115.com/s?q=" + value;
					document.getElementById("a").action = text;
					document.getElementById("srh_a").href = text;
					document.getElementById("srh_i").src = "i/03.gif";
				}
				if (radioButton[i].checked == true && radioButton[i].value == 4) {
					text = "http://search.cn.yahoo.com/search?v=web&ei=gbk&searchFlag=&fr=fp-tab-web-ycn&pid=ysearch&source=yahoo_yhp_0706_search_button&p=" + value;
					document.getElementById("a").action = text;
					document.getElementById("srh_a").href = text;
					document.getElementById("srh_i").src = "i/04.gif";
				}
				if (radioButton[i].checked == true && radioButton[i].value == 5) {
					text = "http://www.gougou.com/search?search=" + value + "&id=1";
					document.getElementById("a").action = text;
					document.getElementById("srh_a").href = text;
					document.getElementById("srh_i").src = "i/05.gif";
				}
				if (radioButton[i].checked == true && radioButton[i].value == 6) {
					text = "http://cn.bing.com/search?q=" + encodeURIComponent(value) + "&go=&form=QBRE&filt=all&qs=n&sk=";
					document.getElementById("a").action = text;
					document.getElementById("srh_a").href = text;
					document.getElementById("srh_i").src = "i/06.gif";
				}
				if (radioButton[i].checked == true && radioButton[i].value == 7) {
					text = "http://search.taobao.com/search?q= "+value+"&shopf=newsearch?q=a&shopf=newsearch";
					document.getElementById("a").action = text;
					document.getElementById("srh_a").href = text;
					document.getElementById("srh_i").src = "i/07.png";
				}
				if (radioButton[i].checked == true && radioButton[i].value == 8) {
					text = "http://youa.baidu.com/search/s?search_domain=1&category=0&keyword=" + value;
					document.getElementById("a").action = text;
					document.getElementById("srh_a").href = text;
					document.getElementById("srh_i").src = "i/08.gif";
				}
				return;
			}
		}
	}
}
cook = g_cookie("skin");
if (cook) {
	em("skinc").href = "css/sd_" + cook + ".css";
}
var tab_now = 1;
function s(a) {
	if (a != tab_now) {
		em("tl_" + a).className = "bnone";
		em("tl_" + tab_now).className = "bcolor";
		if (a == 1) {
			em("fav").style.display = "none";
			em("right_top").style.display = "";
			em("nav").style.display = "";
		} else {
			em("nav").style.display = "none";
			em("right_top").style.display = "none";
			em("fav").style.display = "";
			if (em("fav_i").src == "about:blank") {
				em("fav_i").src = "http://www.78789.CN/";
			}
		}
		tab_now = a;
	}
}
function ssk(a) {
	em("skinc").href = "css/sd_" + a + ".css";
	s_cookie("skin", a, 5184000, "/");
}
function em(e) {
	return document.getElementById(e);
}
function start() {
	setInterval("refreshCalendarClock()", 1000);
	var m = g_cookie("m");
	document.gomail.domains.selectedIndex = m;
}
function g_cookie(name) {
	var arg = name + "=";
	var alen = arg.length;
	var c = document.cookie;
	var clen = c.length;
	var i = 0;
	while (i < clen) {
		var j = i + alen;
		if (c.substring(i, j) == arg) {
			return _GetCookieVal(j);
		}
		i = c.indexOf(" ", i) + 1;
		if (i == 0) {
			break;
		}
	}
	return null;
}
function s_cookie(name, value) {
	var expdate = new Date();
	var argv = s_cookie.arguments;
	var argc = s_cookie.arguments.length;
	var expires = (argc > 2) ? argv[2] : null;
	var path = (argc > 3) ? argv[3] : null;
	var domain = (argc > 4) ? argv[4] : null;
	var secure = (argc > 5) ? argv[5] : false;
	if (expires != null) {
		expdate.setTime(expdate.getTime() + (expires * 1000));
	}
	document.cookie = name + "=" + escape(value) + ((expires == null) ? "" : ("; expires=" + expdate.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : "");
}
function _GetCookieVal(offset) {
	var c = document.cookie;
	var endstr = c.indexOf(";", offset);
	if (endstr == -1) {
		endstr = c.length;
	}
	return unescape(c.substring(offset, endstr));
}
function addFavorite() {
	window.external.addFavorite("http://www.LNWB360.cn/", "ÁÉÄþÍø°É");
	return false;
}
function write_tiao() {
	if (top.location == self.location) {
		document.write("<div id=\"title1\"></div>  <div id=\"title2\"><a href=\u2019http://www.woodeye.net/blog/\u2018 onclick=\"return addFavorite()\">\u52a0\u5165\u6536\u85cf&nbsp&nbsp&nbsp</a><a href=\"index.html\" style=\"behavior:url(#default#homepage)\" onclick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('#');return(false);\">\u8bbe\u4e3a\u9996\u9875</a>&nbsp;&nbsp;&nbsp;<a href=\"http://www.east21.net.cn/\">\u7f51\u53cb\u7559\u8a00</a>&nbsp;</div>");
	}
}
var bda = [[["www.baidu.com/index.php?tn=1ndex2_pg"], ["www.baidu.com/s"], [""]], [["image.baidu.com"], ["image.baidu.com/i"], ["201326592"]], [["news.baidu.com"], ["news.baidu.com/ns"], ""], [[""], [""], [""]], [[""], [""], ""], [[""], [""], ["17"]], [[""], [""], [""]]];
gla = [[["www.google.cn/search?&hl=zh-CN&channel=searchlink"], ["www.google.cn/search"]], [[""], [""]], [[""], [""]], [[""], [""]], [[""], [""]]];
var stab = 1, srh_htm;
var bk = 0;
var gk = 0;
var pswd = [[""], [""], [""], [""], [""], [""], [""], [""], [""], [""]];
var mswd = [[""], [""], [""], [""], [""], [""], [""], [""], [""], [""]];
var inputid;
function changeInput() {
	if ("undefined" == document.getElementById("valueradio").value) {
		inputid = null;
	} else {
		inputid = document.getElementById("valueradio").value;
	}
}
var j;
function xiugai() {
	if (select == 0) {
		GetSelectRowUuid();
	}
}
function ssh(i) {

	j = i;
	select = 1;
	var s = em("lt" + i).className = "active";
	em("lt" + stab).className = "";
	stab = i;
	inputid = document.getElementById("valueradio").value;
	if (i == 1) {
		document.getElementById("a").action = "http://www.baidu.com/s?wd=" + inputid + "&ch=&tn=19820726_pg&bar=";
		document.getElementById("srh_a").href = "http://www.baidu.com/s?wd=" + inputid + "&ch=&tn=19820726_pg&bar=" + inputid;
		document.getElementById("srh_i").src = "i/srh_1.gif";
	}
	if (i == 2) {
		document.getElementById("a").action = "http://tieba.baidu.com/f?kw=" + inputid + "&fr=tb0_search&ie=utf-8";
		document.getElementById("srh_a").href = "http://tieba.baidu.com/f?kw=" + inputid + "&fr=tb0_search&ie=utf-8";
		document.getElementById("srh_i").src = "i/srh_1.gif";
	}
	if (i == 3) {
		document.getElementById("a").action = "http://youa.baidu.com/search/s?search_domain=1&category=0&keyword=" + inputid;
		document.getElementById("srh_a").href = "http://youa.baidu.com/search/s?search_domain=1&category=0&keyword=" + inputid;
		document.getElementById("srh_i").src = "i/08.gif";
	}
	if (i == 4) {
		document.getElementById("a").action = "http://mp3.baidu.com/m?tn=baidump3&ct=134217728&lm=-1&word=" + inputid;
		document.getElementById("srh_a").href = "http://tieba.baidu.com/f?kw=" + inputid + "&fr=tb0_search&ie=utf-8";
		document.getElementById("srh_i").src = "i/baidu3.gif";
	}
	if (i == 5) {
		document.getElementById("a").action = "http://115.com/s?q=" + inputid;
		document.getElementById("srh_a").href = "http://115.com/s?q=" + inputid;
		document.getElementById("srh_i").src = "i/03.gif";
	}
	if (i == 6) {
		document.getElementById("a").action = "http://image.baidu.com/i?tn=baiduimage&ct=201326592&lm=-1&cl=2&word=a" + inputid;
		document.getElementById("srh_a").href = "http://image.baidu.com/i?tn=baiduimage&ct=201326592&lm=-1&cl=2&word=a" + inputid;
		document.getElementById("srh_i").src = "i/baidu5.gif";
	}
	if (i == 7) {
		document.getElementById("a").action = "http://tieba.baidu.com/f?kw=" + inputid + "&fr=tb0_search&ie=utf-8";
		document.getElementById("srh_a").href = "http://tieba.baidu.com/f?kw=" + inputid + "&fr=tb0_search&ie=utf-8";
		document.getElementById("srh_i").src = "i/00.gif";
	}
	if (i == 8) {
		document.getElementById("a").action = "http://news.baidu.com/ns?word=" + inputid + "&tn=news&from=news&ie=gb2312&bs=a&sr=0&cl=2&rn=20&ct=1&prevct=no";
		document.getElementById("srh_a").href = "http://news.baidu.com/ns?word=" + inputid + "&tn=news&from=news&ie=gb2312&bs=a&sr=0&cl=2&rn=20&ct=1&prevct=no";
		document.getElementById("srh_i").src = "i/baidu7.gif";
	}
	if (i == 9) {
		document.getElementById("a").action = "http://map.baidu.com/";
		document.getElementById("srh_a").href = "http://map.baidu.com/";
		document.getElementById("srh_i").src = "i/baidu8.gif";
	}
}
function gss() {
	if (stab == 2 || stab == 5) {
		document.yhfm.p.value = document.gform.q.value;
		clickCount(document.yhfm.action);
		open(document.yhfm.action, "sn");
		return false;
	} else {
		if (gform.action != "http://www.google.cn/search") {
			clickCount(document.gform.action);
		}
	}
}
function optionshow() {
	window.open("http://www.w3school.com.cn");
}


