
function showImageWindow(id)
{
    openImageWindow('image_show_large?id=' + id, 619, 480);
}

function openImageWindow(url, w, h, include_path, parent_id)
{
	urlPos = url.indexOf('?');
	if (urlPos != -1) url_name = url.substring(0,urlPos);
	else url_name = url;
	url_name = url_name.replace(/\//g,'');
	//alert (urlPos);
	//alert(url_name);
	newWin = window.open(url+(urlPos > -1?'&':'?')+"page_path="+(include_path?self.location.pathname:'')+(parent_id?"&parent_id="+parent_id:''),url_name,"height="+h+",left=20,resizable, scrollbars, top=100, width="+w,true);
	if (!newWin.opener) newWin.opener = self;
	newWin.focus();
}