<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->

<html>
<head><title></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>
<style type="text/css">
<!--
.STYLE3 {color: #990033}
-->
</style>
 <script Language="JavaScript">
function right(mainStr,lngLen) {
// alert(mainStr.length)
 if (mainStr.length-lngLen>=0 && mainStr.length>=0 && mainStr.length-lngLen<=mainStr.length) {
 return mainStr.substring(mainStr.length-lngLen,mainStr.length)}
 else{return null}
 }

 function form_check(){
     if(right(document.form3.file1.value,3)=="exe"){window.alert("不能直接诶发送EXE文件，请压缩后在发送");document.form3.file1.focus();return (false);}
   if(document.form3.file1.value.length<1){window.alert("请选择文件");document.form3.file1.focus();return (false);}
 	 
 }

</script>
<body>

 
<table width="100%" height="495" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="27">
	<div class="header">
	<div class="nav">
        <ul>            
            
			<li class="on">添加常用文件</li>
			<li><a href="manage.asp" target="_self">常用文件管理</a></li>
        </ul>
    </div>	
	</td>
  </tr>
  
  
 
  <tr>
   <td height="470" valign="top"   class="NemuMainBox">
	 <br><br><br>
	<form method="post" ENCTYPE="multipart/form-data" name="form3" action="savefile.asp" onSubmit="return form_check();">
  <% Set MyOAASPObj = Server.CreateObject("YFSchoolOApro.YFSchoolDll")
       MyOAASPObj.ChangGuiAddFile
   set MyOAASPObj=nothing%>
</form>    </td>
  </tr>
</table>
</body>
</html>
