	//定义时间函数
	var now = new Date();
	var nowYear = now.getYear();
	var nowMonth = (now.getMonth() + 1);
	var nowDay = now.getDate();
	
	var chnlid;
	chnlid = document.getElementsByTagName("META").item("ChannelID").content;
		
	//var nowDay = new Date(); //why@2003-08-31

	document.write("<form name='frmSearch' action='http://www.fmprc.gov.cn/wjb/eng_search.jsp' method=post>");
	document.write("<TABLE borderColor='#ffffff' cellSpacing='0' cellPadding='0' border='1' bFontSize='FALSE' styleType='0'><TR height=10>");
    document.write("      <TD>&nbsp;&nbsp;</TD></TR>");   
    document.write("<TR height=15>");
    document.write("<TD>&nbsp;&nbsp;Keyword:&nbsp;<input type='text' name='sw' size='15'>&nbsp;&nbsp;");

	document.write("<select name=yf>");
    var i;
    for( i=1998;i<=nowYear;i++ ){
		document.write("<option value=\"" + i + "\" " + ((i == nowYear)?"selected":"") + ">" + i + "</option>");
    }
	document.write("</select>");
    document.write("Year");

    document.write("<select name=mf>");
    for( i=1;i<=12;i++ ){
		document.write("<option value=\"" + i + "\" " + ((i == nowMonth)?"selected":"") + ">" + i + "</option>");
    }
	document.write("</select>");
    document.write("Month");

	document.write("<select name=df>");
    for( i=1;i<=31;i++ ){
		document.write("<option value=\"" + i + "\" " + i + ">" + i + "</option>");
    }    
	document.write("</select>Day&nbsp;To&nbsp;");

	document.write("<select name=yt>");
    for( i=1998;i<=nowYear;i++ ){
		document.write("<option value=\"" + i + "\" " + ((i == nowYear)?"selected":"") + ">" + i + "</option>");
    }    
	document.write("</select>");
	document.write("Year");

    document.write("<select name=mt>");
    for( i=1;i<=12;i++ ){
		document.write("<option value=\"" + i + "\" " + ((i == nowMonth)?"selected":"") + ">" + i + "</option>");
    }
    document.write("</select>Month");

	document.write("<select name=dt>");
    for( i=1;i<=31;i++ ){
		document.write("<option value=\"" + i + "\" " + ((i == nowDay)?"selected":"") + ">" + i + "</option>");
    }
	document.write("</select>");

    document.write("Day&nbsp;&nbsp;");
	document.write("<input type='hidden' name='siteid' value='6'>"
					+"<input type='hidden' name='sitename' value='eng'>"
					+"<input type='hidden' name='channelid'>"
					+"<input type='hidden' name='channelname' value=''>"
					+"<input type='hidden' name='select' value='1'>"
					+"<input type='submit' name='Submit' value='Search'>");
	document.write("</TD></TR>");
	document.write("</TABLE>");
	document.write("</form>");
	frmSearch.channelid.value=chnlid;

