function showPicture(pic_id,winWidth,winHeight) {
	var tp = Math.ceil((screen.height - winHeight) / 2);
    var lf = Math.ceil((screen.width - winWidth) / 2);
	var win = window.open("/show_pic.php?pic_id="+pic_id, "picture", "width=" + winWidth + ",height=" + winHeight + ",top=" + tp + ",left=" + lf);
}

function showHide(target) {
	element = document.getElementById(target);
	if (element.style.display == 'none') element.style.display ='inline';
	else element.style.display ='none';
}