﻿// JavaScript Document

// -------------------------------------------------------
// Function : getPath()
// Description : Get Web Application Virtual Url
// Parameter :
//   none
// -------------------------------------------------------
function geturl(){
  if (!top.gAbsolutePath){
		var loc = document.location;
		top.protocal = loc.protocol;
		top.host = loc.host;
		top.hostname = loc.hostname;
		top.port = loc.port;
		top.gAbsolutePath = top.protocal + "//" + top.host + (top.port != '' ? ':' + top.port : '') + loc.pathname.substr(0, loc.pathname.indexOf('/', 1)+1);
  }
  top.path = top.gAbsolutePath;
  //return top.gAbsolutePath ;
  return "/";
}
function readCookieEx(name)

{

  var cookieValue = "";

  var search = name + "=";

  if(document.cookie.length > 0)

  { 

    offset = document.cookie.indexOf(search);

    if (offset != -1)

    { 

      offset += search.length;

      end = document.cookie.indexOf(";", offset);

      if (end == -1) end = document.cookie.length;

      cookieValue = decodeURI(document.cookie.substring(offset, end));

    }

  }

  return cookieValue;

}
function Deletecookie (name) 
{  //删除名称为name的Cookie  
    var exp = new Date();    
    exp.setTime (exp.getTime() - 1);    
    var cval = readCookie (name);    
    document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();  
}  
//===============================================================
//
//顶部头文件
//
//===============================================================
function LoginOut()
{
	var url = "/WebService/LoginService.svc/";
	param='';
	Call(url,"LoginOut",param,OnLoginOutResult);
}
function OnLoginOutResult(result)
{
	if(result==1)
	{
		var s="";
        s+="<div id='loginin'><div id='nav_link'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href='"+geturl()+"login/Register.aspx'><font color='#ffff00'>新用户注册</font></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href='"+geturl()+"login/GetPassword.aspx'><font color='#ccff00'>取回密码</font></A>&nbsp;&nbsp;<A href='"+geturl()+"Help/Help.aspx?HelperID=14'><font color='#ccff00'>忘记帐号和密码</font></A></div>";
        s+="<IMG height='33' src='http://img.jxjyzy.com/images/index_07_r3_c22.gif' width='30' align='absMiddle' />&nbsp;&nbsp;用户名:";
        s+="<input type='text' id='labAccount' name='labAccount' style='size:10px; height:14px; width:80px;' /> &nbsp;&nbsp;密 码:";
        s+="<input type='password' style='size:10px; height:14px; width:80px;'id='labPwd' name='labPwd'/>";
         //s+="&nbsp;&nbsp;验证码:<input type='text' style='size:10px; height:14px; width:80px;'id='labCode' name='labCode'/><input type='image' src='"+geturl()+"Login/ValidateImage.aspx'  align='absmiddle'  border='0' value='验证码' />&nbsp;&nbsp;";
       s+=" <input type='image' src='http://img.jxjyzy.com/images/index_07_r4_c8.gif' name='Submit' onclick='Login();' align='absmiddle' width='59' height='21' border='0' value='提交' /></div>		";
        document.getElementById("loginin").innerHTML=s;
	}
}
function Login()
{

	var url = "/WebService/LoginService.svc/";
	param='{"account":"'+document.getElementById("labAccount").value+'","password":"'+document.getElementById("labPwd").value+'"}';//+document.getElementById("labCode").value+
	//param='{"account":"'+document.getElementById("labAccount").value+'","password":"'+document.getElementById("labPwd").value+'"}';
	Call(url,"LoginIn",param,OnLoginResult);
}
function OnLoginResult(result)
{
	if(result==1)			
    	      	  	{
	    	var Type="",Account,UserID,Licence,Name,Pwd,Point="",MsgCount="",EmailCount="";
			var cook=readCookieEx("jxjyzy");
			if(cook!=null && cook!="")
			{			
				var arr=cook.split("&");
				for(var i=0;i<arr.length;i++)
				{
					var xx=arr[i].split("=");
					if(xx[0]=="Account")
					{
						Account=xx[1];
						continue;
					}
					if(xx[0]=="UserID")
					{
						UserID=xx[1];
						continue;
					}
					if(xx[0]=="Name")
					{
						Name=xx[1];
						continue;
					}
					if(xx[0]=="Pwd")
					{
						Pwd=xx[1];
						continue;			
					}
					if(xx[0]=="Licence")
					{
						Licence=xx[1];
						continue;
					}
					if(xx[0]=="Point")
					{
						Point="你的威望值是"+xx[1];
						continue;
					}
					if(xx[0]=="EmailCount")
					{
						EmailCount=xx[1];
						continue;
					}
					if(xx[0]=="MsgCount")
					{
						MsgCount=xx[1];
						continue;
					}
					if(xx[0]=="Type")
					{
						Type=xx[1];					;
						continue;
					}
				}
				if(Type=="1")
				{
                    var s="";
                    s+="<div id='nav_link'><font color='red'></font><A href='"+geturl()+"User/Index.aspx'><font color='#ffff00'>[会员中心]</font></A>&nbsp;&nbsp;";
                    s+="<A href='"+geturl()+"User/UserResEdit.aspx?EditMode=False'><font color='#ffff00'>[上传资源]</font></A>&nbsp;&nbsp;";
                    s+="&nbsp;&nbsp;<a href='javascript:LoginOut();'><strong><font color='#ffff00'>[退出]</font></strong></a></div>";
                    s+="<IMG height='33' src='http://img.jxjyzy.com/images/index_07_r3_c22.gif' width='30' align='absMiddle'>欢迎您"+Account +",";
                    //s+="你的威望值是"+Point+"&nbsp;&nbsp;&nbsp;&nbsp;<img width='18' height='12' src='"+geturl()+"images/clip_image001.gif'>");
                    s+=Point+"&nbsp;&nbsp;&nbsp;&nbsp;<img width='18' height='12' src='http://img.jxjyzy.com/images/clip_image001.gif'>";
                    s+="<a href='"+geturl()+"User/UserInnerMessageList.aspx?Status=Receive'>待阅短信("+MsgCount+")</a>&nbsp;&nbsp;";
                    s+="<a href='"+geturl()+"EMail/EMailLogin.aspx?ReturnUrl=http://mail.jxjyzy.com/webmailgov/mail.jsp'>邮箱"+EmailCount+"</a>";

                    document.getElementById("loginin").innerHTML=s;

				}
	        }
	  }
	if(result==-1)			
    	alert("登录失败！原因可能是：\r\t 1、用户名或者密码错误；\r\t 2、您没有进行实名注册卡激活；\r\t 3、学校、地市管理员用户被禁止在前台(首页和论坛)登录,它只能用于后台管理！");
    if(result==-2)			
    	alert("验证码输入错误！");
}
function Head()
{
	document.write("<div style='width:760px;align=center'>");
	document.write("<div id='head-nav' style='background-image:url(http://img.jxjyzy.com/images/index_r1_c50.jpg); height:20px; text-align:left; padding:5px 0 0 20px'><div style='float:right; margin-right:10px;'>| <a href='"+geturl()+"default.htm' style='color:#000000'>首 页</a> | <a href='"+geturl()+"ResourceHtml/New_72.html'  style='color:#000000'>资 源</a> | <a href='"+geturl()+"Coursehtml/index.html'  style='color:#000000'>课 堂</a> | <a href='"+geturl()+"TeacherTraining/Default.aspx'  style='color:#000000'>培 训</a> | <a href='http://bbs.jxjyzy.com/spaceindex.aspx'  style='color:#000000'>博 客</a> | <a href='http://bbs.jxjyzy.com'  style='color:#000000'>论 坛</a> | <a href='"+geturl()+"Help/Help.aspx'  style='color:#000000'>帮 助</a> |</div>");
    document.write("<img src='http://img.jxjyzy.com/images/index_r2_c7.jpg'/>今天是&nbsp;");
	  // Array ofmonth Names
	var monthNames = new Array( "1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
	var now = new Date();
	thisYear = now.getYear();
	if(thisYear < 1900) {thisYear += 1900 }; // corrections if Y2K display problem
	document.write(thisYear + "年"+ monthNames[now.getMonth()] + now.getDate() + "日");
    document.write("</div>");
    
     document.write("<div id='head' align='center'>");
	//AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','760','height','120','title','江西省基础教育资源中心','src','"+geturl()+"images/ziyuanbanner','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','"+geturl()+"images/ziyuanbanner' ); //end AC code
	// document.write("<noscript><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http:\//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='760' height='120' title='江西省基础教育资源中心' ><param name='movie' value='"+geturl()+"images/ziyuanbanner.swf' /><param name='quality' value='high' />");
    // document.write("  <embed src='"+geturl()+"images/ziyuanbanner.swf' quality='high' pluginspage='http:\//www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='760' height='120'></embed></object></noscript>");
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='760' height='120'>");
	document.write("<param name='movie' value='http://img.jxjyzy.com/images/ziyuanbanner.swf' />");
	document.write("<param name='quality' value='high' />");
	document.write("<embed src='http://img.jxjyzy.com/images/ziyuanbanner.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='760' height='120'></embed></object>");
	
	document.write("</div><div id='main-nav'>");
	//debugger;
	var cook=readCookieEx("jxjyzy");
	if(cook!=null && cook!="")
	{
		var Type="",Account,UserID,Licence,Name,Pwd,Point="",MsgCount="",EmailCount="";
		var arr=cook.split("&");
		for(var i=0;i<arr.length;i++)
		{
			var xx=arr[i].split("=");
			if(xx[0]=="Account")
			{
				Account=xx[1];
				continue;
			}
			if(xx[0]=="UserID")
			{
				UserID=xx[1];
				continue;
			}
			if(xx[0]=="Name")
			{
				Name=xx[1];
				continue;
			}
			if(xx[0]=="Pwd")
			{
				Pwd=xx[1];
				continue;			
			}
			if(xx[0]=="Licence")
			{
				Licence=xx[1];
				continue;
			}
			if(xx[0]=="Point")
			{
				Point="你的威望值是"+xx[1];
				continue;
			}
			if(xx[0]=="EmailCount")
			{
				EmailCount=xx[1];
				continue;
			}
			if(xx[0]=="MsgCount")
			{
				MsgCount=xx[1];
				continue;
			}
			if(xx[0]=="Type")
			{
				Type=xx[1];					;
				continue;
			}
		}
		if(Type=="1")
		{
			document.write("<div id='loginin'><div id='nav_link'><font color='red'></font><A href='"+geturl()+"User/Index.aspx'><font color='#ffff00'>[会员中心]</font></A>&nbsp;&nbsp;");
			document.write("<A href='"+geturl()+"User/UserResEdit.aspx?EditMode=False'><font color='#ffff00'>[上传资源]</font></A>&nbsp;&nbsp;");
			document.write("&nbsp;&nbsp;<a href='javascript:LoginOut();'><strong><font color='#ffff00'>[退出]</font></strong></a></div>");
			document.write("<IMG height='33' src='http://img.jxjyzy.com/images/index_07_r3_c22.gif' width='30' align='absMiddle'>欢迎您"+Account +",");
			//document.write("你的威望值是"+Point+"&nbsp;&nbsp;&nbsp;&nbsp;<img width='18' height='12' src='"+geturl()+"images/clip_image001.gif'>");
			document.write(Point+"&nbsp;&nbsp;&nbsp;&nbsp;<img width='18' height='12' src='http://img.jxjyzy.com/images/clip_image001.gif'>");
			document.write("<a href='"+geturl()+"User/UserInnerMessageList.aspx?Status=Receive'>待阅短信("+MsgCount+")</a>&nbsp;&nbsp;");
			document.write("<a href='"+geturl()+"EMail/EMailLogin.aspx?ReturnUrl=http://mail.jxjyzy.com/webmailgov/mail.jsp'>邮箱"+EmailCount+"</a></div>");
		}
		else
		{
			Deletecookie("jxjyzy");
			//document.write("<form id='fff' style='margin:0' method='post' action='"+geturl()+"login/login.aspx?Type=1'>");
			document.write("		<div id='loginin'><div id='nav_link'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href='"+geturl()+"login/Register.aspx'><font color='#ffff00'>新用户注册</font></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href='"+geturl()+"login/GetPassword.aspx'><font color='#ccff00'>取回密码</font></A>&nbsp;&nbsp;<A href='"+geturl()+"Help/Help.aspx?HelperID=14'><font color='#ccff00'>忘记帐号和密码</font></A></div>");
			document.write("		<IMG height='33' src='http://img.jxjyzy.com/images/index_07_r3_c22.gif' width='30' align='absMiddle' />&nbsp;&nbsp;用户名:");
			document.write("		<input type='text' id='labAccount' name='labAccount' style='size:10px; height:14px; width:80px;' /> &nbsp;&nbsp;密 码:");
			document.write("		<input type='password' style='size:10px; height:14px; width:80px;'id='labPwd' name='labPwd'/>");
			//document.write("		&nbsp;&nbsp;验证码:<input type='text' style='size:10px; height:14px; width:80px;'id='labCode' name='labCode'/><input type='image' src='"+geturl()+"Login/ValidateImage.aspx'  align='absmiddle'  border='0' value='验证码' />&nbsp;&nbsp;");
			document.write(" <input type='image' src='http://img.jxjyzy.com/images/index_07_r4_c8.gif' name='Submit' onclick='Login();' align='absmiddle' width='59' height='21' border='0' value='提交' /></div>		");
			//document.write("</form>");		
		}
	}
	else
	{
		//document.write("<form id='fff' style='margin:0' method='get' action='"+geturl()+"login/login.aspx?Type=1' onsubmit='return Login();'>");
		//document.write("<form id='fff' style='margin:0' method='post' action='"+geturl()+"default.htm' >");
		document.write("		<div id='loginin'><div id='nav_link'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href='"+geturl()+"login/Register.aspx'><font color='#ffff00'>新用户注册</font></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href='"+geturl()+"login/GetPassword.aspx'><font color='#ccff00'>取回密码</font></A>&nbsp;&nbsp;<A href='"+geturl()+"Help/Help.aspx?HelperID=14'><font color='#ccff00'>忘记帐号和密码</font></A></div>");
		document.write("		<IMG height='33' src='http://img.jxjyzy.com/images/index_07_r3_c22.gif' width='30' align='absMiddle' />&nbsp;&nbsp;用户名:");
		document.write("		<input type='text' id='labAccount' name='labAccount' style='size:10px; height:14px; width:80px;' /> &nbsp;&nbsp;密 码:");
		document.write("		<input type='password' style='size:10px; height:14px; width:80px;'id='labPwd' name='labPwd'/>");
		//document.write("		&nbsp;&nbsp;验证码:<input type='text' style='size:10px; height:14px; width:80px;'id='labCode' name='labCode'/><input type='image' src='"+geturl()+"Login/ValidateImage.aspx'  align='absmiddle'  border='0' value='验证码' />&nbsp;&nbsp;");
		document.write(" <input type='image' src='http://img.jxjyzy.com/images/index_07_r4_c8.gif' name='Submit1' onclick='Login();' align='absmiddle' width='59' height='21' border='0' value='提交' /></div>		");
		//document.write("</form>");
		//document.write("<form><div id='nav_link'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href='"+geturl()+"login/Register.aspx?Type=HaveCard&amp;POS=HOME'><font color='#ffff00'>新用户注册</font></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href='"+geturl()+"login/GetPassword.aspx'><font color='#ccff00'>取回密码</font></A></div>");
		//document.write("<IMG height='33' src='"+geturl()+"images/index_07_r3_c22.gif' width='30' align='absMiddle' />用户名:<input type='text' name='labAccount' size='10' Width='80' Height='20' />密 码:<input type='password' size='10' name='labPwd'  Width='80' Height='20'/>");
		//document.write("<A href='"+geturl()+"login/loginout.aspx?Type=1&Account="+labAccount.value+"&Pwd="+labPwd.value+"'><img src='images/index_07_r4_c8.gif' alt='login' width='59' height='21' border='0' align='absmiddle' /></A></form>&nbsp;&nbsp;");
	}
	
	//document.write("<div><iframe id='frmLogin' src='"+geturl()+"login/login.aspx?Type=2' scrolling='no' width='100%' height='45' frameborder='0'></iframe></div>");
	document.write("</div></div>");

  }


function Head1()
{
document.write("<div style='width:760px;align=center'>");
	document.write("<div id='head-nav' style='background-image:url(http://img.jxjyzy.com/images/index_r1_c578.jpg); height:20px; text-align:left; padding:5px 0 0 20px'><div style='float:right; margin-right:10px;'>| <a href='"+geturl()+"default.htm' style='color:#000000'>首 页</a> | <a href='"+geturl()+"ResourceHtml/New_72.html'  style='color:#000000'>资 源</a> | <a href='"+geturl()+"Coursehtml/index.html'  style='color:#000000'>课 堂</a> | <a href='"+geturl()+"TeacherTraining/Default.aspx'  style='color:#000000'>培 训</a> | <a href='http://bbs.jxjyzy.com/spaceindex.aspx'  style='color:#000000'>博 客</a> | <a href='http://bbs.jxjyzy.com'  style='color:#000000'>论 坛</a> | <a href='"+geturl()+"Help/Help.aspx'  style='color:#000000'>帮 助</a> |</div>");
    document.write("<img src='http://img.jxjyzy.com/images/index_r2_c7.jpg'/>今天是&nbsp;");

	  // Array ofmonth Names
	var monthNames = new Array( "1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
	var now = new Date();
	thisYear = now.getYear();
	if(thisYear < 1900) {thisYear += 1900 }; // corrections if Y2K display problem
	document.write(thisYear + "年"+ monthNames[now.getMonth()] + now.getDate() + "日");
    document.write("</div>");
    
      document.write("<div id='head' align='center'>");
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='760' height='120'>");
	document.write("<param name='movie' value='http://img.jxjyzy.com/images/ziyuanbanner.swf' />");
	document.write("<param name='quality' value='high' />");
	document.write("<embed src='http://img.jxjyzy.com/images/ziyuanbanner.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='760' height='120'></embed></object>");
	document.write("</div>");
	document.write("</div>");


  }
function Head2() 
{	
document.write("<div id='head-nav' style='background-image:url(http://img.jxjyzy.com/images/index_r1_c578.jpg); height:20px; text-align:left; padding:5px 0 0 20px'><div style='float:right; margin-right:10px;'>| <a href='"+geturl()+"default.htm' style='color:#000000'>首 页</a> | <a href='"+geturl()+"ResourceHtml/New_72.html'  style='color:#000000'>资 源</a> | <a href='"+geturl()+"article.htm'  style='color:#000000'>信 息</a> | <a href='"+geturl()+"admin/Building.html'  style='color:#000000'>博 客</a> | <a href='"+geturl()+"bbs/'  style='color:#000000'>论 坛</a> | <a href='"+geturl()+"Help/Help.aspx'  style='color:#000000'>帮 助</a> |</div>");
    document.write("<img src='http://img.jxjyzy.com/images/index_r2_c7.jpg'/>        今天是&nbsp;");
	  // Array ofmonth Names
	var monthNames = new Array( "1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
	var now = new Date();
	thisYear = now.getYear();
	if(thisYear < 1900) {thisYear += 1900 }; // corrections if Y2K display problem
	document.write(thisYear + "年"+ monthNames[now.getMonth()] + now.getDate() + "日");
	//
    document.write("</div>");
} 

//
//培训导航
//
function nav_peixun() 
{	
	document.write("<div id='list-main-nav'>");
	document.write("<ul>");
	document.write("	<li><img src='http://img.jxjyzy.com/images/dot2.gif' width='16' height='16' align='absmiddle' /><a href='default.aspx'>培训首页</a></li>");
	document.write("    <li><img src='http://img.jxjyzy.com/images/dot2.gif' width='16' height='16' align='absmiddle' /><a href='SignUp.aspx'>培训报名入口</a></li>");
	document.write("	<li><img src='http://img.jxjyzy.com/images/dot2.gif' width='16' height='16' align='absmiddle' /><a href='http://www.jxdjg.gov.cn/pxpclist.asp' target='_blank'>证书查询</a></li>");
	document.write("	<li><img src='http://img.jxjyzy.com/images/dot2.gif' width='16' height='16' align='absmiddle' /><a href='../admin/Building.html'>成绩查询</a></li>");
	document.write("	<li></li>");
	document.write("</ul>");
	document.write("</div>");
} 
//
//培训head
//
function Head_px()
{
document.write("<div style='width:760px;align=center'>");
	document.write("<div id='head-nav' style='background-image:url(http://img.jxjyzy.com/images/index_r1_c50.jpg); height:22px; text-align:left; padding:5px 0 0 20px'><div style='float:right; margin-right:10px;'>| <a href='"+geturl()+"default.htm' style='color:#000000'>首 页</a> | <a href='"+geturl()+"ResourceHtml/New_72.html'  style='color:#000000'>资 源</a> | <a href='"+geturl()+"Coursehtml/index.html'  style='color:#000000'>课 堂</a> | <a href='"+geturl()+"TeacherTraining/Default.aspx'  style='color:#000000'>培 训</a> | <a href='http://bbs.jxjyzy.com/spaceindex.aspx'  style='color:#000000'>博 客</a> | <a href='http://bbs.jxjyzy.com'  style='color:#000000'>论 坛</a> | <a href='"+geturl()+"Help/Help.aspx'  style='color:#000000'>帮 助</a> |</div>");
    document.write("<img src='http://img.jxjyzy.com/images/index_r2_c7.jpg'/>今天是&nbsp;");
	  // Array ofmonth Names
	var monthNames = new Array( "1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
	var now = new Date();
	thisYear = now.getYear();
	if(thisYear < 1900) {thisYear += 1900 }; // corrections if Y2K display problem
	document.write(thisYear + "年"+ monthNames[now.getMonth()] + now.getDate() + "日");
    document.write("</div>");
    
      document.write("<div id='head' align='center'>");
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='760' height='120'>");
	document.write("<param name='movie' value='http://img.jxjyzy.com/images/ziyuanbanner.swf' />");
	document.write("<param name='quality' value='high' />");
	document.write("<embed src='http://img.jxjyzy.com/images/ziyuanbanner.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='760' height='120'></embed></object>");
	document.write("</div>");
	document.write("</div>");


  }
//===============================================================
//
//搜索
//
//===============================================================

//所需函数
var CurrHighLight = document.getElementById("res");

function trim(str){
	return str.replace(/(^\s*)|(\s*$)/g, "");
}
function Validate(){
	wval = trim(frm_head.Title.value);
//	if(wval == "")
//		return false;
//	else
		return true;
}


function goSearch(){
//	if(!Validate())
//		return false;
	//if(frm_head.Title.value != ""){
		frm_head.submit();
//	}
//	else
//		return false;
}

function SubRedirect(sc){

		if (trim(frm_head.Title.value)==""){
			if(sc == "res")
			{
				window.location.href=geturl()+"resouce.htm";
			}
			else if(sc == "inf")
			{
				window.location.href=geturl()+"article.htm";
			}
			else if(sc == "bbs")
			{
			    window.location.href=geturl()+"BBS/Default.aspx";
			}
			return false;
		}
		else{
			goSearch();
		}		
}


//首页
function SubSearch0(sc){
	changePage0(sc);
		if(sc == "res")
		{
			frm_head.action = geturl()+"Resource/ResourceList.aspx";
		}
		else if(sc == "inf")
		{
			frm_head.action = geturl()+"Article/ArticleLists.aspx";
		}
		else if(sc == "bbs")
		{
			frm_head.action = geturl()+"BBS/Default.aspx";
		}
		frm_head.sc.value = sc;
		SubRedirect(sc);
		//goSearch();
}


function changePage0(sc){
	if(CurrHighLight == null){
		CurrHighLight = document.getElementById("res");
	}
	CurrHighLight.className = "searchfod12";
	CurrHighLight = document.getElementById(sc);
	CurrHighLight.className = "searchfod11";
	frm_head.sc.value = sc;
	if(sc == "res")
	{
		frm_head.action = geturl()+"Resource/ResourceList.aspx";
	}
	else if(sc == "inf"){
		frm_head.action = geturl()+"Article/ArticleLists.aspx";
	}
	else if(sc == "bbs"){
		frm_head.action = geturl()+"BBS/Default.aspx";
	}
	else{
		frm_head.action = geturl()+"Resource/ResourceList.aspx";
	}
}


//论坛
function SubSearch1(sc){
	changePage1(sc);
		if(sc == "res")
		{
			frm_head.action = geturl()+"Resource/ResourceList.aspx";
		}
		else if(sc == "inf")
		{
			frm_head.action = geturl()+"Article/ArticleLists.aspx";
		}
		else if(sc == "bbs")
		{
			frm_head.action = geturl()+"BBS/Default.aspx";
		}
		frm_head.sc.value = sc;
		SubRedirect(sc);
		//goSearch();
}


function changePage1(sc){
	if(CurrHighLight == null){
		CurrHighLight = document.getElementById("bbs");
	}
	CurrHighLight.className = "searchfod12";
	CurrHighLight = document.getElementById(sc);
	CurrHighLight.className = "searchfod11";
	frm_head.sc.value = sc;
	if(sc == "res")
	{
		frm_head.action = geturl()+"Resource/ResourceList.aspx";
	}
	else if(sc == "inf"){
		frm_head.action = geturl()+"Article/ArticleLists.aspx";
	}
	else if(sc == "bbs"){
		frm_head.action = geturl()+"BBS/Default.aspx";
	}
	else{
		frm_head.action = geturl()+"Resource/ResourceList.aspx";
	}
}



//资源
function SubSearch2(sc){
	changePage2(sc);
		if(sc == "res")
		{
			frm_head.action = geturl()+"Resource/ResourceList.aspx";
		}
		else if(sc == "inf")
		{
			frm_head.action = geturl()+"Article/ArticleLists.aspx";
		}
		else if(sc == "bbs")
		{
			frm_head.action = geturl()+"BBS/Default.aspx";
		}
		frm_head.sc.value = sc;
		SubRedirect(sc);
		//goSearch();
}


function changePage2(sc){
	if(CurrHighLight == null){
		CurrHighLight = document.getElementById("res");
	}
	CurrHighLight.className = "searchfod22";
	CurrHighLight = document.getElementById(sc);
	CurrHighLight.className = "searchfod21";
	frm_head.sc.value = sc;
	if(sc == "res")
	{
		frm_head.action = geturl()+"Resource/ResourceList.aspx";
	}
	else if(sc == "inf"){
		frm_head.action = geturl()+"Article/ArticleLists.aspx";
	}
	else if(sc == "bbs"){
		frm_head.action = geturl()+"BBS/Default.aspx";
	}
	else{
		frm_head.action = geturl()+"Resource/ResourceList.aspx";
	}
}


//文章
function SubSearch3(sc){
	changePage3(sc);
		if(sc == "res")
		{
			frm_head.action =  geturl()+"Resource/ResourceList.aspx";
		}
		else if(sc == "inf")
		{
			frm_head.action =  geturl()+"Article/ArticleLists.aspx";
		}
		else if(sc == "bbs")
		{
			frm_head.action =  geturl()+"BBS/Default.aspx";
		}
		frm_head.sc.value = sc;
		//goSearch();
		SubRedirect(sc);
}



function changePage3(sc){
	if(CurrHighLight == null){
		CurrHighLight = document.getElementById("inf");
	}
	CurrHighLight.className = "searchfod32";
	CurrHighLight = document.getElementById(sc);
	CurrHighLight.className = "searchfod31";
	frm_head.sc.value = sc;
	if(sc == "res")
	{
		frm_head.action = geturl()+"Resource/ResourceList.aspx";
	}
	else if(sc == "inf"){
		frm_head.action = geturl()+"Article/ArticleLists.aspx";
	}
	else if(sc == "bbs"){
		frm_head.action = geturl()+"BBS/Default.aspx";
	}
	else{
		frm_head.action = geturl()+"Resource/ResourceList.aspx";
	}
}


//首页
function Search0()  
{
	//修改于2007-03-29 by caigen
	//document.write("<table width='760' height='33' border='0' cellpadding='0' cellspacing='0'>");
	//document.write("<tr><td width='6'><img name='index_r6_c1' src='"+geturl()+"images/index_r6_c1.jpg' width='6' height='66' border='0'	id='index_r6_c1' alt=''></td>");
	//document.write("<td width='742' background='"+geturl()+"images/index_r6_c3.jpg'>");
	//document.write("<FORM name='frm_head' onSubmit='return Validate();' action='"+geturl()+"Resource/ResourceList.aspx'	method='get' target='_self'>");
	//document.write("<table width='100%' height='66' border='0' cellpadding='0' cellspacing='0'><tr>");
	//document.write("<td width='15%' height='34'><div align='right'><span class='STYLE1'><input type='hidden' name='sc'>  请选择：</span></div></td>");
	//document.write("<td width='53%'><table width='285' height='34' border='0' align='center' cellpadding='0' cellspacing='0'>	<tr>");
	//document.write("<td width='95' class='searchfod11' id='res' onclick='SubSearch0(\"res\")'>资 	源</td>");
	//document.write("<td width='13'>&nbsp;</td>");
	//document.write("<td width='95' class='searchfod12' id='inf' onclick='SubSearch0(\"inf\")'>信 	息</td>");
	//document.write("<td width='10'>&nbsp;</td>");
	//document.write("<td width='138' class='searchfod12' id='bbs' onclick='SubSearch0(\"bbs\")'>论 	 坛</td>");
	//document.write("</tr></table></td>");
	//document.write("<td width='32%'>&nbsp;</td></tr><tr><td height='32' colspan='3'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='20%'>&nbsp;</td>");
	//document.write("<td width='44%'><input name='Title' style='BORDER-RIGHT: #1989d7 1px solid; BORDER-TOP: #1989d7 1px solid; FONT-SIZE: 14px; BORDER-LEFT: #1989d7 1px solid; COLOR: #000000; BORDER-BOTTOM: #1989d7 1px solid; HEIGHT: 16px'	type='text' id='Title' size='40'></td>");
	//document.write("<td width='20%'><input style='FLOAT: left; MARGIN: 0px; WIDTH: 60px; CURSOR: pointer; LINE-HEIGHT: 16px; PADDING-TOP: 1px; HEIGHT: 22px' type='submit' name='Submit' value='搜 索'></td>");
	//document.write("<td width='16%'><span class='STYLE2'><a href='"+geturl()+"Resource/ResourceList.aspx'>高级搜索</a></span>&nbsp;<span class='STYLE2'><a href='"+geturl()+"Help/Help.aspx?HelperID=6'>搜索帮助</a></span></td>");
	//document.write("</tr></table></td></tr></table></FORM></td>");
	//document.write("<td width='12'><img name='index_r6_c56' src='"+geturl()+"images/index_r6_c56.jpg' width='12' height='66' border='0'	id='index_r6_c56' alt=''></td></tr>");
	//document.write("<tr><td colspan='3'><img name='index_r8_c1' src='"+geturl()+"images/index_r8_c1.jpg' width='760' height='7' border='0'	id='index_r8_c1' alt=''></td></tr></table>");
	document.write("<table width='760' height='33' border='0' cellpadding='0' cellspacing='0'>")
	document.write("  <tr>")
	document.write("    <td width='6'><img name='index_r6_c1' src='http://img.jxjyzy.com/images/index_r6_c1.jpg' width='6' height='66' border='0'	id='index_r6_c1' alt=''></td>")
	document.write("    <td width='742' background='http://img.jxjyzy.com/images/index_r6_c3.jpg'><FORM name='frm_head' onSubmit='return Validate();' action='"+geturl()+"Resource/ResourceList.aspx'	method='get' target='_self'>")
	document.write("        <table width='100%' height='66' border='0' cellpadding='0' cellspacing='0'>")
	document.write("          <tr>")
	document.write("            <td width='15%' height='34'><div align='right'><span class='STYLE1'>")
	document.write("                <input type='hidden' name='sc'>")
	document.write("                请选择：</span></div></td>")
	document.write("            <td width='53%'><table width='285' height='34' border='0' align='center' cellpadding='0' cellspacing='0'>")
	document.write("                <tr>")
	document.write("                  <td width='95' class='searchfod11' id='res' onclick='SubSearch0(\"res\")'>资 	源</td>")
	document.write("                  <td width='13'>&nbsp;</td>")
	document.write("                  <td width='95' class='searchfod12' id='inf' onclick='SubSearch0(\"inf\")'>信 	息</td>")
	document.write("                  <td width='10'>&nbsp;</td>")
	document.write("                  <td width='138' class='searchfod12' id='bbs' onclick='SubSearch0(\"bbs\")'>论 	 坛</td>")
	document.write("                </tr>")
	document.write("              </table></td>")
	document.write("            <td width='32%'>&nbsp;</td>")
	document.write("          </tr>")
	document.write("          <tr>")
	document.write("            <td height='32' colspan='3'><table width='100%' border='0' cellspacing='0' cellpadding='0'>")
	document.write("                <tr>")
	document.write("                <td align='left'><select name='SearchType'>");
	document.write("                  <option value=''  selected >查询方式</option>");
	document.write("                  <option value='68'>资料名称</option>");
	document.write("                  <option value='69'>资料简介</option>");
	document.write("                  <option value='70'>关键字</option>");
	document.write("                  <option value='2292'>作者</option>");
	document.write("                  </select></td>");	
	document.write("                  <td width='70%' align='left'><input name='Title'	type='text' id='Title' style='BORDER-RIGHT: #1989d7 1px solid; BORDER-TOP: #1989d7 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #1989d7 1px solid; COLOR: #000000; BORDER-BOTTOM: #1989d7 1px solid; HEIGHT: 20px' size='20' />")
	document.write("                    <select name='ResSubjectType'>")
	document.write("                      <option value=''  selected='selected'>学科</option>")
	document.write("                      <option value='72'>语文</option>")
	document.write("                      <option value='73'>英语</option>")
	document.write("                      <option value='80'>政治</option>")
	document.write("                      <option value='81'>数学</option>")
	document.write("                      <option value='86'>历史</option>")
	document.write("                      <option value='87'>地理</option>")
	document.write("                      <option value='88'>物理</option>")
	document.write("                      <option value='89'>化学</option>")
	document.write("                      <option value='90'>生物</option>")
	document.write("                      <option value='93'>信息技术</option>")
	document.write("                      <option value='96'>音乐</option>")
	document.write("                      <option value='97'>美术</option>")
	document.write("                      <option value='98'>体育</option>")
	document.write("                      <option value='102'>其它课程</option>")
	document.write("                     <option value='163'>综合</option>")

	document.write("                      <option value='2060'>科学</option>")
	document.write("                      <option value='2061'>品德与生活</option>")
	document.write("                      <option value='2062'>品德与社会</option>")
	document.write("                    </select>")
	document.write("                    <select name='ResGrade'>")
	document.write("                      <option value='' selected='selected'>年级</option>")
	document.write("                      <option value='106'>小学一年级</option>")
	document.write("                      <option value='107'>小学二年级</option>")
	document.write("                      <option value='108'>小学三年级</option>")
	document.write("                      <option value='109'>小学四年级</option>")
	document.write("                      <option value='110'>小学五年级</option>")
	document.write("                      <option value='111'>小学六年级</option>")
	document.write("                      <option value='112'>初中一年级</option>")
	document.write("                      <option value='140'>初中二年级</option>")
	document.write("                      <option value='141'>初中三年级</option>")
	document.write("                      <option value='113'>高中一年级</option>")
	document.write("                      <option value='142'>高中二年级</option>")
	document.write("                      <option value='143'>高中三年级</option>")
	document.write("                      <option value='2229'>学前教育段</option>")
	document.write("                    </select>")
	document.write("                    <select name='ResClass'>")
	document.write("                      <option value='' selected='selected'>类型</option>")
	document.write("                      <option value='154'>素材</option>")
	document.write("                      <option value='152'>教案</option>")
	document.write("                      <option value='153'>课件</option>")
	document.write("                      <option value='155'>文章</option>")
	document.write("                    </select>")
	document.write("                    <select name='ResFormat' style='width:85px'>")
	document.write("                      <option value='' selected='selected'>格式</option>")
	document.write("                      <option value='126'>文本</option>")
	document.write("                      <option value='127'>图片/图像</option>")
	document.write("                      <option value='128'>视频</option>")
	document.write("                      <option value='129'>音频</option>")
	document.write("                      <option value='130'>动画</option>")
	document.write("                      <option value='131'>应用</option>")
	document.write("                      <option value='132'>综合多种媒体</option>")
	document.write("                    </select></td>")
	document.write("                  <td width='8%'><input style='FLOAT: left; MARGIN: 0px; WIDTH: 60px; CURSOR: pointer; LINE-HEIGHT: 16px; PADDING-TOP: 1px; HEIGHT: 22px' type='submit' name='Submit' value='搜 索' /></td>")
	document.write("                  <td width='15%' align='center'><span class='STYLE2'><a href='"+geturl()+"Resource/ResourceList.aspx'>高级搜索</a></span>&nbsp;<span class='STYLE2'><a href='"+geturl()+"Help/Help.aspx?HelperID=6'>搜索帮助</a></span></td>")
	document.write("                </tr>")
	document.write("              </table></td>")
	document.write("          </tr>")
	document.write("        </table>")
	document.write("      </FORM></td>")
	document.write("    <td width='12'><img name='index_r6_c56' src='http://img.jxjyzy.com/images/index_r6_c56.jpg' width='12' height='66' border='0'	id='index_r6_c56' alt=''></td>")
	document.write("  </tr>")
	document.write("  <tr>")
	document.write("    <td colspan='3'><img name='index_r8_c1' src='http://img.jxjyzy.com/images/index_r8_c1.jpg' width='760' height='7' border='0'	id='index_r8_c1' alt=''></td>")
	document.write("  </tr>")
	document.write("</table>")
}

//论坛
function Search1()  
{
	document.write("<table width='760' height='33' border='0' cellpadding='0' cellspacing='0'>");
	document.write("<tr><td width='6'><img name='index_r6_c1' src='http://img.jxjyzy.com/images/index_r6_c1.jpg' width='6' height='66' border='0'	id='index_r6_c1' alt=''></td>");
	document.write("<td width='742' background='http://img.jxjyzy.com/images/index_r6_c3.jpg'>");
	document.write("<FORM name='frm_head' onSubmit='return Validate();' action='"+geturl()+"BBS/Default.aspx'	method='get' target='_self'>");
	document.write("<table width='100%' height='66' border='0' cellpadding='0' cellspacing='0'><tr>");
	document.write("<td width='15%' height='34'><div align='right'><span class='STYLE1'><input type='hidden' name='sc'>  请选择：</span></div></td>");
	document.write("<td width='53%'><table width='285' height='34' border='0' align='center' cellpadding='0' cellspacing='0'>	<tr>");
	document.write("<td width='95' class='searchfod12' id='res' onclick='SubSearch1(\"res\")'>资 	源</td>");
	document.write("<td width='13'>&nbsp;</td>");
	document.write("<td width='95' class='searchfod12' id='inf' onclick='SubSearch1(\"inf\")'>信 	息</td>");
	document.write("<td width='10'>&nbsp;</td>");
	document.write("<td width='138' class='searchfod11' id='bbs' onclick='SubSearch1(\"bbs\")'>论 	 坛</td>");
	document.write("</tr></table></td>");
	document.write("<td width='32%'>&nbsp;</td></tr><tr><td height='32' colspan='3'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='20%'>&nbsp;</td>");
	document.write("<td width='44%'><input name='Title' style='BORDER-RIGHT: #1989d7 1px solid; BORDER-TOP: #1989d7 1px solid; FONT-SIZE: 14px; BORDER-LEFT: #1989d7 1px solid; COLOR: #000000; BORDER-BOTTOM: #1989d7 1px solid; HEIGHT: 16px'	type='text' id='Title' size='40'></td>");
	document.write("<td width='20%'><input style='FLOAT: left; MARGIN: 0px; WIDTH: 60px; CURSOR: pointer; LINE-HEIGHT: 16px; PADDING-TOP: 1px; HEIGHT: 22px' type='submit' name='Submit' value='搜 索'></td>");
	document.write("<td width='16%'><span class='STYLE2'><a href='"+geturl()+"Resource/ResourceList.aspx'>高级搜索</a></span>&nbsp;<span class='STYLE2'><a href='"+geturl()+"Help/Help.aspx?HelperID=6'>搜索帮助</a></span></td>");
	document.write("</tr></table></td></tr></table></FORM></td>");
	document.write("<td width='12'><img name='index_r6_c56' src='http://img.jxjyzy.com/images/index_r6_c56.jpg' width='12' height='66' border='0'	id='index_r6_c56' alt=''></td></tr>");
	document.write("<tr><td colspan='3'><img name='index_r8_c1' src='http://img.jxjyzy.com/images/index_r8_c1.jpg' width='760' height='7' border='0'	id='index_r8_c1' alt=''></td></tr></table>");
}



//资源页
function Search2()  
{
	document.write("<table width='760' height='33' border='0' cellpadding='0' cellspacing='0'>");
	document.write("<tr><td width='6'><img name='index_r6_c1' src='http://img.jxjyzy.com/images/res_r2_c1.jpg' width='6' height='66' border='0'	id='index_r6_c1' alt=''></td>");
	document.write("<td width='742' background='http://img.jxjyzy.com/images/res_r2_c2.jpg'>");
	document.write("<FORM name='frm_head' onSubmit='return Validate();' action='"+geturl()+"Resource/ResourceList.aspx'	method='get' target='_self'>");
	document.write("<table width='100%' height='66' border='0' cellpadding='0' cellspacing='0'><tr>");
	document.write("<td width='15%' height='34'><div align='right'><span class='STYLE1'><input type='hidden' name='sc'>  请选择：</span></div></td>");
	document.write("<td width='53%'><table width='285' height='34' border='0' align='center' cellpadding='0' cellspacing='0'>	<tr>");
	document.write("<td width='95' class='searchfod21' id='res' onclick='SubSearch2(\"res\")'>资 	源</td>");
	document.write("<td width='13'>&nbsp;</td>");
	document.write("<td width='95' class='searchfod22' id='inf' onclick='SubSearch2(\"inf\")'>信 	息</td>");
	document.write("<td width='10'>&nbsp;</td>");
	document.write("<td width='138' class='searchfod22' id='bbs' onclick='SubSearch2(\"bbs\")'>论 	 坛</td>");
	document.write("</tr></table></td>");
	//document.write("<td width='32%'>&nbsp;</td></tr><tr><td height='32' colspan='3'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='20%'>&nbsp;</td>");
	//document.write("<td width='44%'><input name='Title' style='BORDER-RIGHT: #1989d7 1px solid; BORDER-TOP: #1989d7 1px solid; FONT-SIZE: 14px; BORDER-LEFT: #1989d7 1px solid; COLOR: #000000; BORDER-BOTTOM: #1989d7 1px solid; HEIGHT: 16px'	type='text' id='Title' size='40'></td>");
	//document.write("<td width='20%'><input style='FLOAT: left; MARGIN: 0px; WIDTH: 60px; CURSOR: pointer; LINE-HEIGHT: 16px; PADDING-TOP: 1px; HEIGHT: 22px' type='submit' name='Submit' value='搜 索'></td>");
	//document.write("<td width='16%'><span class='STYLE2'><a href='"+geturl()+"Resource/ResourceList.aspx'>高级搜索</a></span>&nbsp;<span class='STYLE2'><a href='"+geturl()+"Help/Help.aspx?HelperID=6'>搜索帮助</a></span></td>");
	//document.write("</tr></table></td></tr></table></FORM></td>");
	document.write("            <td width='32%'>&nbsp;</td>")
	document.write("          </tr>")
	document.write("          <tr>")
	document.write("            <td height='32' colspan='3'><table width='100%' border='0' cellspacing='0' cellpadding='0'>")
	document.write("                <tr>")
	document.write("                <td align='left'><select name='SearchType'>");
	document.write("                  <option value=''  selected >查询方式</option>");
	document.write("                  <option value='68'>资料名称</option>");
	document.write("                  <option value='69'>资料简介</option>");
	document.write("                  <option value='70'>关键字</option>");
	document.write("                  <option value='2292'>作者</option>");
	document.write("                  </select></td>");	
	document.write("                  <td width='72%' align='left'><input name='Title'	type='text' id='Title' style='BORDER-RIGHT: #1989d7 1px solid; BORDER-TOP: #1989d7 1px solid; FONT-SIZE: 14px; BORDER-LEFT: #1989d7 1px solid; COLOR: #000000; BORDER-BOTTOM: #1989d7 1px solid' size='20' />")
	document.write("                    <select name='ResSubjectType'>")
	document.write("                      <option value=''  selected='selected'>学科</option>")
	document.write("                      <option value='72'>语文</option>")
	document.write("                      <option value='73'>英语</option>")
	document.write("                      <option value='80'>政治</option>")
	document.write("                      <option value='81'>数学</option>")
	document.write("                      <option value='86'>历史</option>")
	document.write("                      <option value='87'>地理</option>")
	document.write("                      <option value='88'>物理</option>")
	document.write("                      <option value='89'>化学</option>")
	document.write("                      <option value='90'>生物</option>")
	document.write("                      <option value='93'>信息技术</option>")
	document.write("                      <option value='96'>音乐</option>")
	document.write("                      <option value='97'>美术</option>")
	document.write("                      <option value='98'>体育</option>")
	document.write("                      <option value='102'>其它课程</option>")
	document.write("                     <option value='163'>综合</option>")

	document.write("                      <option value='2060'>科学</option>")
	document.write("                      <option value='2061'>品德与生活</option>")
	document.write("                      <option value='2062'>品德与社会</option>")
	document.write("                    </select>")
	document.write("                    <select name='ResGrade'>")
	document.write("                      <option value='' selected='selected'>年级</option>")
	document.write("                      <option value='106'>小学一年级</option>")
	document.write("                      <option value='107'>小学二年级</option>")
	document.write("                      <option value='108'>小学三年级</option>")
	document.write("                      <option value='109'>小学四年级</option>")
	document.write("                      <option value='110'>小学五年级</option>")
	document.write("                      <option value='111'>小学六年级</option>")
	document.write("                      <option value='112'>初中一年级</option>")
	document.write("                      <option value='140'>初中二年级</option>")
	document.write("                      <option value='141'>初中三年级</option>")
	document.write("                      <option value='113'>高中一年级</option>")
	document.write("                      <option value='142'>高中二年级</option>")
	document.write("                      <option value='143'>高中三年级</option>")
	document.write("                      <option value='2229'>学前教育段</option>")
	document.write("                    </select>")
	document.write("                    <select name='ResClass'>")
	document.write("                      <option value='' selected='selected'>类型</option>")
	document.write("                      <option value='154'>素材</option>")
	document.write("                      <option value='152'>教案</option>")
	document.write("                      <option value='153'>课件</option>")
	document.write("                      <option value='155'>文章</option>")
	document.write("                    </select>")
	document.write("                    <select name='ResFormat' style='width:85px'>")
	document.write("                      <option value='' selected='selected'>格式</option>")
	document.write("                      <option value='126'>文本</option>")
	document.write("                      <option value='127'>图片/图像</option>")
	document.write("                      <option value='128'>视频</option>")
	document.write("                      <option value='129'>音频</option>")
	document.write("                      <option value='130'>动画</option>")
	document.write("                      <option value='131'>应用</option>")
	document.write("                      <option value='132'>综合多种媒体</option>")
	document.write("                    </select></td>")
	document.write("                  <td width='6%'><input style='FLOAT: left; MARGIN: 0px; WIDTH: 60px; CURSOR: pointer; LINE-HEIGHT: 16px; PADDING-TOP: 1px; HEIGHT: 22px' type='submit' name='Submit' value='搜 索' /></td>")
	document.write("                  <td width='16%' align='center'><span class='STYLE2'><a href='"+geturl()+"Resource/ResourceList.aspx'>高级搜索</a></span>&nbsp;<span class='STYLE2'><a href='"+geturl()+"Help/Help.aspx?HelperID=6'>搜索帮助</a></span></td>")
	document.write("                </tr>")
	document.write("              </table></td>")
	document.write("          </tr>")
	document.write("        </table>")
	document.write("      </FORM></td>")
	
	document.write("<td width='12'><img name='index_r6_c56' src='http://img.jxjyzy.com/images/res_r2_c29.jpg' width='12' height='66' border='0'	id='index_r6_c56' alt=''></td></tr>");
	document.write("<tr><td colspan='3'><img name='index_r8_c1' src='http://img.jxjyzy.com/images/res_r4_c1.jpg' width='760' height='7' border='0'	id='index_r8_c1' alt=''></td></tr></table>");
}


//文章页
function Search3()  
{
	document.write("<table width='760' height='33' border='0' cellpadding='0' cellspacing='0'>");
	document.write("<tr><td width='6'><img name='index_r6_c1' src='http://img.jxjyzy.com/images/info_r3_c1.jpg' width='6' height='66' border='0'	id='index_r6_c1' alt=''></td>");
	document.write("<td width='742' background='http://img.jxjyzy.com/images/info_r3_c2.jpg'>");
	document.write("<FORM name='frm_head' onSubmit='return Validate();' action='"+geturl()+"Article/ArticleLists.aspx'	method='get' target='_self'>");
	document.write("<table width='100%' height='66' border='0' cellpadding='0' cellspacing='0'><tr>");
	document.write("<td width='15%' height='34'><div align='right'><span class='STYLE1'><input type='hidden' name='sc'>  请选择：</span></div></td>");
	document.write("<td width='53%'><table width='285' height='34' border='0' align='center' cellpadding='0' cellspacing='0'>	<tr>");
	document.write("<td width='95' class='searchfod32' id='res' onclick='SubSearch3(\"res\")'>资 	源</td>");
	document.write("<td width='13'>&nbsp;</td>");
	document.write("<td width='95' class='searchfod31' id='inf' onclick='SubSearch3(\"inf\")'>信 	息</td>");
	document.write("<td width='10'>&nbsp;</td>");
	document.write("<td width='138' class='searchfod32' id='bbs' onclick='SubSearch3(\"bbs\")'>论 	 坛</td>");
	document.write("</tr></table></td>");
	document.write("<td width='32%'>&nbsp;</td></tr><tr><td height='32' colspan='3'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='20%'>&nbsp;</td>");
	document.write("<td width='44%'><input name='Title' style='BORDER-RIGHT: #1989d7 1px solid; BORDER-TOP: #1989d7 1px solid; FONT-SIZE: 14px; BORDER-LEFT: #1989d7 1px solid; COLOR: #000000; BORDER-BOTTOM: #1989d7 1px solid; HEIGHT: 16px'	type='text' id='Title' size='40'></td>");
	document.write("<td width='20%'><input style='FLOAT: left; MARGIN: 0px; WIDTH: 60px; CURSOR: pointer; LINE-HEIGHT: 16px; PADDING-TOP: 1px; HEIGHT: 22px' type='submit' name='Submit' value='搜 索'></td>");
	document.write("<td width='16%'><span class='STYLE2'><a href='"+geturl()+"Resource/ResourceList.aspx'>高级搜索</a></span>&nbsp;<span class='STYLE2'><a href='"+geturl()+"Help/Help.aspx?HelperID=6'>搜索帮助</a></span></td>");
	document.write("</tr></table></td></tr></table></FORM></td>");
	document.write("<td width='12'><img name='index_r6_c56' src='http://img.jxjyzy.com/images/info_r3_c14.jpg' width='12' height='66' border='0'	id='index_r6_c56' alt=''></td></tr>");
	document.write("<tr><td colspan='3'><img name='index_r8_c1' src='http://img.jxjyzy.com/images/info_r5_c1.jpg' width='760' height='7' border='0'	id='index_r8_c1' alt=''></td></tr></table>");
}



//===============================================================
//
//底部文件
//
//===============================================================

//加为收藏
function addFav()
{
window.external.AddFavorite('http://www.jxjyzy.com',' ');
}


//设为首页
function addHome()
{
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage('http://www.jxjyzy.com');
}

//底部尾文件
function Bottom() 
{
	document.write("<div class='footer'>");
	document.write("<div id='alNav'>| <a href='http://www.jxjyzy.com/Help/Help.aspx'>网站简介</a> | <a href='http://www.jxjyzy.com/Help/Help.aspx'>会员服务</a> | <a href='http://www.jxjyzy.com/ArticleHtml/Announce64.html'>广告服务</a> | <a href='http://www.jxjyzy.com/Help/Help.aspx?HelperID=2'>联系我们</a> | <a onclick='javascript:addHome()' href='http://www.jxjyzy.com/#'>设为首页</a> | <a href='javascript:addFav()'>加入收藏</a> | <a href='http://www.taoyuanbao.com'>换客网络</a> | <a href='http://www.jxjyzy.com/Help/DownLoad.aspx'>常用软件下载</a></div>");
	document.write("<div id='copyright'>");
    document.write(" <div align='center'><a href='http://www.taoyuanbao.com/' target='_blank'><br />");
    document.write("  网站备案号: <a href='http://www.taoyuanbao.com/' target='_blank'>赣ICP备08000352号-1 </a><br />");
    document.write("江西省电化教育馆版权所有    服务电话:0791-8513731  <a target='blank' href='http://wpa.qq.com/msgrd?V=1&amp;Uin=8023718&amp;Site=im.qq.com&amp;Menu=yes'><img border='0' SRC='http://wpa.qq.com/pa?p=1:8023718:1' alt='点击这里向我咨询'></a><br />");
    //document.write("短信服务号码:13870812654,13170911105,13576059712<br />");
    //document.write("短信服务号码:15879099732,15879099758,13077987040<br />");
    document.write("建议使用IE6.0及以上版本浏览器，1024*768分辨率浏览<br />");
    document.write("    <br />");
    document.write("  </div> ");    
    document.write("</div>     ");   
    document.write("<div><script src='http://s73.cnzz.com/stat.php?id=419855&web_id=419855&show=pic' language='JavaScript' charset='gb2312'></script></div>");
    document.write("</div>");
    
}
