// JavaScript Document
var scripts = [
   "http://www.xiangan.gov.cn:8980/infogate/sitehits.jsp?siteid=3"
];
if(typeof(SITEURL) == "undefined"){
	site.prototype.SITEURL = 'http://www.xiangan.gov.cn/';
}
var site = {
	site_header:function(){
		document.write("<table width='1000' align='center' border='0' cellpadding='0' cellspacing='0' height='28' class='top top_bk'>");
		document.write("  <!--top-->	");
		document.write("  <tr>");
		document.write("    <td valign='top' width='17' height='20'>&nbsp;</td>");
	document.write("    <td valign='top' width='238'><a href='http://www.fujian.gov.cn' target='_blank'>福建省人民政府网站</a> | <a href='http://www.xm.gov.cn' target='_blank'>厦门市人民政府网站</a></td>");
		document.write("    <td width='510' valign='top'>&nbsp;</td>");
		document.write("    <td valign='top' width='95'><a href='http://mail.xiangan.gov.cn' target='_blank'>"+this.creatIMG(SITEURL + "/images/10xa_ind_pic18.gif") +"</a>&nbsp;&nbsp;<a href='http://mail.xiangan.gov.cn' target='_blank'><strong>政府邮箱</strong></a></td>");
		document.write("    <td valign='top' width='140'>·<a href='http://www.xiangan.gov.cn'>简体版</a> ·<a href='http://m.xiangan.gov.cn' target='_blank'>手机门户 </a><!-- ·<a href='#'>繁体版</a> ·<a href='http://2009.xiangan.gov.cn'>旧版回顾</a>--></td>");
		document.write("  </tr>");
		document.write("</table>");
		if(IS_MAIN_SITE==true){
			document.write("<table width='1000' align='center' border='0' cellpadding='0' cellspacing='0' height='223'>");
			document.write("  <!--banner-->");
			document.write("  <tr>");
			document.write("  <td valign='bottom'>");
			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='1000' height='223'>");
			document.write("<param name='movie' value='http://www.xiangan.gov.cn/images/10xa_top.swf' />");
			document.write("<param name='quality' value='high' />");
			document.write("<param name='wmode' value='transparent'/>");
			document.write("<embed "+this.creatIMGscr("http://www.xiangan.gov.cn/images/10xa_top.swf") +" quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='1000' height='223'></embed>");
			document.write("</object>");
			document.write("        </td>");
			document.write("       </tr>");
			document.write("       </table>");	
		}else{
			document.write("<table width='1000' align='center' border='0' cellpadding='0' cellspacing='0' height='223' class='" + banners+ "'>");
			document.write("  <!--banner-->");
			document.write("  <tr align='left'>");
			document.write("  <td valign='bottom'>");
			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='283' height='29'>");
			document.write("<param name='movie' value='http://www.xiangan.gov.cn/images/10xa_tban.swf' />");
			document.write("<param name='quality' value='high' />");
			document.write("<param name='wmode' value='transparent'/>");
			document.write("<embed "+this.creatIMGscr("http://www.xiangan.gov.cn/images/10xa_tban.swf") +" quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='283' height='29'></embed>");
			document.write("</object>");
			document.write("        </td>");
			document.write("       </tr>");
			document.write("       </table>");	
		}
		document.write(" <table width='1000' align='center' border='0' cellpadding='0' cellspacing='0' class='menu'>");
		document.write("<!--menu-->");
		document.write("<tr>");
		document.write("  <td>");
		document.write("	<table align='right' border='0' cellpadding='0' cellspacing='0'>");
		document.write("		<tr>");
		document.write("       <td width='100' onmouseover='divover(8,1);'><a href='http://www.xiangan.gov.cn/'>"+ this.creatMenuIMG(SITEURL + "/images/10xa_" + nChannel + "_menu_1_2.gif",1,98,31) +"</a></td>");
		document.write("       <td width='100' onmouseover='divover(8,2);'><a href='http://www.xiangan.gov.cn/mlxa'>"+ this.creatMenuIMG(SITEURL + "/images/10xa_ind_menu_2_1.gif",2,98,31) +"</a></td>");
		document.write("       <td width='100' onmouseover='divover(8,3);'><a href='http://www.xiangan.gov.cn/jjxa'>"+ this.creatMenuIMG(SITEURL + "/images/10xa_ind_menu_3_1.gif",3,98,31) +"</a></td>");
		document.write("       <td width='100' onmouseover='divover(8,4);'><a href='http://www.xiangan.gov.cn/zwxa' target='_blank'>"+ this.creatMenuIMG(SITEURL + "/images/10xa_ind_menu_4_1.gif",4,98,31) +"</a></td>");
		document.write("       <td width='100' onmouseover='divover(8,5);'><a href='http://www.xiangan.gov.cn/zwgk'>"+ this.creatMenuIMG(SITEURL + "/images/10xa_ind_menu_5_1.gif",5,98,31) +"</a></td>");
		document.write("       <td width='100' onmouseover='divover(8,6);'><a href='http://www.xiangan.gov.cn/wsbs'>"+ this.creatMenuIMG(SITEURL + "/images/10xa_ind_menu_6_1.gif",6,98,31) +"</a></td>");
		document.write("       <td width='100' onmouseover='divover(8,7);'><a href='http://www.xiangan.gov.cn:8082/xahd'>"+ this.creatMenuIMG(SITEURL + "/images/10xa_ind_menu_7_1.gif",7,98,31) +"</a></td>");
		document.write("       <td width='100' onmouseover='divover(8,8);'><a href='http://ms.xiangan.gov.cn/'>"+ this.creatMenuIMG(SITEURL + "/images/10xa_ind_menu_8_1.gif",8,98,31) +"</a></td>");
		document.write("      <td width='138'>"+ this.creatIMG(SITEURL + "/images/10xa_ind_menu_left_img.gif") +"</td>");
		document.write("		</tr>");
		document.write("	</table>");
		document.write("  </td>");
		document.write("</tr>");
		document.write("<tr>");
		document.write("  <td>");
		document.write("    <table width='1000' align='center' border='0' cellspacing='0' cellpadding='0' class='" + nMenuClass + "' id='table_2' style='display:none;'>");
		document.write("     <tr>");
		document.write("<td height='28' align='center' valign='middle'><A href='http://www.xiangan.gov.cn/mlxa/xasy/' target='_blank'>千年翔安</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/mlxa/xagk/' target='_blank'>翔安概况</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/mlxa/szyj/' target='_blank'>四镇一街</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/mlxa/mfms/' target='_blank'>民风民俗</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/mlxa/jjfz/' target='_blank'>经济发展</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/photo' target='_blank'>翔安图库</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/mlxa/xayx/' target='_blank'>翔安印象</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/sbjw' target='_blank'>三宝九品百味</A></td>");
		document.write("     </tr>");
		document.write("     </table>");
		document.write("    <table width='1000' align='center' border='0' cellspacing='0' cellpadding='0' class='" + nMenuClass + "' id='table_3' style='display:none;'>");
		document.write("     <tr>");
		document.write("<td height='28' align='center' valign='middle'><A href='http://www.xiangan.gov.cn/jjxa/xayw/' target='_blank'>翔安要闻</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/jjxa/tpxw/' target='_blank'>图片新闻</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/jjxa/spxw/' target='_blank'>新闻直播间</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/jjxa/jx/' target='_blank'>简讯速递</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/jjxa/ldhd/' target='_blank'>领导活动</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/jjxa/hxdt/' target='_blank'>海西动态</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/jjxa/ldtt/' target='_blank'>鹭岛听涛</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/jjxa/gsgg/' target='_blank'>公示公告</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/jjxa/dsj/' target='_blank'>区府大事记</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/jjxa/xayk/' target='_blank'>翔安月刊</A></td>");
		document.write("     </tr>");
		document.write("     </table>");
		document.write("    <table width='1000' align='center' border='0' cellspacing='0' cellpadding='0' class='" + nMenuClass + "' id='table_4' style='display:none;'>");
		document.write("     <tr>");
		document.write("<td height='28' align='center' valign='middle'><A href='http://www.xiangan.gov.cn/zwxa/10zwxa-part2.htm' target='_blank'>翔安区位</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwxa/10zwxa-part3.htm' target='_blank'>千年翔安</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwxa/10zwxa-part4.htm' target='_blank'>经济发展成就</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwxa/10zwxa-part5.htm' target='_blank'>五大基地一座新城</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwxa/10zwxa-part6.htm' target='_blank'>翔安旅游</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwxa/10zwxa-part7.htm' target='_blank'>基础设施</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwxa/10zwxa-part8.htm' target='_blank'>支柱产业</A>&nbsp;</td>");

		document.write("     </tr>");
		document.write("     </table>");
		document.write("    <table width='1000' align='center' border='0' cellspacing='0' cellpadding='0' class='" + nMenuClass + "' id='table_5' style='display:none;'>");
		document.write("     <tr>");
		document.write("<td height='28' align='center' valign='middle'><A href='http://www.xiangan.gov.cn/zwgk/ldfg/' target='_blank'>领导分工</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwgk/tpyw/' target='_blank'>图片要闻</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwgk/gzdt/' target='_blank'>工作动态</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwgk/fgwj/' target='_blank'>法规文件</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwgk/qfdsj/' target='_blank'>区府大事记</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwgk/ghjh/' target='_blank'>规划计划</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwgk/tjxx/' target='_blank'>统计信息</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwgk/czyjs/' target='_blank'>财政预决算</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwgk/xzsf/' target='_blank'>行政收费</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwgk/zfcg/' target='_blank'>政府采购</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwgk/zyxm/' target='_blank'>重要项目</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwgk/zdly/' target='_blank'>重点领域</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/zwgk/yjgl_1/' target='_blank'>应急管理</A></td>");
		document.write("     </tr>");
		document.write("     </table>");
		document.write("    <table width='1000' align='center' border='0' cellspacing='0' cellpadding='0' class='" + nMenuClass + "' id='table_6' style='display:none;'>");
		document.write("     <tr>");
		document.write("<td height='28' align='center' valign='middle'><A href='http://www.xiangan.gov.cn/wsbs/bmbs/' target='_blank'>部门办事</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/wsbs/sm/' target='_blank'>市民</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/wsbs/qy/' target='_blank'>企业</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/wsbs/cjdh/' target='_blank'>场景导航</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/wsbs/xzzx/' target='_blank'>下载中心</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/wsbs/zxsb/' target='_blank'>在线申报</A></td>");		
                document.write("     </tr>");
		document.write("     </table>");
		document.write("    <table width='1000' align='center' border='0' cellspacing='0' cellpadding='0' class='" + nMenuClass + "' id='table_7' style='display:none;'>");
		document.write("     <tr>");
		document.write("<td height='28' align='center' valign='middle'><A href='http://www.xiangan.gov.cn:8082/xahd/common/pre.as?_url=/outer/main.jsp&type=qz' target='_blank'>区长信箱</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn:8082/xahd/outer/main.jsp?type=morequs' target='_blank'>我有话说</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn:8082/xahd/common/pre.as?_url=/outer/main.jsp&type=addbm' target='_blank'>部门信箱</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn:8082/xahd/common/pre.as?_url=/outer/main.jsp&type=addzz' target='_blank'>镇街信箱</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn:8082/xahd/common/pre.as?_url=/outer/main.jsp&type=rdwt' target='_blank'>热点问题</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn:8082/xahd/common/pre.as?_url=/outer/main.jsp&type=wsdc' target='_blank'>网上调查</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn:8082/xahd/common/pre.as?_url=/outer/main.jsp&type=pyzf' target='_blank'>评议政府</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn/hdzx/zxft/' target='_blank'>在线访谈</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn:8082/xahd/common/pre.as?_url=/outer/main.jsp&type=myzj' target='_blank'>民意征集</A>&nbsp;|&nbsp;<A href='http://www.xiangan.gov.cn:8082/xahd/common/pre.as?_url=/outer/main.jsp&type=xnts' target='_blank'>效能投诉</A></td>");
		document.write("     </tr>");
		document.write("     </table>");
		document.write("    <table width='1000' align='center' border='0' cellspacing='0' cellpadding='0' class='" + nMenuClass + "' id='table_8' style='display:none;'>");
		document.write("     <tr>");
		document.write("<td height='28' align='center' valign='middle'> <A href='http://ms.xiangan.gov.cn/jyly/' target='_blank'>教育领域</A>&nbsp;|&nbsp;<A href='http://ms.xiangan.gov.cn/shbz/' target='_blank'>社保领域</A>&nbsp;|&nbsp;<A href='http://ms.xiangan.gov.cn/rlzy/' target='_blank'>就业领域</A>&nbsp;|&nbsp;<A href='http://ms.xiangan.gov.cn/ylly/' target='_blank'>医疗领域</A>&nbsp;|&nbsp;<A href='http://ms.xiangan.gov.cn/zffw/' target='_blank'>住房领域</A>&nbsp;|&nbsp;<A href='http://ms.xiangan.gov.cn/jtfw/' target='_blank'>交通领域</A>&nbsp;|&nbsp;<A href='http://ms.xiangan.gov.cn/zjbl/' target='_blank'>证件办理</A>&nbsp;|&nbsp;<A href='http://ms.xiangan.gov.cn/qykb/' target='_blank'>企业开办</A>&nbsp;|&nbsp;<A href='http://ms.xiangan.gov.cn/zgrd/' target='_blank'>资质认定</A>&nbsp;|&nbsp;<A href='http://ms.xiangan.gov.cn/hysy/' target='_blank'>婚育收养</A>&nbsp;|&nbsp;<A href='http://ms.xiangan.gov.cn/jyns/' target='_blank'>经营纳税</A>&nbsp;|&nbsp;<A href='http://ms.xiangan.gov.cn/gysy/' target='_blank'>公共事业</A>&nbsp;|&nbsp;<A href='http://ms.xiangan.gov.cn/gcjsly/' target='_blank'>工程建设</A></td>");
		document.write(" </tr>");
		document.write(" </table>");
		document.write("     <table width='1000' height='28' align='center' border='0' cellpadding='0' cellspacing='0' class='status' id='table_1'>");
		document.write("       <!--状态搜索栏-->");
                document.write('<form name="sitesearch" action="http://www.xiangan.gov.cn:8080/was40/search" method="post" target="_blank">');
                document.write('<input type="hidden" name="channelid" value="24563" /><input type="hidden" name="searchword" />');
		document.write("       <tr>");
		document.write("       <td width='30' valign='top'>&nbsp;</td>");
		document.write("        <td width='140' valign='middle'><script>write_date();</script></td>");
		document.write("  <td width='379' valign='middle'><iframe src='http://m.weather.com.cn/m/pn3/weather.htm?id=101230201T' height='20' width='225' frameBorder='0' marginWidth='0' marginHeight='0' scrolling='no' vspace='0' hspace='0' allowTransparency='allowtransparency'></iframe></td>");
	document.write("       <td width='80' valign='middle' align='right'>站内搜索：</td>");
		document.write("     <td width='233' valign='middle' class='status_pad2'> ");
		document.write("     <input name='keyword' type='text' size='16' />");
		document.write("       <select name='field'>");
		document.write("         <option value='' selected='selected'>--全文检索--</option>");
                document.write("         <option value='doctitle'>----标题----</option>");
                document.write("         <option value='doccontent'>----正文----</option>");
		document.write("       </select></td>");
		document.write("<td width='55' align='center' valign='middle' style='padding-top:2px;'><a href='javascript:void(0);' onclick='submitsearch();' title='多个关键词用半角空格分开'>"+ this.creatIMG(SITEURL + "/images/10xa_ind_pic1.gif") +"</a></td>");
		document.write("      <td width='80' align='left' valign='middle' style='padding-top:2px;'><a href='http://www.xiangan.gov.cn:8080/was40/advsearch_xagov.jsp' target='_blank'>"+ this.creatIMG(SITEURL + "/images/10xa_ind_pic2.gif") +"</a></td>");
		document.write("</tr></form></table>");
		document.write(" </td>");
		document.write("</tr>");
		document.write("</table>");},
        site_search:function(){
		
	},

		site_footer:function(){
		document.write("<table width='1000' align='center' height='33' border='0' cellspacing='0' cellpadding='0' class='" + footer1+ "'>");
		document.write("        <!--footer-->");
		document.write("<tr>");
		document.write("<td valign='middle' align='center'><a href=javascript:window.external.addFavorite('http://www.xiangan.gov.cn','厦门市翔安区政府') title='收藏本站'>加入收藏</a>&nbsp;&nbsp;|&nbsp;&nbsp;");
		document.write("<a href='#' onClick=this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.xm.gov.cn') title='设为首页'>设为主页</a>&nbsp;&nbsp;|&nbsp;&nbsp;");
		document.write("<a href='http://www.xiangan.gov.cn/wzdt/' target='_blank'>网站地图</a>&nbsp;&nbsp;|&nbsp;&nbsp;");
                document.write("<a href='http://www.xiangan.gov.cn/yjdy/' target='_blank'>邮件订阅</a>&nbsp;&nbsp;|&nbsp;&nbsp;");
                document.write("<a href='http://www.xiangan.gov.cn/rss/' target='_blank'>RSS订阅</a>&nbsp;&nbsp;|&nbsp;&nbsp;");
                document.write("<a href='http://www.xiangan.gov.cn/wzdh/' target='_blank'>网站助手</a>&nbsp;&nbsp;|&nbsp;&nbsp;");
		document.write("<a href='http://www.xiangan.gov.cn/lxwm' target='_blank'>联系我们</a></td>");
		document.write(" </tr>");
		document.write(" </table>");
		document.write(" <table width='1000' height='130' align='center' border='0' cellspacing='0' cellpadding='0' class='" + footer2+ "'>");
		document.write("   <tr>");
		document.write("   <td width='325'></td>");
		document.write("   <td width='675' valign='bottom' height='36' align='left'>主办：翔安区人民政府办公室 | 制作：翔安区政务信息中心</td>");
		document.write("          </tr>");
		document.write("<tr>");
		document.write(" <td width='325'></td>");
		document.write("  <td width='675' valign='bottom' height='10'></td>");
		document.write("              </tr>");
		document.write("<tr>");
		document.write("  <td></td>");
		document.write(" <td valign='top' height='34' align='left'>版权所有&copy;2010 翔安区人民政府 闽ICP备07055414号 您是第<span id='siteCount'>888888</span>位访问者 ");
                document.write("</td>");
                document.write(" </tr>");
	        document.write("      </table>");
                seriesLoadScripts(scripts,function(){if(writeSiteCount)writeSiteCount("siteCount");});
                
	},
	creatIMG:function(url, width, height){
		var temp = "<" + "img src='" + url + "'";
		if(width && width != 0){
			temp = temp + " width='" + width + "'";
		}if(height && height != 0){
			temp = temp + " height='" + height + "'";
		}
		temp = temp + " border='0' />";
		return temp;
	},
	creatIMGscr:function(url){
		var temp = "src='" + url + "'";
		return temp;
	},
	creatMenuIMG:function(url,id,width, height){
		var temp = "<" + "img src='" + url + "'";
		if(width && width != 0){
			temp = temp + " width='" + width + "'";
		}if(height && height != 0){
			temp = temp + " height='" + height + "'";
		}if(id && typeof(id) != "undefined" && id != ""){
                   temp = temp + " id='menu_" + id + "'";
                }
		temp = temp + " border='0' />";
		return temp;
	}    
};

