<script language="JavaScript" type="text/javascript">
<!--
function chkFormular() {
	if(document.post.title1.value == "" && document.post.title2.value == "" && document.post.text1.value == "" && document.post.text2.value == "") {
		alert("You have to enter at least 1 keyword!");
		document.post.title1.focus();
   		return false;
	}
	
}
-->
</script>

<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="$border">
  <tr bgcolor="$bghead"> 
    <td class="title">Search<i></i> </td>
  </tr>
  <tr><td bgcolor="$pagebg"></td></tr>
  <tr bgcolor="$bg1"> 
  
    <td><form name="post" method="post" action="index.php?site=search&action=search" onSubmit="return chkFormular()">
        <table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" class="formtable">
          <tr> 
            <td colspan="2">Search in: 
              <input name="table" type="radio" class="input" value="1" checked>
              news 
              <input type="radio" class="input" name="table" value="2">
              articles 
              <input type="radio" class="input" name="table" value="3">
              forum</td>
          </tr>
          <tr> 
            <td colspan="2"><hr size="1" noshade></td>
          </tr>
          <tr> 
            <td>Title contains:</td>
            <td><input type="text" name="title1" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"> 
			<select name="title_op"><option value="1">and</option><option value="2">or</option>
              </select> <input type="text" name="title2" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td>Text contains:</td>
            <td><input name="text1" type="text" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"> <select name="text_op"><option value="1">and</option><option value="2">or</option>
              </select> <input type="text" name="text2" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td colspan="2"><hr size="1" noshade></td>
          </tr>
          <tr> 
            <td>Date-Options:</td>
            <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="formtable">
                <tr> 
                  <td width="50">after:</td>
                  <td> <input name="ad" type="text" size="2" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'">
                    . 
                    <input name="am" type="text" size="2" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'">
                    . 
                    <input name="ay" type="text" size="4" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'">
                    dd.mm.yyyy</td>
                </tr>
              </table>
              
            </td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="formtable">
                <tr> 
                  <td width="50">before:</td>
                  <td> <input name="bd" type="text" size="2" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'">
                    . 
                    <input name="bm" type="text" size="2" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'">
                    . 
                    <input name="by" type="text" size="4" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'">
                    dd.mm.yyyy</td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td colspan="2"><hr size="1" noshade></td>
          </tr>
          <tr> 
            <td>Sort-Options:</td>
            <td><select name="order">
                <option value="1">descending</option>
                <option value="2">ascending</option>
              </select></td>
          </tr>
          <tr> 
            <td>Results:</td>
            <td><select name="results">
                <option value="10">10</option>
                <option value="25">25</option>
                <option value="50">50</option>
              </select></td>
          </tr>
          <tr> 
            <td colspan="2"><hr size="1" noshade></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td><input type="submit" value="Search"></td>
          </tr>
        </table>
      </form> </td>
  </tr>
</table>
<br>
