document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<form name="simpsearch" action="/search/searchresult.jsp" method="post" onsubmit="return submitSearch()" target="_blank">');
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="13" 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('	<td><input name="Submit2" type="button" class="search2" value="高级查询" onClick="window.open(\'/search/advsearch.jsp\',\'\',\'\')"></td>');
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;
}
