﻿   var bannerAD=new Array();
   var bannerADlink=new Array();
   var adNum=0;
 
bannerAD[0]="/images/pic1.jpg";

bannerAD[1]="/images/pic2.jpg";

bannerAD[2]="/images/pic3.jpg";

bannerAD[3]="/images/pic4.jpg";

bannerAD[4]="/images/pic5.jpg";

bannerAD[5]="/images/pic6.jpg";

bannerAD[6]="/images/pic7.jpg";

  
   var preloadedimages=new Array();
   for (i=1;i<bannerAD.length;i++){
      preloadedimages[i]=new Image();
      preloadedimages[i].src=bannerAD[i];
   }

function setTransition(){
   if (document.all){
      bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
      bannerADrotator.filters.revealTrans.apply();
   }
}

function playTransition(){
   if (document.all)
      bannerADrotator.filters.revealTrans.play()
}

function nextAd(){
   if(adNum<bannerAD.length-1)adNum++ ;
      else adNum=0;
   setTransition();
   document.images.bannerADrotator.src=bannerAD[adNum];
   playTransition();
   theTimer=setTimeout("nextAd()", 10000);
}

function jump2url(){
   jumpUrl=bannerADlink[adNum];
   jumpTarget='_self';
   if (jumpUrl != ''){
      if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
      else location.href=jumpUrl;
   }
}
function displayStatusMsg() { 
   status=bannerADlink[adNum];
   document.returnValue = true;
}
function nextAd(){
   if(adNum<bannerAD.length-1)adNum++ ;
      else adNum=0;
   setTransition();
   document.images.bannerADrotator.src=bannerAD[adNum];
   playTransition();
   theTimer=setTimeout("nextAd()", 5000);
}


function xxgkSubmit(){
	
	var keyword = document.getElementById("keyword").value;
	if ("" == Trim(keyword)) {
		alert("检索词不能为空！");
		return false;
	}
	
	var dxs1 = document.getElementById('startDate').value;
	var dxs2 = document.getElementById('endDate').value;

	if ((dxs2 != "") && (dxs1 == "")) {
		alert('请选择开始日期!');
		return false;
	}

	if ((dxs2 == "") && (dxs1 != "")) {
		dxs2 = new Date().getYear() + "-" + (parseInt(new Date().getMonth()) + 1) + "-" + new Date().getDate();
		if (!DateComplete(dxs1, dxs2)) {
			alert('开始日期不能大于今天!');
			return false;
		}
	}
	if ((dxs2 != "") && (dxs1 != "")) {
		if (!DateComplete(dxs1, dxs2)) {
			alert('结束日期小于开始日期了!');
			return false;
		}
	}
}

function dosubmit(){
	var searchword = document.getElementById("keyword").value;
	if ("" == Trim(searchword)) {
		alert("搜索词不能为空！");
		return false;
	}
}

function do2submit(){
	var searchword = document.searchform.keyword.value;
	if ("" == Trim(searchword)) {
		alert("搜索词不能为空！");
		return false;
	}
}

function dospjgsubmit(){

	var searchword = document.searchform.keyword.value;
	if ("" == Trim(searchword)) {
		alert("搜索词不能为空！");
		return false;
	}
	var dxs1 = document.getElementById('startDate').value;
	var dxs2 = document.getElementById('endDate').value;

	if ((dxs2 != "") && (dxs1 == "")) {
		alert('请选择开始日期!');
		return false;
	}

	if ((dxs2 == "") && (dxs1 != "")) {
		dxs2 = new Date().getYear() + "-" + (parseInt(new Date().getMonth()) + 1) + "-" + new Date().getDate();
		if (!DateComplete(dxs1, dxs2)) {
			alert('开始日期不能大于今天!');
			return false;
		}
	}
	if ((dxs2 != "") && (dxs1 != "")) {
		if (!DateComplete(dxs1, dxs2)) {
			alert('结束日期小于开始日期了!');
			return false;
		}
	}
}

function zmhdsubmit(){
	var randomserial = document.getElementById("randomserial").value;
	if ("" == Trim(randomserial)) {
		alert("查询号不能为空！");
		return false;
	}
}

function Trim(_value){
	return _value.replace(/(^\s*)|(\s*$)/g, "");
}

function DateComplete(_today, _pubdate){
	var todayTemp = new Date(_today.replace(/-/g, "/"));
	var pubdateTemp = new Date(_pubdate.replace(/-/g, "/"));
	if (todayTemp == "NaN") return;
	else if (pubdateTemp == "NaN") return;
	else {
		s1 = new Date(todayTemp);
		s2 = new Date(pubdateTemp);
		return s1.getTime() - s2.getTime() > 0 ? false : true;
	}
}
<!-- Begin:电子邮局 -->
function maillogin(evt){
	if (evt.keyCode==13){
		loginCheck();
	}
}


