TConfirm = function( param )
{
	this.obj			= _c('div',{className:'question'});
	this.obj.AJAXsrc	= '';
	this.obj.setParam( param );
	
	this.obj.status_odp = false;
	this.obj.rysuj = function( dane )
	{
		//this.tlo		= _c('img',{parent:this,className:'confirm_tlo',src:'/images/01/80p/cien.png'});
		this.komunikat	= _c('div',{parent:this,className:'pytanie'});
		this.yes_btn		= _c('div',{parent:this,className:'btn_yes'});
		this.no_btn		= _c('div',{parent:this,className:'btn_no'});
		this.yes		= _c('div',{parent:this,className:'odp_yes'});
		this.no			= _c('div',{parent:this,className:'odp_no'});
		this.anuluj		= _c('div',{parent:this,className:'odp_anuluj'});
		
		//this.apC(this.tlo);
		this.yes.apC( _cTxt('OK') );
		this.no.apC( _cTxt('Anuluj') );

		//oprawka
		var btn_y= _c('div',{className:'btn'});
		var ly = _c('div',{className:'btn btn_l'});
		var cy = _c('div',{className:'btn btn_c'});
		var ry = _c('div',{className:'btn btn_p'});
		//--
		cy.apC(this.yes);
		
		btn_y.apC(ly);
		btn_y.apC(cy);
		btn_y.apC(ry);
		this.yes_btn.apC(btn_y);
//--
		//oprawka
		var btn_n= _c('div',{className:'btn'});
		var ln = _c('div',{className:'btn btn_l'});
		var cn = _c('div',{className:'btn btn_c'});
		var rn = _c('div',{className:'btn btn_p'});
		//--
		cn.apC(this.no);
		
		btn_n.apC(ln);
		btn_n.apC(cn);
		btn_n.apC(rn);
		this.yes_btn.apC(btn_y);
		this.no_btn.apC(btn_n);
		
		
		this.komunikat.apC( _cTxt('Czy napewno chcesz usun±ć to ogłoszenie ze schowka?') );
		this.apC(this.komunikat);
		this.apC(this.yes_btn);
		this.apC(this.no_btn);
		//this.apC(this.anuluj);
		
		this.yes_btn.onclick = function()
		{
//			if(typeof(console)== 'object' ){ console.log( 'yes' ); }
			this.parent.status_odp = true;
			this.parent.handle.ukryj();
			this.parent.onConfirm( true );
			return true;
		}
		this.no_btn.onclick = function()
		{
//			if(typeof(console)== 'object' ){ console.log( 'no' ); }
			this.parent.status_odp = false;
			this.parent.handle.ukryj();
			this.parent.onConfirm( false );
			
			return false
		}
		this.anuluj.onclick = function()
		{
//			if(typeof(console)== 'object' ){ console.log( 'anuluj' ); }
			this.parent.status_odp = false;
			this.parent.handle.ukryj();
			this.parent.onConfirm( false );
			return false;
		}
		
		this.onConfirm	= function( dane ){}
//		this.komunikat.onclick = function()
//		{
//			if(typeof(console)== 'object' ){ console.log( this.parent.status_odp); }
//		}
		
		
		if (dane != undefined){	this.update( dane ); }		
	}
	this.obj.odp = function( val ){return val;};

	this.obj.setTrescKomunikat = function( txt )
	{
		//if(typeof(console)== 'object' ){ console.log( txt ); }
		this.komunikat.apC( txt );
	}
	
	this.obj.rysuj();
	return this.obj;
}
