
var win = null;

function fnPopAdv(img,url,title,width,height)
{
	if (Ext.isEmpty(win,true))
	{		
        win = new Ext.Window({
	            layout: 'fit',
	            width: width+10,
	            height: height+30,
	            iconCls: 'news',
	            bodyStyle:'border:none;',
	            resizable: false,
	            modal: false,
	            draggable:true,
	            closeable: true,
	            plain: true,
	            title: title,
	            html:'<a href="#" onclick="window.open(\'' + url + '\');win.close();" title="' + title + '">' + 
	            	 '<img src="' + img + '" style="border:none;" alt=""/>' + 
	            	 '</a>',
	            listners:{
	            	'close':function()
	            	{
	            		win = null;
	            	}	            	
	            }
        });
        
        win.show();
        
        //Windows ©w¦ì
	    win.setPosition(80,50);    
	}
}