function selectLanguage() {
	sSix		= '';
	sUser		= '';
	sDomain		= '';
	sLanguage	= '';
	sTheme		= '';
	
	frm = document.form1;
	if(frm.six){
		if (frm.six.options)
			sSix = frm.six.options[frm.six.selectedIndex].value;
		else
			sSix = frm.six.value;
	}
	if(frm.f_user)
		sUser = frm.f_user.value;
	if(frm.f_domain)
		sDomain = frm.f_domain.value;
	if(frm.tem)
		sTheme = frm.tem.options[frm.tem.selectedIndex].value;
	if(frm.lng)
		sLanguage = frm.lng.options[frm.lng.selectedIndex].value;
 
	sLocation = 'index.php?lid='+sLanguage+'&tid='+sTheme+'&f_user='+escape(sUser)+'&f_domain='+escape(sDomain)+'&six='+sSix;
	location.replace(sLocation);
}
	
function loginCheck() {
	sSix		= '';
	sUser		= '';
	sDomain		= '';
	sPassword		= '';
	
	frm = document.form1;
	if(frm.six){
		if (frm.six.options)
			sSix = frm.six.options[frm.six.selectedIndex].value;
		else
			sSix = frm.six.value;
	}
	if(frm.f_domain)
		sDomain = frm.f_domain.value;
	if(frm.f_user)
		sUser = frm.f_user.value;
	if(frm.f_pass)
		sPassword = frm.f_pass.value;
		
	if ((sSix == '' && sDomain == '') || sUser == ''
		|| sPassword == ''){
 
		alert("用户名和密码栏不能为空！");
 
		return;
	}
 
 
 
 
	frm.submit();
	
	frm.reset();
}
 
function getPwd() {
	location.href = 'getpassword.php';
}
 
function keypress(keypressed) {
	var key;
	if (document.all) 
		key = window.event.keyCode
	else 
		key = keypressed.which;
		
	if (key == 13) 
		loginCheck();
} 
<!-- End:电子邮局 -->


