<form name= "Form1" enctype= "Multipart/form-data" method= "post" onsubmit= "Check_filetype (form1.file.value)" >
<table width= "358" height= "border=" "0" cellpadding= "0" cellspacing= "0" background= "images/upfile_bg.gif" >
<tr>
<TD valign= "Top" ><table width= "100%" height= "145" border= "0" cellpadding= "0" cellspacing= "0" >
<tr>
<TD height= "colspan=" 2 "> </td>
</tr>
<tr>
<TD width= "9%" height= "> </td>"
<TD width= "91%" > Please select the file to upload:<br>
<input name= "File" type= "file" size= ">"
<br>
Note: Please control the file size within 10M. </td>
</tr>
<tr>
<TD colspan= "2" align= "center" ><input name= "Submit" type= "Submit" class= "Btn_grey" value= "Submit" >
<input name= "Submit2" type= "button" class= "Btn_grey" onclick= "History.back ( -1)" value= "Cancel" ></td>
</tr>
</table></td>
</tr>
</table>
</form>
<script language=javascript>
function check_filetype (str)
{
var pos = Str.lastindexof (".");
var lastname = str.substring (pos,str.length);
if ((Lastname.tolowercase ()!= ". zip") && (Lastname.tolowercase ()!= ". rar"))
{
alert ("file must be. zip or. rar type");
window.location.href= ' # ';
return false;
}
else
{
form1.action= "fg_fileuploaddeal.jsp"
return true;
}
}
</ Script>