var m_win = '';

function ShowImage( url, width, height ) 
{
	if ( m_win.location && !m_win.closed ) 
	{
		m_win.location.href = url;
		m_win.title="sdsssdssd";
		m_win.width=width;
		m_win.height=height;
		
		m_win.focus(); 
	} else {
		var windetails = "width=";
		windetails += (width+20);
		windetails += ", height=";
		windetails += (height+20);
		windetails += ",resizable=1";
		m_win = window.open( url,'htmlname', windetails );
	}
}

function HideImage() 
{
	if ( m_win.location && !m_win.closed) m_win.close(); 
}

