 var d=document;
 function tp(e){
	 if(d.flpage.w.value.length>0){
		 var c=e.href;e.href=e.href.replace(/w=.+/g,"w=");
		 e.href=e.href.replace(/SearchSolved\.e\?sp=S.+/g,"SearchSolved.e?sp=S");
		 var a=d.flpage.w.value.trim();
		 if(e.href.indexOf("wenwen")!=-1||e.href.indexOf("video")!=-1){
			 e.href=e.href+encodeURIComponent(a)
		}
		else{
			e.href=e.href+a
		}
	}
	else{
		if(e.id=="xunren"){
			e.href="http://xunren.soso.com/"
		}
		else{
			e.href="http://"+e.hostname
		}
	}
}
String.prototype.trim=function(){
	return this.replace(/(^\s*)|(\s*$)/g,"")
};
$d=function(a){return d.getElementById(a)};
var st="";
function delaySM(a){
	clearTimeout(st);
	o=$d("tm");
	tt=setTimeout(function(){o.style.display="block";d.onmousemove=cp},500)
}

function cp(a){
	evt=window.event?window.event:a;
	var c=function(e){
			return{
				x:e.pageX||(e.clientX+(d.documentElement.scrollLeft||d.body.scrollLeft)),y:e.pageY||(e.clientY+(d.documentElement.scrollTop||d.body.scrollTop))
			}
		}(evt);
		l=o.offsetLeft-20;
		t=o.offsetTop-20;
		r=l+o.offsetWidth+40;
		b=o.offsetTop+o.offsetHeight+20;
		py=c.y;
		px=c.x;
		if((py>t&&py<b)&&(px>l&&px<r)){}else{st=setTimeout(function(){o.style.display="none"},500);d.onmousemove=function(){}}};
 
function document.onkeydown()
{
	var e=event.srcElement;
	if(event.keyCode==13)
	{
		document.getElementById("Submit1").click();
		return false;
	}
}

function shoucang()
{
    window.external.AddFavorite(window.location.href,'教育城百科');
    return false;
}
function soulemma()
{ 
   return false;
}
 
function golemma()
{ 
    return false;
} 
 
 
 
// 作文。
function SearchZuoWen(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfZuoWen.aspx?cx=015102395614341251732%3Awy-p0dtfnvw&cof=FORID%3A11&ie=UTF-8&q="+ q +"&sa=%E6%95%99%E8%82%B2%E6%90%9C%E7%B4%A2#1121";
    }
};
 
// 资讯。
function SearchNews(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfNews.aspx?cx=015102395614341251732%3Auq9psrywrl0&cof=FORID%3A11&ie=UTF-8&q="+ q +"&sa=%E6%95%99%E8%82%B2%E6%90%9C%E7%B4%A2";
    }
};

// 论文。
function SearchLenWen(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfLunWen.aspx?cx=015102395614341251732%3Av-yc7ato48g&cof=FORID%3A11&ie=UTF-8&q="+ q +"&sa=%E6%90%9C%E7%B4%A2";
    }
};

// 学校。
function SearchSchool(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfSchool.aspx?keyWord=" + q;
    }
};
 
// 专业。
function SearchSpecialty(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultSpecialty.aspx?keyWord=" +q ;
    }
};
 
// 课程。
function SearchCourse(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfCourse.aspx?keyWord=" + q;
    }
};
 
 
// 资料。
function SearchDatum(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfDatum.aspx?keyWord="+ q;
    }
};
 
// 图书。
function SearchBook(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
 o.href="http://s.12edu.cn/ResultOfBook.aspx?cx=015102395614341251732%3Aowsu310sk_0&cof=FORID%3A11&ie=UTF-8&q="+ q +"&sa=%E6%95%99%E8%82%B2%E6%90%9C%E7%B4%A2#1033";     }
};
 
// 问吧。
function SearchAsk(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfAsk.aspx?keyWord=" + q;
    }
};
 
// 百科。
function SearchBaike(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfBaike.aspx?keyWord="+ q;
    }
};
 
// Blog。
function SearchBlog(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
 
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "ResultOfBlog.aspx?keyWord="+ q;
    }
};
 
// 模考。
function SearchExam(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfExam.aspx?keyWord="+ q;
    }
};
 
// 工作。
function SearchExam(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfJob.aspx?keyWord="+ q;
    }
};
 
// 百科。
function SearchBaike(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfBaike.aspx?keyWord="+ q;
    }
};
 
// Blog。
function SearchBlog(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfBlog.aspx?keyWord="+ q;
    }
};
 
// 模考。
function SearchExam(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfExam.aspx?keyWord="+ q;
    }
};
 
// 工作。
function SearchJobs(o)
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var h=o.href;
        var q=encodeURIComponent(w);
        o.href = "http://s.12edu.cn/ResultOfJob.aspx?keyWord="+ q;
    }
};
 //提交
function Submit1_onclick() 
{
    var w=Form2.q.value;
    if(w.length>0)
    {
        var q=encodeURIComponent(w);
        window.location ="http://s.12edu.cn/ResultOfNews.aspx?cx=015102395614341251732%3Auq9psrywrl0&cof=FORID%3A11&ie=UTF-8&q="+ q +"&sa=%E6%95%99%E8%82%B2%E6%90%9C%E7%B4%A2#1046";
    }
else{
	window.location="http://s.12edu.cn/";
	}
} ;
 
