document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<form name="simpsearch" action="searchresult.asp" method="get" onsubmit="return submitSearch()">');
document.write('  <tr align="center"> ');
document.write('	<td width="30" align="right"><img src="images/search.gif" width="15" height="15"></td>');
document.write('	<td><input name="searchword1" type="text" class="INPUT" value="请输入关键字" size="18" onFocus="if (this.value == \'请输入关键字\') this.value=\'\'"></td>');
document.write('	<td><input type="hidden" name="prechannelid" value=""><input name="Submit" type="submit" class="search1" value="信息查询"></td>');
document.write('  <input type="hidden" name="searchword" value="">');
document.write('  <input type="hidden" name="channelid" value="75009">');
document.write('  </tr>');
document.write('</form>');
document.write('</table>');
function submitSearch() {
	var searchword = document.simpsearch.searchword1.value;
	if ((searchword == '') || (searchword == '请输入关键字'))
	{
		alert('对不起,请您输入检索关键字');
		document.simpsearch.searchword1.focus();
		return false;
	}
	var curchannel = document.getElementById("curchannelid");
	var curchannelid = 0;
	if (curchannel != null)
	{
		curchannelid = curchannel.value;
		document.simpsearch.prechannelid.value = curchannelid;
	}
	if (curchannelid > 0)
	{
		searchword += " AND DOCCHANNEL=" + curchannelid;
	}
	//alert(searchword);
	document.simpsearch.searchword.value = searchword;
}