// 图片
function UICtrlPhoto(CtrlInputID,CtrlName,UIName)
{
	// 被继承 而非实例化
	if(!arguments.length)
		return ;
	this.UICtrlPhotoConstruct(CtrlInputID,CtrlName,UIName) ;
}


UICtrlPhoto.prototype = new UICtrlFile() ;

UICtrlPhoto.prototype.UICtrlPhotoConstruct = function(CtrlInputID,CtrlName,UIName)
{
	this.UICtrlFileConstruct(CtrlInputID,CtrlName,UIName) ;
		
	this.Preview_Outer = document.getElementById(CtrlName+'Preview_Outer') ;
	this.Preview = document.getElementById(CtrlName+'Preview') ;
}
UICtrlPhoto.prototype.SetFilePath = function(Value)
{
	this._strFilePath = Value;
	this.FileInfo_FileName.href = Value ;
	
	this.Preview.src = Value ;
	this.Preview_Outer.style.display = (Value=='')? 'none': 'block' ;
	
	this.FileDelete_Outer.style.display = (Value=='')? 'none': 'inline' ;
}
UICtrlPhoto.prototype.GetPreview = function()
{ return this.Preview ; }