document.write("<table width=\"1000\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tline\">");
document.write("");
document.write("  <tr>");
document.write("    <td width=\"75\" align=\"center\"><img src=\"\/images\/jsj_bt1.gif\" width=\"65\" height=\"20\"   onclick=\"javaScript:window.open('http://125.77.255.149')\"\/><\/td><form style=\'margin:0px;\' name=\"form1\" action=\"http:\/\/mail.xmjs.gov.cn\/login.php\" method=post target=\"_blank\">");
document.write("    <td width=\"648\" class=\"pad_left_10\">用户名：");
document.write("      <input type=\"text\" size=15 name=\"f_user\" maxlength=64 onKeyUp=\"maillogin(event)\" style=\"width:110px;\">密码：");
document.write("	  <input type=\"password\" size=15 name=\"f_pass\" value=\"\" maxlength=64 autocomplete=\"OFF\" onKeyUp=\"maillogin(event)\" style=\"width:110px;\">");
document.write("	  <select  name=\"field\" onchange=\"document.form1.action='http://mail.' + this.value + '/login.php';\">");
document.write("	    <option value=\"xmjs.gov.cn\" selected>xmjs.gov.cn <\/option>");
document.write("	    <option value=\"xmwater.cn\">xmwater.cn <\/option>");
document.write("	    <option value=\"xmcg.cn\">xmcg.cn <\/option>");
document.write("      <\/select>");
document.write("    <img src=\"\/images\/jsj_bt2.gif\" width=\"36\" height=\"20\" align=\"absmiddle\" style=\"cursor:pointer;\" onclick=\"javascript:loginCheck();\"\/><\/td>");
document.write("	<td  style=\"display:none;\"><input type=\"hidden\" name=\"six\" value=\"1\">");
document.write("<select name=\"lng\" onChange=\"javascript:selectLanguage();\"><option value=\"0\">English<\/option><option value=\"1\">German<\/option><option value=\"2\">Swedish<\/option><option value=\"3\">Norwegian<\/option><option value=\"4\">Danish<\/option><option value=\"5\" selected>Simplified Chinese<\/option><option value=\"6\">Traditional Chinese<\/option><option value=\"7\">Japanese<\/option><option value=\"8\">Greek<\/option><option value=\"9\">Italian<\/option><option value=\"10\">Dutch<\/option><option value=\"11\">Portuguese<\/option><option value=\"12\">French<\/option><option value=\"13\">Korea<\/option><option value=\"14\">Russian<\/option><\/select>");
document.write("<select name=\"tem\" onChange=\"javascript:selectLanguage()\"><option value=\"0\" selected>Default<\/option><option value=\"1\">Orange<\/option><option value=\"2\">Blue<\/option><option value=\"3\">XP (multicolor)<\/option><\/select>");
document.write("<input name=\"login\" type=\"button\" value=\"登录 &gt;&gt;\" class=\"button\" onClick=\"javascript:loginCheck();\"><\/td><\/form>");
document.write("    <td width=\"277\" align=\"right\" style=\"padding-right:20px;\">&middot;<a href=\"#\" onClick=\"this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http:\/\/www.xmjs.gov.cn\')\" title=\"设为首页\">设为首页<\/a> &middot;<a href=\"javascript:window.external.addFavorite(\'http:\/\/www.xmjs.gov.cn\',\'厦门市建设与管理局网站\');\" title=\"收藏本站\" >加入收藏<\/a> &middot;<a href=\"#\" target=\"_self\">简体版<\/a> <!--&middot;<a href=\"\/\" target=\"_self\">繁体版<\/a>--><\/td>");
document.write("  <\/tr>");
document.write("<\/table>");
document.write("<table width=\"1000\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
document.write("  ");
document.write("  <tr>");
document.write("    <td height=\"127\" style=\"background:url(\/images\/pic1.jpg) no-repeat top #0071bd;\"  class='pos'>");
document.write("	 <div id=\"ly_mid2\">");
document.write("      <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("  <tr>");
document.write("    <td><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=\"127\">");
document.write("      <param name=\"movie\" value=\"\/images\/top.swf\" \/>");
document.write("      <param name=\"quality\" value=\"high\" \/>");
document.write("	  <param name=\"wmode\" value=\"Transparent\" \/>");
document.write("      <embed src=\"\/images\/top.swf\" quality=\"high\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" width=\"1000\" height=\"127\"><\/embed>");
document.write("    <\/object><\/td>");
document.write("  <\/tr>");
document.write("<\/table>");
document.write("    <\/div>");
document.write("	<bannerad><img src=\"\" name=\"bannerADrotator\" width=\"1000\" height=\"123\" border=0 style=\"filter:revealTrans(duration=2,transition=20)\"\/>");
nextAd();
document.write("    <\/bannerad><\/td>");
document.write("  <\/tr>");
document.write("<\/table>");
document.write("	 <table width=\"1000\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"\/images\/jsj_mebg.gif\">");
document.write("  <tr>");
document.write("    <td width=\"7\"><img src=\"\/images\/jsj_me1.gif\" width=\"7\" height=\"32\"\/><\/td>");
document.write("    <td width=\"500\" align=\"center\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("      <tr>");
document.write("        <td><a href=\"\/\" target=\"_self\"><img src=\"\/images\/jsj_me2.gif\" width=\"47\" height=\"32\"  border=\"0\"\/><\/a><\/td>");
document.write("        <td><img src=\"\/images\/jsj_meli.gif\" width=\"2\" height=\"32\"  border=\"0\"\/><\/td>");
document.write("        <td><a href=\"\/jgsz\" target=\"_self\"><img src=\"\/images\/jsj_me3.gif\" width=\"76\" height=\"32\"  border=\"0\"\/><\/a><\/td>");
document.write("        <td><img src=\"\/images\/jsj_meli.gif\" width=\"2\" height=\"32\"  border=\"0\"\/><\/td>");
document.write("        <td><a href=\"\/zfxxgk\" target=\"_self\"><img src=\"\/images\/jsj_me4.gif\" width=\"76\" height=\"32\"  border=\"0\"\/><\/a><\/td>");
document.write("        <td><img src=\"\/images\/jsj_meli.gif\" width=\"2\" height=\"32\"  border=\"0\"\/><\/td>");
document.write("        <td><a href=\"\/wsbs\" target=\"_self\"><img src=\"\/images\/jsj_me5.gif\" width=\"76\" height=\"32\"  border=\"0\"\/><\/a><\/td>");
document.write("        <td><img src=\"\/images\/jsj_meli.gif\" width=\"2\" height=\"32\"  border=\"0\"\/><\/td>");
document.write("        <td><a href=\"\/zfxxgk\/index_53.htm?value=.\/zfxxgkml\/zcfg\" target=\"_self\"><img src=\"\/images\/jsj_me6.gif\" width=\"76\" height=\"32\"  border=\"0\"\/><\/a><\/td>");
document.write("        <td><img src=\"\/images\/jsj_meli.gif\" width=\"2\" height=\"32\"  border=\"0\"\/><\/td>");
document.write("        <td><a href=\"\/zmhd\" target=\"_self\"><img src=\"\/images\/jsj_me7.gif\" width=\"76\" height=\"32\"  border=\"0\"\/><\/a><\/td>");
document.write("        <\/tr>");
document.write("    <\/table><\/td>");
document.write('<form name="search" action="http://www.xmjs.gov.cn:8082/search/searchsite.html" method="post" onSubmit="return dosubmit();" target="_blank">');
document.write("    <td align=\"center\" class=\"tb twhite\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name=\"keyword\" type=\"text\" style=\"width:150px;\"\/> ");    
document.write('<select name="chnltype">');
document.write('        <option value="site" selected>站内检索</option>');
document.write('        <option value="xxgk">政府信息公开</option>');
document.write('        <option value="bszn">办事指南</option>');
document.write('        <option value="zmhd">政民互动</option>');
document.write('</select>');
document.write('      <input type="image" src="\/images/jsj_bt3.gif" width="59" height="20" align="absmiddle">  <a href="/index_83.htm" target="_blank"><img src=\"\/images\/jsj_bt4.gif\" width=\"59\" height=\"20\" align=\"absmiddle\" border=\"0\"\/></a>   <\/td></form>');
document.write("  <\/tr>");
document.write("<\/table>");