<%if session("nyeee_admin")="" then
response.redirect "login.asp"
end if%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>图片上传</title>
<style type="text/css">
<!-- 
td           { font-size: 12px; line-height: 17px }
body         { font-size: 12px; line-height: 17px }
p            { margin-top: 1; margin-bottom: 1 }
form         { margin-top: 1; margin-bottom: 1 }
a:link       { text-decoration: none; color: black }
a:visited    { text-decoration: none; color: black }
a:active     { text-decoration: none }
a:hover      { text-decoration: underline; color: red }
-->
</style>
<script language=javascript>
function checkImage(sId)
{
  if(( document.all[sId].value.indexOf(".gif") == -1) && (document.all[sId].value.indexOf(".GIF") == -1) && (document.all[sId].value.indexOf(".jpg") == -1) && (document.all[sId].value.indexOf(".JPG") == -1)) {
    alert("请选择gif、jpg格式的图片！");
    event.returnValue = false;
    }
}
</script>
</head>

<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<form name="form1" method="post" action="saveqy.asp" enctype="multipart/form-data" onsubmit="checkImage('file1')">
  <tr>
      <td align="center">
<input type="file" name="file1" size=20 class="an">
<input type="submit" name="Submit" value="上传" class="an" style="font-size: 12px"> 
	</td> 
  </tr> 
  </form> 
</table> 
</body> 
 
</html> 
