function showPopUp(src, title, width, height){
	if(width>1000)return;//debug only
	if (title) {
		height+=25;
	}
	var html='<title>'+title+'</title><body style="margin:0;padding:0;">';
	if (title) {
		html+='<div style="font: bold 14px Tahoma, sans-serif; color: #5d5d5d; text-align: center; white-space: nowrap; margin: 5px 0;">'+title+'</div>';
	}
	html+='<img src="'+src+'" alt="'+title+'" />';
	html+="</body>";

	try {
		popup=window.open('','image','width='+width+',height='+height+',toolbar=no,location=no,menubar=no,statusbar=no,scrollbars=no,resizable=yes');
	} catch(e){}
	//popup.resizeTo(width, height);
	//popup.moveTo(10,10);
	//popup.screenX = 10;
	//popup.screenY = 10;
	popup.document.write(html);
	popup.document.close();
	//popup.focus();
}

if (window.attachEvent && (document.all && document.all.item && !(window.opera && document.getElementById && document.readyState)) && navigator.userAgent.indexOf('Opera')==-1) {
	function documentCleaner () {
		domCleaner(document);
		for (var i=0, counti=document.length; i<counti; i++) {
			i=null;
		}
	}
	function domCleaner (el) {
		while (el.firstChild) {
			domCleaner(el.firstChild);
			el.removeChild(el.firstChild);
		}
	}
	window.attachEvent('onunload',documentCleaner);
}
