﻿function AJAXRequest() {
	var xmlPool = new Array;
	var xmlVersion = ["MSXML2.XMLHTTP","Microsoft.XMLHTTP"];
	var AJAX = this;
	if(arguments[0]) this.url=arguments[0]; else this.url="";
	if(arguments[1]) this.oncomplete=arguments[1]; else this.oncomplete=function(obj){return};
	if(arguments[2]) this.content=arguments[2]; else this.content="";
	if(arguments[3]) this.method=arguments[3]; else this.method="POST";
	if(arguments[4]) this.async=arguments[4]; else this.async=true;
	if(!getObj()) return false;
	function getObj() {
		var i;
		for(i=0;i<xmlPool.length;i++) if(xmlPool[i].readystate==4) return xmlPool[i];
		var tmpObj;
		try { tmpObj=new XMLHttpRequest; }
		catch(e) {
			for(i=0;i<xmlVersion.length;i++) {
				try { tmpObj=new ActiveXObject(xmlVersion[i]); }
				catch(e2) { continue; }
				break;
			}
		}
		if(!tmpObj) return false;
		else {
			xmlPool[xmlPool.length]=tmpObj;
			return xmlPool[xmlPool.length-1];
		}
	}
	this.send=function() {
		var purl,pcbf,pc,pm,pa,xmlObj;
		xmlObj=getObj();
		if(!xmlObj) return false;
		if(arguments[0]) purl=arguments[0]; else purl=this.url;
		if(arguments[1]) pc=arguments[1]; else pc=this.content;
		if(arguments[2]) pcbf=arguments[2]; else pcbf=this.oncomplete;
		if(arguments[3]) pm=arguments[3]; else pm=this.method;
		if(arguments[4]) pa=arguments[4]; else pa=this.async;
		if(!pm||!purl||!pa) return false;
		xmlObj.open(pm,purl,pa);
		if(pm=="POST") xmlObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
		xmlObj.onreadystatechange=function() {
			if(xmlObj.readyState==4)
				if(xmlObj.status==200) pcbf(xmlObj); else pcbf(null);
		}
		if(pm=="POST") xmlObj.send(pc); else xmlObj.send("");
	}
	this.get=function() {
		var purl,pcbf;
		if(arguments[0]) purl=arguments[0]; else purl=this.url;
		if(arguments[1]) pcbf=arguments[1]; else pcbf=this.oncomplete;
		if(!purl&&!pcbf) return false;
		this.send(purl,"",pcbf,"GET",true);
	}
	this.update=function() {
		var purl,puo,pinv,pcnt,rinv,ucb;
		if(arguments[0]) purl=arguments[0]; else purl=this.url;
		if(arguments[1]) puo=arguments[1];
		if(arguments[2]&&!isNaN(parseInt(arguments[2]))) pinv=parseInt(arguments[2]);
		if(arguments[3]&&!isNaN(parseInt(arguments[3]))) pcnt=parseInt(arguments[3]);
		if(puo)
			ucb=function(obj) {
				if(puo.nodeName=="DIV") puo.innerHTML=obj.responseText;
				else if(puo.nodeName=="INPUT"||puo.nodeName=="TEXTAREA") puo.value=obj.responseText;
				else return;
			}
		else
			ucb=function(obj) { return; }
		if(pinv&&pinv>0)
			if(pcnt&&pcnt>0) {
				var cf=function(cc) {
					AJAX.send(purl,"",ucb,"GET",true);
					if(cc<1) return; else cc--;
					setTimeout(cf,pinv,cc);
				}
				cf(--pcnt);
			}
			else
				return(setInterval(this.send,pinv,purl,"",ucb,"GET",true));
		else
			this.send(purl,"",ucb,"GET",true);
	}
	this.post=function() {
		var purl,pcbf,pc;
		if(arguments[0]) purl=arguments[0]; else purl=this.url;
		if(arguments[1]) pcbf=arguments[1]; else pcbf=this.oncomplete;
		if(arguments[2]) pc=arguments[2]; else pc="";
		if(!purl&&!pcbf) return false;
		this.send(purl,pc,pcbf,"POST",true);
	}
	this.postf=function() {
		var fo,pcbf,purl,pc,pm;
		if(arguments[0]) fo=arguments[0]; else return false;
		if(arguments[1]) pcbf=arguments[1]; else pcbf=this.oncomplete;
		if(arguments[2]) purl=arguments[2];
		else if(fo.action) purl=fo.action;
		else purl=this.url;
		if(arguments[3]) pm=arguments[3];
		else if(fo.method) pm=fo.method.toLowerCase();
		else pm="post";
		if(!pcbf&&!purl) return false;
		pc=this.formToStr(fo);
		if(!pc) return false;
		if(pm) {
			if(pm=="post") this.send(purl,pc,pcbf,"POST",true);
			else
				if(purl.indexOf("?")>0) this.send(purl+"&"+pc,"",pcbf,"GET",true);
				else this.send(purl+"?"+pc,"",pcbf,"GET",true);
		}
		else this.send(purl,pc,pcbf,"POST",true);
	}
	// formToStr
	// from SurfChen <surfchen@gmail.com>
	// @url     http://www.surfchen.org/
	// @license http://www.gnu.org/licenses/gpl.html GPL
	// modified by yesoul
	// @url     http://www.772.cn/
	this.formToStr=function(fc) {
		var i,query_string="",and="",property_value="";
		for(i=0;i<fc.length;i++) {
			e=fc[i];
			if (e.name!='' && e.disabled==false) {
				if (e.type=='select-one') element_value=e.options[e.selectedIndex].value;
				else if (e.type=='checkbox' || e.type=='radio') {
					if (e.checked==false) continue;
					element_value=e.value;
				}
				else element_value=e.value;
				element_value=encodeURIComponent(element_value);
				property_value=this.getElementProperty(e);
				property_value=(property_value!=""?property_value+"{#_#}":"");
				query_string+=and+e.name+'='+property_value+element_value;
				and="&";
			}
		}
		//alert(query_string);
		return query_string;
	}
	this.getElementProperty=function(o) {
		var i,property_string="",and="";
		var customAttributes = "DataType,Message,Require,To,Min,Max,ToElement,ParseType,MinElement,MaxElement,Format,Elements,Accept".split(",");
		//var customAttributes = "DataType,Message,Require,To,Min,Max,ToElement,ParseType,MinElement,MaxElement,Format,Elements,Accept,DependOn,Script,Pattern,Operator,AlertType,Trim,Tips,name,id".split(",");
		var len1 = customAttributes.length;
		if(!o.getAttribute("DataType"))return property_string;
		for(var j=0;j<len1;j++){
			var name = customAttributes[j];
			if(!o.getAttribute(name) || name=="Script")continue;
			else property_string+=and+name+'='+encodeURIComponent(o.getAttribute(name));//对提交的字符编码，不能用escape编码，会把+号去掉
			and="{#_#}";
		}
		return property_string;
	}
}




