
	hf_confirm = new YAHOO.widget.SimpleDialog("simplealert",  { 
		width: "380px",
		effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.25}, 
		visible:false,
		fixedcenter:true,
		modal:true,
		dragOnly:true,
		constraintoviewport:true,
		on_yes_url:'',
		close:false,
		icon: YAHOO.widget.SimpleDialog.ICON_WARN,
		buttons: [ 
			{ text:'Ja', handler:function() {this.hide();if(this.on_yes_url) window.location.replace(this.on_yes_url);} },
			{ text:'Nein', handler:function() {this.hide()}, isDefault:true}
		]
	})
	hf_confirm.ask = function(head, txt, url) {
		this.on_yes_url = (url) ? url : '';
		this.setHeader(head);
		this.setBody(txt);
		this.cfg.queueProperty('icon', YAHOO.widget.SimpleDialog.ICON_WARN);
		this.render(document.body);
		this.show();
	}
	hf_confirm.onBeforeShow = function() {
		this.div_tl = document.createElement("DIV");
		this.div_tl.className = 'tl';
		this.appendToHeader(this.div_tl);
		this.div_tr = document.createElement("DIV");
		this.div_tr.className = 'tr';
		this.appendToHeader(this.div_tr);
	}
	hf_confirm.subscribe("beforeShow", hf_confirm.onBeforeShow);
