function ShowPicture(id,width,height)
{
	var width = width + 20;
	var height = height + 20;
	window.open("pictview.php?id="+id,id,"width="+width+", height="+height+", top=50, left=50, directories=no, location=no, menubar=no, status=no, titlebar=no, toolbar=no, resizable=yes", false);
}
function ShowGalleryPicture(hash,width,height)
{
	var width = width + 35;
	var height = height + 20;
	window.open("pictview.php?gimg="+hash,hash,"width="+width+", height="+height+", top=50, left=50, directories=no, location=no, menubar=no, status=no, titlebar=no, toolbar=no, resizable=yes, scrollbars=yes", false);
}

function fixHeight()
{
	var th = parseInt(document.getElementById('kapura').offsetHeight);
	var mh = parseInt(document.getElementById('mainmenu').offsetHeight);
	var hd = document.getElementById('holder');
		
	var hdh = parseInt(hd.offsetHeight);
	var dh = th + 255 + mh + 30;
		
	if ( hdh < dh )
		hd.style.height = dh + "px";
}
