<form id="searchForm" name="searchForm" method="get" action="<!--{$site.publicURL}-->/search.php">
  <select name="stype" id="stype">
    <option value="title">标题</option>
    <option value="content">内容</option>
    <option value="author">作者</option>
  </select>
  <input name="keyword" type="text" id="keyword" />
  <!--{if $issort=="1"}-->
  <select name="sortid" id="sortid">
    <option value="all">所有栏目</option>
    <!--{$option}-->
  </select>
  <!--{/if}-->
  <input type="submit" value="搜索" />
</form>
<script type="text/javascript">
$(function(){
	$("#searchForm").submit( function() {
		if($("#keyword").val()==""){
			alert("请填写关键字");
			$("#keyword").focus();
			return false;
		}
	});
});
</script>