function button(id ){
	this._pressed=false;
	this._events=['click()'];
	this.initialize = function(){
		if(this.altKey ) { 
		var fBody="event=event?event:window.event;if(event.altKey && chr(event.keyCode)=='"+this.altKey.toUpperCase()+"'){"+this.id+".elem.onclick(); stopEvent(event)}";
		var evF = new Function("event",fBody);linkEventPreserve( document , 'keydown' , evF ) 
		} 
	
	}
	this.caption= function(caption) { if (caption==undefined) return this.elem.value; this.elem.value = caption ;};
	this.image 	= function(image)	{ if (image==undefined) return this.elem.style.backgroundImage; this.elem.style.backgroundImage = image ;} ;	
	
	this.pressed=function(press)	{
		if (press==undefined) return this._pressed;
	
		if(!press){
			this.elem.style.borderTopStyle='';
			this.elem.style.borderLeftStyle='';
			this.elem.style.borderRightStyle='';
			this.elem.style.borderBottomStyle='';
			this._pressed=false;
		}else{
			this.elem.style.borderTopStyle='inset';
			this.elem.style.borderLeftStyle='inset';
			this.elem.style.borderRightStyle='inset';
			this.elem.style.borderBottomStyle='inset';
			this._pressed=true;
		}

	}

}