// * Power By ww.772.cn * //
// * Comm UserInterface *//
// * Code Begin here *//
document.writeln("<table width=\"998\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("  <tr>");
document.writeln("    <td width=\"998\"><img  src=\"/images/top.jpg\" width=\"998\" height=\"150\" /></td>");
document.writeln("  </tr>");
document.writeln("  <tr>");
document.writeln("    <td><table id=\"__\"  width=\"998\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("      <tbody>");
document.writeln("        <tr>");
document.writeln("          <td width=\"21\" height=\"30\" background=\"/images/daohan2.jpg\"></td>");
document.writeln("          <td align=\"center\" width=\"86\" height=\"30\" background=\"/images/daohan1.jpg\"><a href=\"/index.html\" class=\"bottom\">首　页</a></td>");
document.writeln("          <td onMouseOver=\"showMenu(this,30);\" width=\"86\" align=\"center\" background=\"/images/daohan1.jpg\"><a href=\"/Pub/YW/index.html\" class=\"bottom\">要　闻</a></td>");
document.writeln("          <td onMouseOver=\"showMenu(this,30);\" align=\"center\" width=\"86\" height=\"30\" background=\"/images/daohan1.jpg\"><a href=\"/Pub/LDJH/index.html\" class=\"bottom\">领导讲话</a></td>");
document.writeln("          <td onMouseOver=\"showMenu(this,30);\" align=\"center\" width=\"86\" height=\"30\" background=\"/images/daohan1.jpg\"><a href=\"/Pub/JDGZ/index.html\" class=\"bottom\">监督工作</a></td>");
document.writeln("          <td onMouseOver=\"showMenu(this,30);\" align=\"center\" width=\"86\" height=\"30\" background=\"/images/daohan1.jpg\"><a href=\"/Pub/DBGZ/index.html\" class=\"bottom\">代表工作</a></td>");
document.writeln("          <td onMouseOver=\"showMenu(this,30);\" align=\"center\" width=\"86\" height=\"30\" background=\"/images/daohan1.jpg\"><a href=\"/Pub/RSRM/index.html\" class=\"bottom\">人事任免</a></td>");
document.writeln("          <td onMouseOver=\"showMenu(this,30);\" align=\"center\" width=\"86\" height=\"30\" background=\"/images/daohan1.jpg\"><a href=\"/Pub/XXRD/index.html\" class=\"bottom\">县乡人大</a></td>");
document.writeln("          <td onMouseOver=\"showMenu(this,30);\" align=\"center\" width=\"86\" height=\"30\" background=\"/images/daohan1.jpg\"><a href=\"/Pub/GZYJ/index.html\" class=\"bottom\">工作研究</a></td>");
document.writeln("          <td onMouseOver=\"showMenu(this,30);\" align=\"center\" width=\"86\" height=\"30\" background=\"/images/daohan1.jpg\"><a href=\"/Pub/TSZS/index.html\" class=\"bottom\">他山之石</a></td>");
document.writeln("          <td onMouseOver=\"showMenu(this,30);\" align=\"center\" width=\"86\" height=\"30\" background=\"/images/daohan1.jpg\"><a href=\"/Pub/ZT/index.html\" class=\"bottom\">专题报道</a></td>");
document.writeln("          <td onMouseOver=\"showMenu(this,30);\" width=\"86\"  height=\"30\" align=\"center\" background=\"/images/daohan1.jpg\"><a href=\"/Pub/XMYC/index.html\" class=\"bottom\">春台随笔</a></td>");
document.writeln("          <td width=\"29\" height=\"30\" background=\"/images/daohan2.jpg\"></td>");
document.writeln("        </tr>");
document.writeln("        <tr style=\"display: none\">");
document.writeln("          <td height=\"30\"></td>");
document.writeln("          <td align=\"center\" height=\"30\">&nbsp;</td>");
document.writeln("          <td width=\"86\" align=\"center\" valign=\"top\" class=\"bottom\"><table cellspacing=\"0\" cellpadding=\"0\" width=\"86\" align=\"center\" border=\"0\">");
document.writeln("              <tbody>");
document.writeln("                <tr>");
document.writeln("                  <td width=\"86\" height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\" class=\"bottom\"><a href=\"/Pub/YW/SZYW/index.html\">时政要闻</a></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\"><a href=\"/Pub/YW/RDYW/index.html\">人大新闻</a></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\"><a href=\"/Pub/YW/TPSP/index.html\">图片视频</a></td>");
document.writeln("                </tr>");
document.writeln("              </tbody>");
document.writeln("          </table></td>");
document.writeln("          <td align=\"center\" height=\"30\">&nbsp;</td>");
document.writeln("          <td width=\"86\" height=\"30\" align=\"center\"><table cellspacing=\"0\" cellpadding=\"0\" width=\"86\" align=\"center\" border=\"0\">");
document.writeln("              <tbody>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\" class=\"bottom\"><a href=\"/Pub/JDGZ/ZHXX/index.html\">综合信息</a></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\"><a href=\"/Pub/JDGZ/SHJD/index.html\">社会监督</a></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\"><a href=\"/Pub/JDGZ/ZFJC/index.html\">执法检查</a></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\"><a href=\"/Pub/JDGZ/SCDC/index.html\">视察调查</a></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\"><a href=\"/Pub/JDGZ/BASC/index.html\">备案审查</a></td>");
document.writeln("                </tr>");
document.writeln("              </tbody>");
document.writeln("          </table></td>");
document.writeln("          <td width=\"86\" height=\"30\" align=\"center\"><table cellspacing=\"0\" cellpadding=\"0\" width=\"86\" align=\"center\" border=\"0\">");
document.writeln("              <tbody>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\" class=\"bottom\"><a href=\"/Pub/DBGZ/YAJY/index.html\">议案建议</a></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\"><a href=\"/Pub/DBGZ/DBHD/index.html\">代表活动</a></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\"><a href=\"/Pub/DBGZ/DBFC/index.html\">代表风采</a></td>");
document.writeln("                </tr>");
document.writeln("              </tbody>");
document.writeln("          </table></td>");
document.writeln("          <td align=\"center\" height=\"30\">&nbsp;</td>");
document.writeln("          <td align=\"center\" height=\"30\">&nbsp;</td>");
document.writeln("          <td align=\"center\" height=\"30\">&nbsp;</td>");
document.writeln("          <td align=\"center\" height=\"30\">&nbsp;</td>");
document.writeln("          <td width=\"86\" height=\"30\" align=\"center\"><table cellspacing=\"0\" cellpadding=\"0\" width=\"86\" align=\"center\" border=\"0\">");
document.writeln("              <tbody>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\"><a href=\"/Pub/ZT/CXZY/index.html\">创先争优</a></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\"><a href=\"/Pub/ZT/KHQX/index.html\">抗洪抢险</a></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\" class=\"bottom\"><a href=\"/Pub/ZT/RDHHY/index.html\">人代会会议</a></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\"><a href=\"/Pub/ZT/KXFZGHD/index.html\">科学发展观活动</a></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\"><a href=\"/Pub/ZT/HBYCX/index.html\">环保宜春行</a></td>");
document.writeln("                </tr>");
document.writeln("");
document.writeln("                <tr>");
document.writeln("                  <td height=\"26\" align=\"center\" valign=\"middle\" bgcolor=\"#FFCD00\"><a href=\"/Pub/ZT/NCPZLAQYCX/index.html\">农产品质量安全宜春行</a></td>");
document.writeln("                </tr>");
document.writeln("              </tbody>");
document.writeln("          </table></td>");
document.writeln("          <td  height=\"30\" align=\"center\">&nbsp;</td>");
document.writeln("          <td height=\"30\"></td>");
document.writeln("        </tr>");
document.writeln("        </table></td>");
document.writeln("  </tr>");
document.writeln("  <tr>");
document.writeln("    <td><table id=\"__2\" width=\"998\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("      <tr>");
document.writeln("        <td width=\"1015\" height=\"32\" background=\"/images/chaxun1.jpg\"><table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\" style=\"border:#CCCCCC 1px solid; margin-bottom:1px; margin-top:1px;filter:progid:DXImageTransform.Microsoft.Gradient(enabled=true,startColorStr=#FFFFFF,endColorStr=#EDEDED);\">");
document.writeln("          <tr>");
document.writeln("            <form action=\"/Search.asp\" method=\"get\" name=\"Search\" target=\"_blank\" id=\"Search\">");
document.writeln("              <td width=\"83\"><strong>&nbsp;信息检索:</strong></td>");
document.writeln("              <td width=\"75\"><input class=\"text\" id=\"KeyWord\" maxlength=\"20\" size=\"10\" name=\"KeyWord\" /></td>");
document.writeln("              <td width=\"88\"><select name=\"SearchDot\">");
document.writeln("                  <option value=\"XCMSTitle\" selected=\"selected\">信息标题</option>");
document.writeln("                  <option value=\"XCMSContent\">信息正文</option>");
document.writeln("                  <option value=\"XCMSTypeName\">信息分类</option>");
document.writeln("              </select></td>");
document.writeln("              <td width=\"49\"><input type=\"submit\" class=\"btn_blue55\" name=\"button\" id=\"button\" value=\"搜 索\" /></td>");
document.writeln("              <td width=\"165\" id=\"RQ\">&nbsp;</td>");
document.writeln("              <td width=\"536\" id=\"TQ\">&nbsp;</td>");
document.writeln("            </form>");
document.writeln("          </tr>");
document.writeln("        </table></td>");
document.writeln("      </tr>");
document.writeln("    </table></td>");
document.writeln("  </tr>");
document.writeln("  <tr>");
document.writeln("    <td height=\"4\"></td>");
document.writeln("  </tr>");
document.writeln("</table>");
document.writeln("");
// * Code End here *//
function showTQ(){
var dteDate=new Date();		
$("RQ").innerHTML=dteDate.getYear() + "年" + (dteDate.getMonth()+1) + "月" + dteDate.getDate() + "日" +" 星期"+"日一二三四五六".charAt(dteDate.getDay());
var ajax=new AJAXRequest();
ajax.get("/RDS.asp?ACT=TQ&dtc=" + dteDate.getTime(),
	function(obj) {
		var Content=obj.responseText;
		try{
			$("TQ").innerHTML=Content;
			$("RQ").title=$("TQ").title=$("RQ").innerText + "，天气情况：" + $("TQ").innerText;
		}
		catch(e){$("TQ").innerText="天气预报获取错误，错误描述为：" + e.description + "！";}
	}
);
}
window.setTimeout("showTQ()",1000);