function divover(Items, Item){
	for(i = 1; i <= Items; i++){
		if(i == Item){
			document.getElementById("menu_"+i).src = "http://www.xiangan.gov.cn/images/10xa_" + nChannel + "_menu_" + i + "_2.gif";
			document.getElementById("table_"+i).style.display = "";
		}else{
			document.getElementById("menu_"+i).src = "http://www.xiangan.gov.cn/images/10xa_ind_menu_" + i + "_1.gif";
			document.getElementById("table_"+i).style.display = "none";
		}
	}
document.getElementById("table_1").style.display = "block";
}
function showmain(){
	for(i = 2; i <= 8; i++){
	   document.getElementById("table_"+i).style.display = "none";
           document.getElementById("menu_"+i).src = "http://www.xiangan.gov.cn/images/10xa_ind_menu_" + i + "_1.gif";		 
	}
	document.getElementById("table_1").style.display = "block";		
}
function write_date(){
var week;
var data = new Date();
var year = data.getFullYear();
var month = data.getMonth()+1;
var day = data.getDate();
if(data.getDay()==0){week="星期日"};
if(data.getDay()==1){week="星期一"};
if(data.getDay()==2){week="星期二"};
if(data.getDay()==3){week="星期三"};
if(data.getDay()==4){week="星期四"};
if(data.getDay()==5){week="星期五"};
if(data.getDay()==6){week="星期六"};
document.write(year+"年"+month+"月"+day+"日"+"  "+week);
}
function LTrim(s)
{
    for(var i=0;i<s.length;i++)
        if(s.charAt(i)!=' ')
         return s.substring(i,s.length);
     return "";
}

