<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
BODY{
BACKGROUND-COLOR:#FFFFFF;
font-size:9pt;
padding-top:2px;
}
.tx1 { float:left; padding:5px; height: 20px; line-height:20px; font-size:12px; border:1px #CCCCCC solid; color: #0000FF}

.file-box{ position:relative;width:140px; float:left; margin:0px; padding:0px;}
.txt{ float:left; height:20px; border:0px solid #cdcdcd; width:0px; display:inline; margin:0px; padding:0px;}
.btn{ float:left; background:#FFF; margin:0px; padding:0px; border:1px solid #CDCDCD;height:20px; width:70px; cursor:pointer; margin-right:5px;}
.file{ position:absolute; border:none; top:0; left:0px; line-height:20px; width:72px; height:20px; filter:alpha(opacity:0);opacity:0;}
-->
</style>

<SCRIPT language=javascript>
function check() 
{
	var strFileName=document.form1.FileName.value;
	if (strFileName=="")
	{
    	alert("请选择要上传的文件");
		document.form1.FileName.focus();
    	return false;
  	}
}
</SCRIPT>
</head>
<body leftmargin="0" topmargin="0">
<div class="file-box"> 
<form action="Upfile_Photo.asp" method="post" name="form1" onSubmit="return check()" enctype="multipart/form-data">
<input type='text' name='textfield' id='textfield' class='txt' />
<input type='button' class='btn' value='浏览...' />
<input type="file" name="FileName" class="file" id="FileName" size="28" onChange="document.getElementById('textfield').value=this.value" /><input type="submit" name="Submit" value="上传" style=" float:left; border:1px #CCCCCC solid; margin:0px; font-size:12px; height:20px; line-height:20px; width:50px; text-align:center; cursor:pointer;"><input name="PhotoUrlID" type="hidden" id="PhotoUrlID" value="<%=Clng(trim(request("PhotoUrlID")))%>"></form>
</div>
</body>
</html>
