<script language="JavaScript" type="text/javascript">
<!--
function chkFormular() {
	if(document.post.filename.value == "") {
		alert("You have to enter a filename!");
		document.post.filename.focus();
   		return false;
	}
}
-->
</script>
<form action="index.php?site=files&action=save" method="post" enctype="multipart/form-data" onSubmit="return chkFormular()">
<input type="hidden" name="poster" value="$userID">
  <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="$border">
    <tr> 
      <td class="title" align="center" bgcolor="$bghead">new file</td>
    </tr>
    <tr> 
      <td bgcolor="$pagebg"></td>
    </tr>
    <tr>
      <td bgcolor="$bg1"><table align="center" cellpadding="2" cellspacing="0" class="formtable">
          <tr> 
            <td colspan="2"><b>File-Information:</b></td>
          </tr>
          <tr>
            <td>Category:</td>
            <td><select name="filecat">$filecats</select></td>
          </tr>
          <tr> 
            <td width="30%">Filename:</td>
            <td width="70%"><input type="text" name="filename" size="30" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td valign="top">Info/Description:</td>
            <td><textarea name="info" cols="44" rows="7" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></textarea></td>
          </tr>
          <tr>
            <td>Accesslevel:</td>
            <td><select name="accesslevel">$access</select></td>
          </tr>
          <tr>
            <td valign="top">File-Upload:</td>
            <td><input type="file" name="upfile" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"> 
          <tr> 
            <td valign="top">Extern Link:</td>
            <td><input type="text" name="fileurl" size="40" value="http://" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td valign="top">File-Size (only for extern files):</td>
          <td><input name="filesize" type="text" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'" maxsize="4" size="4"> <select name="unit"><option value="b">Byte</option><option value="kb">KByte</option><option value="mb" selected>MByte</option><option value="gb">GByte</option></select>
          <tr> 
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="2"><b>File-Mirrors:</b></td>
          </tr>
          <tr> 
            <td valign="top">Mirror #2:</td>
						<td><input type="text" name="mirror2" size="40" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td valign="top">Mirror #3:</td>
						<td><input type="text" name="mirror3" size="40" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td><input type="submit" name="submit" value="upload"></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
