<SCRIPT language=javascript>
	function check_file() 
	{
		var strFileName=document.form1.file.value;
		if (strFileName=="")
		{
			alert("please select a file !");
			return false;
		}
		var strtype=strFileName.substring(strFileName.length-3,strFileName.length);
		strtype=strtype.toLowerCase();
		if (1){
			document.form1.submit();
		}else{
			alert("It must be a file,try it again.");
			document.form1.file.focus();
			return false;
		}
	}
	
	function alertSuccess(){
		alert("A new file has been uploaded!");
	}
</SCRIPT>
