function PAlert(){
	this.Theme=null;
	this.Container=null;
	this.isIE=(navigator.appName.indexOf('Microsoft')=='0'?true:false);
	this.ImagesDir=null;
	this.goTop=true;
	//
	this.setImagesDir=function(dir){
		this.ImagesDir=dir;
	}
	this.setContainer=function(id){
		this.Container=id;
	}
	this.setGoTop=function(gotop){
		this.goTop=gotop;
	}
	this.show=function(text,theme){
		if(text==undefined || text.length==0) text='no text to display';
		this.Theme=theme;
		//
		var oAlert=document.createElement('div');
			oAlert.setAttribute('id','PictoruAlertContainerDiv_'+this.Theme);
			oAlert.setAttribute('align','left');
		//
		var els=document.getElementById(this.Container).childNodes;
		var lens=els.length;
		for(var i=0;i<lens;i++){
			document.getElementById(this.Container).removeChild(els[i]);
		}
		document.getElementById(this.Container).appendChild(oAlert);
		//
		var oTable=document.createElement('table');
			oTable.setAttribute('cellpadding',"0");
			oTable.setAttribute('cellspacing',"0");
			oTable.setAttribute('width',"100%");
			oTable.setAttribute('border',"0");
		//
		oAlert.appendChild(oTable);
		var oTr=oTable.insertRow(0)
		//
		var cellIcon=oTr.insertCell(0);
			cellIcon.setAttribute('id','PictoruAlertIcon');
			//
			var alertIcon=document.createElement('div');
				if(this.isIE){
					alertIcon.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='"+this.ImagesDir+this.Theme+".png')";
				}else{
					alertIcon.style.backgroundImage="url("+this.ImagesDir+this.Theme+".png)";
				}
				cellIcon.appendChild(alertIcon);
		//
		var cellText=oTr.insertCell(1);
			cellText.setAttribute('id','PictoruAlertText_'+this.Theme);
			cellText.innerHTML=(typeof text=="object")?("&bull; "+text.join('<br />&bull; ')):("&bull; "+text);
		//
		var cellClose=oTr.insertCell(2);
			cellClose.setAttribute('id','PictoruAlertClose');
			var closeIcon=document.createElement('div');
				closeIcon.onclick=function(){
					var el=document.getElementById('PictoruAlertContainerDiv_'+theme);
					if(el) el.parentNode.removeChild(el);
				}
			cellClose.appendChild(closeIcon);
			
		//
		if(this.goTop){
			window.scrollTo(0,0);
		}
	}
};