function applyInlineStyle(a){
	a.style.display="inline";
	try{
		a.style.display="inline-table"
	}
	catch(e){
	}
	a.style.verticalAlign="middle"
}
var TfeControls={
	Version:"1.2 ds"
};
TfeControls.AddNamespace=function(a){
	this[a]={
	};
	this[a].AddNamespace=this.AddNamespace
};
TfeControls.Dispose=function(){
};
TfeControls.AddNamespace("WebControls");
TfeControls.AddNamespace("Library");
//TfeControls.WebControls.ImagePath="/images/controls/";
//TfeControls.WebControls.CssPath="/css/controls";
TfeControls.WebControls.ImagePath="/wps/themes/html/EPN_MarketingPortal/images/controls/";
TfeControls.WebControls.CssPath="/wps/themes/html/EPN_MarketingPortal/styles/controls";
TfeControls.Library.PreloadImages=function(){
	var d=document;
	if(d.images){
		if(!d.preloadedImages){
			d.preloadedImages=new Array()
		}
		var j=d.preloadedImages.length;
		var a=TfeControls.Library.PreloadImages.arguments;
		for(var i=0;i<a.length;i++){
			if(a[i].indexOf("#")!=0){
				d.preloadedImages[j]=new Image;
				d.preloadedImages[j++].src=a[i]
			}
		}
	}
};
TfeControls.Library.DaysInMonth=function(a,b){
	var c=new Array(31,28,31,30,31,30,31,31,30,31,30,31);
	if(b==1){
		return((a%4==0)&&((a%100)!=0))||(a%400==0)?29:28
	}
	return c[b]
};
TfeControls.Library.IsValidDate=function(a,b,c){
	if(isNaN(c)||isNaN(b)||isNaN(a)){
		return false
	}
	if(a<1601||a>9999){
		return false
	}
	if(b<0||b>11){
		return false
	}
	return(c>=1&&c<=TfeControls.Library.DaysInMonth(a,b))
};
TfeControls.Library.Guid=function(){
	function S4(){
		return(((1+Math.random())*0x10000)|0).toString(16).substring(1)
	}
	return(S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4())
};
TfeControls.WebControls.NumericInputControlArray=function(){
	this.Version="1.6";
	this.Count=0;
	this.ControlIds=new Array()
};
TfeControls.WebControls.NumericInputControlArray.prototype.Dispose=function(){
};
TfeControls.WebControls.NumericInputControlArray.prototype.AddControl=function(a){
	if(this[a]||!document.getElementById(a)){
		return
	}
	this[a]=new TfeControls.WebControls.NumericInputControl(a);
	this.ControlIds[this.Count++]=a;
	if(typeof(arguments[1])!="undefined"&&!isNaN(arguments[1])){
		this[a].Min=arguments[1]
	}
	if(typeof(arguments[2])!="undefined"&&!isNaN(arguments[2])){
		this[a].Max=arguments[2]
	}
	return this[a]
};
TfeControls.WebControls.NumericInputControl=function(a){
	this.ElementId=a;
	var e=$(a);
	this.LastValidValue=e.value;
	this.Min=null;
	this.Max=null;
	var b=this;
	this.OnKeyDown=function(){
	};
	this.OnKeyUp=function(){
	};
	this.OnChange=function(){
	};
	e.onkeypress=this.ForceNumericKeyInput;
	e.onkeydown=function(e){
		b.OnKeyDownHandler(e)
	};
	e.onkeyup=function(e){
		b.OnKeyUpHandler(e)
	};
	e.onchange=function(e){
		b.OnChangeHandler(e)
	}
};
TfeControls.WebControls.NumericInputControl.prototype.OnKeyDownHandler=function(e){
	this.OnKeyDown(e)
};
TfeControls.WebControls.NumericInputControl.prototype.OnKeyUpHandler=function(e){
	var a=$(this.ElementId).value;
	if(!isNaN(a)||a==""){
		this.LastValidValue=a
	}
	this.OnKeyUp(e)
};
TfeControls.WebControls.NumericInputControl.prototype.OnChangeHandler=function(e){
	var a=$(this.ElementId);
	var b=a.value;
	if(!isNaN(b)){
		if(b!=""){
			b=parseInt(b,10);
			if(this.Min!=null&&b<this.Min){
				b=this.Min
			}
			else if(this.Max!=null&&b>this.Max){
				b=this.Max
			}
			$(this.ElementId).value=b
		}
		this.LastValidValue=b
	}
	else if(b!=""){
		a.value=this.LastValidValue
	}
	this.OnChange(e)
};
TfeControls.WebControls.NumericInputControl.prototype.ForceNumericKeyInput=function(e){
	var a=8,KEY_TAB=9,KEY_RETURN=13,KEY_ESC=27,KEY_LEFT=37,KEY_UP=38,KEY_RIGHT=39,KEY_DOWN=40,KEY_DELETE=46,KEY_END=35,KEY_HOME=36;
	if(!e){
		e=window.event
	}
	if(e.keyCode){
		return((e.keyCode>=48&&e.keyCode<=57)||e.keyCode==45||e.keyCode==a||e.keyCode==KEY_TAB||e.keyCode==KEY_RETURN||e.keyCode==KEY_ESC||e.keyCode==KEY_LEFT||e.keyCode==KEY_UP||e.keyCode==KEY_RIGHT||e.keyCode==KEY_DOWN||e.keyCode==KEY_DELETE||e.keyCode==KEY_HOME||e.keyCode==KEY_END)
	}
	else if(e.which){
		if((e.which>=48&&e.which<=57)||e.which==45||e.which==a||e.which==KEY_TAB||e.which==KEY_RETURN||e.which==KEY_ESC||e.which==KEY_LEFT||e.which==KEY_UP||e.which==KEY_RIGHT||e.which==KEY_DOWN||e.which==KEY_DELETE||e.which==KEY_HOME||e.which==KEY_END){
			return true
		}
		e.preventDefault();
		return false
	}
	else{
		return true
	}
};
var NumericInputControls=new TfeControls.WebControls.NumericInputControlArray();
var LEFT_MOUSE_BUTTON=1;
TfeControls.WebControls.ImageButtonControlArray=function(){
	this.Version="1.2";
	this.Count=0;
	this.ControlIds=new Array()
};
TfeControls.WebControls.ImageButtonControlArray.prototype.Dispose=function(){
};
TfeControls.WebControls.ImageButtonControlArray.prototype.AddControl=function(b,c,d,e,f){
	if(this[b]||!document.getElementById(b)){
		return
	}
	Event.observe($(b),"contextmenu",function(a){
		Event.stop(a)
	});
	this[b]=new TfeControls.WebControls.ImageButtonControl(b,c,d,e,f);
	this.ControlIds[this.Count++]=b;
	return this[b]
};
TfeControls.WebControls.ImageButtonControl=function(a,b,c,d,f){
	this.ElementId=a;
	this.Enabled=true;
	this.SrcDefault=b;
	this.SrcOver=c;
	this.SrcDown=d;
	this.SrcDisabled=f;
	this.MouseOver=false;
	TfeControls.Library.PreloadImages(b,c,d,f);
	this.OnMouseOver=function(){
	};
	this.OnMouseOut=function(){
	};
	this.OnMouseDown=function(){
	};
	this.OnMouseUp=function(){
	};
	this.OnClick=function(){
	};
	var g=this;
	$(this.ElementId).onfocus=function(e){
		g.MouseEvent("mouseover",e)
	};
	$(this.ElementId).onblur=function(e){
		g.MouseEvent("mouseout",e)
	};
	$(this.ElementId).onmouseover=function(e){
		g.MouseEvent("mouseover",e)
	};
	$(this.ElementId).onmouseout=function(e){
		g.MouseEvent("mouseout",e)
	};
	$(this.ElementId).onmousedown=function(e){
		g.MouseEvent("mousedown",e)
	};
	$(this.ElementId).onmouseup=function(e){
		g.MouseEvent("mouseup",e)
	};
	$(this.ElementId).onclick=function(e){
		g.MouseEvent("click",e)
	};
	$(this.ElementId).onkeydown=function(e){
		return g.OnKeyDown(e)
	};
	$(this.ElementId).onkeyup=function(e){
		g.OnKeyUp(e)
	}
};
TfeControls.WebControls.ImageButtonControl.prototype.Dispose=function(){
};
TfeControls.WebControls.ImageButtonControl.prototype.MouseEvent=function(a,e){
	switch(a){
		case"mouseover":if(!this.Enabled)break;
		this.MouseOver=true;
		$(this.ElementId).src=this.SrcOver;
		this.OnMouseOver();
		break;
		case"mouseout":if(!this.Enabled)break;
		this.MouseOver=false;
		$(this.ElementId).src=this.SrcDefault;
		this.OnMouseOut();
		break;
		case"mousedown":if(!this.Enabled||!this.MouseButton(e,LEFT_MOUSE_BUTTON))break;
		$(this.ElementId).src=this.SrcDown;
		this.OnMouseDown();
		break;
		case"mouseup":if(!this.Enabled||!this.MouseButton(e,LEFT_MOUSE_BUTTON))break;
		$(this.ElementId).src=this.SrcOver;
		this.OnMouseUp();
		break;
		case"click":if(!this.Enabled||!this.MouseButton(e,LEFT_MOUSE_BUTTON))break;
		this.OnClick();
		break
	}
};
TfeControls.WebControls.ImageButtonControl.prototype.OnKeyDown=function(e){
	var a=32,KEY_RETURN=13;
	var b=-1;
	if(!e){
		e=window.event
	}
	if(e.keyCode){
		b=e.keyCode
	}
	else if(e.which){
		b=e.which;
		if(b==KEY_RETURN){
			e.preventDefault()
		}
	}
	if(b==a){
		this.MouseEvent("mousedown",e)
	}
	return(b!=KEY_RETURN)
};
TfeControls.WebControls.ImageButtonControl.prototype.OnKeyUp=function(e){
	var a=32;
	var b=-1;
	if(!e){
		e=window.event
	}
	if(e.keyCode){
		b=e.keyCode
	}
	else if(e.which){
		b=e.which
	}
	if(b==a){
		this.MouseEvent("mouseup",e)
	}
};
TfeControls.WebControls.ImageButtonControl.prototype.MouseButton=function(e,a){
	if(!e){
		e=window.event
	}
	if(e.button){
		return(e.button==a)
	}
	else{
		return true
	}
};
TfeControls.WebControls.ImageButtonControl.prototype.Enable=function(){
	if(this.Enabled){
		return
	}
	this.Enabled=true;
	if(this.MouseOver){
		$(this.ElementId).src=this.SrcOver
	}
	else{
		$(this.ElementId).src=this.SrcDefault
	}
};
TfeControls.WebControls.ImageButtonControl.prototype.Disable=function(){
	if(!this.Enabled){
		return
	}
	this.Enabled=false;
	$(this.ElementId).src=this.SrcDisabled
};
var ImageButtonControls=new TfeControls.WebControls.ImageButtonControlArray();
var TEXT_FIELD_RIGHT_DEFAULT=TfeControls.WebControls.ImagePath+"TextFieldRight.gif";
var TEXT_FIELD_LEFT_DEFAULT=TfeControls.WebControls.ImagePath+"TextFieldLeft.gif";
var TEXT_FIELD_SPINNER_RIGHT_DEFAULT=TfeControls.WebControls.ImagePath+"TextFieldSpinnerRight.gif";
var TEXT_FIELD_SPINNER_LEFT_DEFAULT=TfeControls.WebControls.ImagePath+"TextFieldSpinnerLeft.gif";
var TEXT_FIELD_SPINNER_BACKGROUND_DEFAULT=TfeControls.WebControls.ImagePath+"TextFieldSpinnerBackground.gif";
var TEXT_FIELD_SPINNER_RIGHT_OVER=TfeControls.WebControls.ImagePath+"TextFieldSpinnerRightOver.gif";
var TEXT_FIELD_SPINNER_LEFT_OVER=TfeControls.WebControls.ImagePath+"TextFieldSpinnerLeftOver.gif";
var TEXT_FIELD_SPINNER_BACKGROUND_OVER=TfeControls.WebControls.ImagePath+"TextFieldSpinnerBackgroundOver.gif";
var TEXT_FIELD_SPINNER_RIGHT_SELECTED=TfeControls.WebControls.ImagePath+"TextFieldSpinnerRightSelected.gif";
var TEXT_FIELD_SPINNER_LEFT_SELECTED=TfeControls.WebControls.ImagePath+"TextFieldSpinnerLeftSelected.gif";
var TEXT_FIELD_SPINNER_BACKGROUND_SELECTED=TfeControls.WebControls.ImagePath+"TextFieldSpinnerBackgroundSelected.gif";
var SPINNER_UP_IMG_SRC_DEFAULT=TfeControls.WebControls.ImagePath+"SpinnerUp.gif";
var SPINNER_UP_IMG_SRC_OVER=TfeControls.WebControls.ImagePath+"SpinnerUpOvr.gif";
var SPINNER_UP_IMG_SRC_DOWN=TfeControls.WebControls.ImagePath+"SpinnerUpDwn.gif";
var SPINNER_UP_IMG_SRC_DISABLED=TfeControls.WebControls.ImagePath+"SpinnerUpDisabled.gif";
var SPINNER_DOWN_IMG_SRC_DEFAULT=TfeControls.WebControls.ImagePath+"SpinnerDown.gif";
var SPINNER_DOWN_IMG_SRC_OVER=TfeControls.WebControls.ImagePath+"SpinnerDownOvr.gif";
var SPINNER_DOWN_IMG_SRC_DOWN=TfeControls.WebControls.ImagePath+"SpinnerDownDwn.gif";
var SPINNER_DOWN_IMG_SRC_DISABLED=TfeControls.WebControls.ImagePath+"SpinnerDownDisabled.gif";
var DEFAULT_CONTROL=0;
var NUMERIC_CONTROL=1;
var UPDOWN_CONTROL=3;
var KEY_UP=38;
var KEY_DOWN=40;
function isNumericValue(a){
	return(!isNaN(a)&&(a!=null)&&(a!==""))
}
TfeControls.Library.PreloadImages(TEXT_FIELD_RIGHT_DEFAULT,TEXT_FIELD_LEFT_DEFAULT,TEXT_FIELD_SPINNER_RIGHT_DEFAULT,TEXT_FIELD_SPINNER_LEFT_DEFAULT,TEXT_FIELD_SPINNER_BACKGROUND_DEFAULT,TEXT_FIELD_SPINNER_RIGHT_OVER,TEXT_FIELD_SPINNER_LEFT_OVER,TEXT_FIELD_SPINNER_BACKGROUND_OVER,TEXT_FIELD_SPINNER_RIGHT_SELECTED,TEXT_FIELD_SPINNER_LEFT_SELECTED,TEXT_FIELD_SPINNER_BACKGROUND_SELECTED);
TfeControls.Library.PreloadImages(SPINNER_UP_IMG_SRC_DEFAULT,SPINNER_UP_IMG_SRC_OVER,SPINNER_UP_IMG_SRC_DOWN,SPINNER_UP_IMG_SRC_DISABLED,SPINNER_DOWN_IMG_SRC_DEFAULT,SPINNER_DOWN_IMG_SRC_OVER,SPINNER_DOWN_IMG_SRC_DOWN,SPINNER_DOWN_IMG_SRC_DISABLED);
TfeControls.WebControls.TextFieldControlArray=function(){
	this.Version="3.6";
	this.Count=0;
	this.ControlIds=new Array()
};
TfeControls.WebControls.TextFieldControlArray.prototype.Dispose=function(){
};
TfeControls.WebControls.TextFieldControlArray.prototype.AddControl=function(a,b){
	var c;
	if(typeof(a)=="string"){
		c=a
	}
	else if(typeof(a)=="object"&&a.tagName!=null){
		if(a.id==""){
			a.id="TextFieldControl_"+TfeControls.Library.Guid()
		}
		c=a.id
	}
	else return;
	if(this[c]||!document.getElementById(c)){
		return
	}
	if(!b){
		b=DEFAULT_CONTROL
	}
	var d=(b==NUMERIC_CONTROL);
	var f=(b==UPDOWN_CONTROL);
	var e=$(c);
	var g="";
	var h="";
	var i="";
	if(e.tagName.toLowerCase()=="input"&&e.type.toLowerCase()=="text"){
		g=(e.value?e.value:"");
		h=(e.size?e.size:"");
		i=(e.maxLength?((i>0)?i:""):"")
	}
	var j=(f)?24:20;
	var s=""+"<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" id=\"TextFieldElementContainer_"+c+"\" class=\""+((f)?"TextFieldSpinner":"TextField")+"\" onmouseover=\"TextFieldControls['"+c+"'].Element_Over();\" onmouseout=\"TextFieldControls['"+c+"'].Element_Out();\">"+"    <tr>"+"        <td><img id=\"TextFieldElementLeftImage_"+c+"\" src=\""+((f)?TEXT_FIELD_SPINNER_LEFT_DEFAULT:TEXT_FIELD_LEFT_DEFAULT)+"\" width=\"2\" height=\""+j+"\" alt=\"\" /></td>"+"        <td><input type=\"text\" name=\""+c+"\" id=\""+c+"\" size=\""+h+"\" maxlength=\""+i+"\" value=\""+g+"\" onfocus=\"TextFieldControls['"+c+"'].OnFocus();\" onblur=\"TextFieldControls['"+c+"'].OnBlur();\" tabindex=\"0\" /></td>";
	if(f){
		s+=""+"<td>"+"<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">"+"    <tr>"+"        <td><img src=\""+SPINNER_UP_IMG_SRC_DEFAULT+"\" id=\"TextFieldElementButtonUp_"+c+"\" width=\"15\" height=\"9\" hspace=\"1\" alt=\"\" tabindex=\"0\" /></td>"+"    </tr>"+"    <tr>"+"        <td><img src=\""+SPINNER_DOWN_IMG_SRC_DEFAULT+"\" id=\"TextFieldElementButtonDown_"+c+"\" width=\"15\" height=\"9\" hspace=\"1\" alt=\"\" tabindex=\"0\" /></td>"+"    </tr>"+"</table>"+"<td>"
	}
	s+=""+"        <td><img id=\"TextFieldElementRightImage_"+c+"\" src=\""+((f)?TEXT_FIELD_SPINNER_RIGHT_DEFAULT:TEXT_FIELD_RIGHT_DEFAULT)+"\" width=\"2\" height=\""+j+"\" alt=\"\" /></td>"+"    </tr>"+"</table>";
	var r=document.createElement("span");
	r.id="TextField_"+c;
	r.innerHTML=s;
	e.parentNode.replaceChild(r,e);
	this[c]=new TfeControls.WebControls.TextFieldControl(c,h,i,b);
	this.ControlIds[this.Count++]=c;
	this[c].InitialValue=g;
	if(d){
		if(typeof(arguments[2])!="undefined"&&isNumericValue(arguments[2])){
			this[c].PaddedLength=arguments[2];
			this[c].PadZeroes()
		}
	}
	if(f){
		if(typeof(arguments[2])!="undefined"&&isNumericValue(arguments[2])){
			this[c].SetMin(arguments[2])
		}
		if(typeof(arguments[3])!="undefined"&&isNumericValue(arguments[3])){
			this[c].SetMax(arguments[3])
		}
		if(typeof(arguments[4])!="undefined"&&isNumericValue(arguments[4])){
			this[c].SetPadding(arguments[4])
		}
	}
	if(e.disabled){
		this[c].Disable()
	}
	return this[c]
};
TfeControls.WebControls.TextFieldControl=function(a,b,c,d){
	this.ElementId=a;
	this.InitialValue="";
	this.Size=b;
	this.MaxLenght=c;
	this.IsNumeric=(d==NUMERIC_CONTROL||d==UPDOWN_CONTROL);
	this.IsUpDown=(d==UPDOWN_CONTROL);
	this.ButtonUp=null;
	this.ButtonDown=null;
	this.Min=null;
	this.Max=null;
	this.PaddedLength=null;
	this.HasFocus=false;
	this.MouseOver=false;
	this.Enabled=true;
	this.OnChange=function(){
	};
	this.OnKeyUp=function(){
	};
	this.OnKeyDown=function(){
	};
	$(this.ElementId).onchange=this.OnChange;
	$(this.ElementId).onkeyup=this.OnKeyUp;
	$(this.ElementId).onkeydown=this.OnKeyDown;
	if(this.IsNumeric||this.IsUpDown){
		this.NumericInputControl=NumericInputControls.AddControl(this.ElementId,this.Min,this.Max)
	}
	if(this.IsUpDown){
		var f=this;
		this.ButtonUp=ImageButtonControls.AddControl("TextFieldElementButtonUp_"+a,SPINNER_UP_IMG_SRC_DEFAULT,SPINNER_UP_IMG_SRC_OVER,SPINNER_UP_IMG_SRC_DOWN,SPINNER_UP_IMG_SRC_DISABLED);
		this.ButtonDown=ImageButtonControls.AddControl("TextFieldElementButtonDown_"+a,SPINNER_DOWN_IMG_SRC_DEFAULT,SPINNER_DOWN_IMG_SRC_OVER,SPINNER_DOWN_IMG_SRC_DOWN,SPINNER_DOWN_IMG_SRC_DISABLED);
		this.ButtonUpPeriodicalExecuter=null;
		this.ButtonDownPeriodicalExecuter=null;
		this.ButtonUp.OnMouseOut=function(){
			if(f.ButtonUpPeriodicalExecuter!=null)f.ButtonUpPeriodicalExecuter.stop()
		};
		this.ButtonUp.OnMouseDown=function(){
			if(f.ButtonUpPeriodicalExecuter!=null)f.ButtonUpPeriodicalExecuter.stop();
			f.SpinnerButtonClick(1);
			f.ButtonUpPeriodicalExecuter=new PeriodicalExecuter(function(){
				f.SpinnerButtonClick(1)
			},300)
		};
		this.ButtonUp.OnMouseUp=function(){
			if(f.ButtonUpPeriodicalExecuter!=null)f.ButtonUpPeriodicalExecuter.stop()
		};
		this.ButtonDown.OnMouseOut=function(){
			if(f.ButtonDownPeriodicalExecuter!=null)f.ButtonDownPeriodicalExecuter.stop()
		};
		this.ButtonDown.OnMouseDown=function(){
			if(f.ButtonDownPeriodicalExecuter!=null)f.ButtonDownPeriodicalExecuter.stop();
			f.SpinnerButtonClick(-1);
			f.ButtonDownPeriodicalExecuter=new PeriodicalExecuter(function(){
				f.SpinnerButtonClick(-1)
			},300)
		};
		this.ButtonDown.OnMouseUp=function(){
			if(f.ButtonDownPeriodicalExecuter!=null)f.ButtonDownPeriodicalExecuter.stop()
		};
		this.NumericInputControl.OnKeyDown=function(e){
			f.OnKeyDownHandler(e)
		};
		this.NumericInputControl.OnKeyUp=function(e){
			f.OnKeyUpHandler(e)
		};
		this.NumericInputControl.OnChange=function(e){
			f.PadZeroes()
		}
	}
};
TfeControls.WebControls.TextFieldControl.prototype.SetMin=function(a){
	this.Min=a;
	this.NumericInputControl.Min=a
};
TfeControls.WebControls.TextFieldControl.prototype.SetMax=function(a){
	this.Max=a;
	this.NumericInputControl.Max=a
};
TfeControls.WebControls.TextFieldControl.prototype.SetPadding=function(a){
	this.PaddedLength=a;
	this.PadZeroes()
};
TfeControls.WebControls.TextFieldControl.prototype.SpinnerButtonClick=function(a){
	var b=$(this.ElementId).value;
	if(b!=""&&isNaN(b)){
		return
	}
	if(b==""&&a==1){
		b=(isNumericValue(this.Min))?this.Min:1
	}
	else if(b==""){
		return
	}
	else{
		b=parseInt(b,10)+a
	}
	if(isNumericValue(this.Min)&&b<this.Min){
		return
	}
	else if(isNumericValue(this.Max)&&b>this.Max){
		return
	}
	$(this.ElementId).value=b;
	this.PadZeroes()
};
TfeControls.WebControls.TextFieldControl.prototype.PadZeroes=function(){
	var a=$(this.ElementId).value;
	if(a==""||isNaN(a)||this.PaddedLength==null||this.PaddedLength<2||a.length>=this.PaddedLength){
		return
	}
	for(var i=0;i<(this.PaddedLength-a.length);i++){
		a="0"+a
	}
	$(this.ElementId).value=a
};
TfeControls.WebControls.TextFieldControl.prototype.Enable=function(){
	if(this.Enabled){
		return
	}
	this.Enabled=true;
	if(this.MouseOver){
		this.Element_Over()
	}
	$(this.ElementId).disabled=false;
	if(this.IsUpDown){
		this.ButtonUp.Enable();
		this.ButtonDown.Enable()
	}
};
TfeControls.WebControls.TextFieldControl.prototype.Disable=function(){
	if(!this.Enabled){
		return
	}
	this.Enabled=false;
	$("TextFieldElementContainer_"+this.ElementId).className=(this.IsUpDown)?"TextFieldSpinner":"TextField";
	$("TextFieldElementLeftImage_"+this.ElementId).src=(this.IsUpDown)?TEXT_FIELD_SPINNER_LEFT_DEFAULT:TEXT_FIELD_LEFT_DEFAULT;
	$("TextFieldElementRightImage_"+this.ElementId).src=(this.IsUpDown)?TEXT_FIELD_SPINNER_RIGHT_DEFAULT:TEXT_FIELD_RIGHT_DEFAULT;
	$(this.ElementId).disabled=true;
	if(this.IsUpDown){
		this.ButtonUp.Disable();
		this.ButtonDown.Disable()
	}
};
TfeControls.WebControls.TextFieldControl.prototype.Element_Over=function(){
	this.MouseOver=true;
	if(!this.Enabled||this.HasFocus){
		return
	}
	$("TextFieldElementContainer_"+this.ElementId).className=(this.IsUpDown)?"TextFieldSpinnerOver":"TextFieldOver";
	$("TextFieldElementLeftImage_"+this.ElementId).src=(this.IsUpDown)?TEXT_FIELD_SPINNER_LEFT_OVER:TEXT_FIELD_LEFT_OVER;
	$("TextFieldElementRightImage_"+this.ElementId).src=(this.IsUpDown)?TEXT_FIELD_SPINNER_RIGHT_OVER:TEXT_FIELD_RIGHT_OVER
};
TfeControls.WebControls.TextFieldControl.prototype.Element_Out=function(){
	this.MouseOver=false;
	if(!this.Enabled||this.HasFocus){
		return
	}
	$("TextFieldElementContainer_"+this.ElementId).className=(this.IsUpDown)?"TextFieldSpinner":"TextField";
	$("TextFieldElementLeftImage_"+this.ElementId).src=(this.IsUpDown)?TEXT_FIELD_SPINNER_LEFT_DEFAULT:TEXT_FIELD_LEFT_DEFAULT;
	$("TextFieldElementRightImage_"+this.ElementId).src=(this.IsUpDown)?TEXT_FIELD_SPINNER_RIGHT_DEFAULT:TEXT_FIELD_RIGHT_DEFAULT
};
TfeControls.WebControls.TextFieldControl.prototype.OnFocus=function(){
	this.HasFocus=true;
	$("TextFieldElementContainer_"+this.ElementId).className=(this.IsUpDown)?"TextFieldSpinnerSelected":"TextFieldSelected";
	$("TextFieldElementLeftImage_"+this.ElementId).src=(this.IsUpDown)?TEXT_FIELD_SPINNER_LEFT_SELECTED:TEXT_FIELD_LEFT_SELECTED;
	$("TextFieldElementRightImage_"+this.ElementId).src=(this.IsUpDown)?TEXT_FIELD_SPINNER_RIGHT_SELECTED:TEXT_FIELD_RIGHT_SELECTED
};
TfeControls.WebControls.TextFieldControl.prototype.OnBlur=function(){
	this.HasFocus=false;
	if(this.MouseOver){
		this.Element_Over();
		return
	}
	$("TextFieldElementContainer_"+this.ElementId).className=(this.IsUpDown)?"TextFieldSpinner":"TextField";
	$("TextFieldElementLeftImage_"+this.ElementId).src=(this.IsUpDown)?TEXT_FIELD_SPINNER_LEFT_DEFAULT:TEXT_FIELD_LEFT_DEFAULT;
	$("TextFieldElementRightImage_"+this.ElementId).src=(this.IsUpDown)?TEXT_FIELD_SPINNER_RIGHT_DEFAULT:TEXT_FIELD_RIGHT_DEFAULT
};
TfeControls.WebControls.TextFieldControl.prototype.OnKeyDownHandler=function(e){
	if(!e){
		e=window.event
	}
	var a=(e.keyCode)?e.keyCode:e.which;
	if(a==KEY_UP){
		this.ButtonUp.OnMouseDown()
	}
	else if(a==KEY_DOWN){
		this.ButtonDown.OnMouseDown()
	}
};
TfeControls.WebControls.TextFieldControl.prototype.OnKeyUpHandler=function(e){
	if(!e){
		e=window.event
	}
	var a=(e.keyCode)?e.keyCode:e.which;
	if(a==KEY_UP){
		this.ButtonUp.OnMouseUp()
	}
	else if(a==KEY_DOWN){
		this.ButtonDown.OnMouseUp()
	}
};
var TextFieldControls=new TfeControls.WebControls.TextFieldControlArray();