function RTrim(s)
{
    for(var i=s.length-1;i>=0;i--)
        if(s.charAt(i)!=' ')
            return s.substring(0,i+1);
        return "";
}

function Trim(s)
{
    return RTrim(LTrim(s));
}

function notice(s)
{
	alert(s);
	document.sitesearch.keyword.focus();
	return false;
}
function submitsearch()
{
    var _keyword = Trim(document.sitesearch.keyword.value);
	if(_keyword.length>0)
	{
		if(_keyword.indexOf("+")>=0)
		{
			return notice("搜索词中不能含有关键字'+'");
		}
		else if(_keyword.indexOf("*")>=0)
		{
			return notice("搜索词中不能含有关键字'*'");
		}
		else if(_keyword.indexOf("-")>=0)
		{
			return notice("搜索词中不能含有关键字'-'");
		}
	}
	else
	{
			return notice("搜索词不能为空");
	}
	var _kwArray = _keyword.split(" ");
	var _searchword = "";
	for(var i=0;i<_kwArray.length;i++)
	{
		if(i==0)
		{
			_searchword = Trim(_kwArray[0]);
		}
		else
		{
			_searchword = _searchword + "*" + Trim(_kwArray[i]);
		}
	}
	if (document.sitesearch.field.value!=""){
	  document.sitesearch.searchword.value=document.sitesearch.field.value+"="+_searchword;
        }else{
          document.sitesearch.searchword.value=_searchword;  
        } 
         document.sitesearch.submit();  
}
