/**
 * PUBLIC VOID
 * toggle display of element with id
 */
function toggleDisplay(id) {
	if (document.getElementById(id)) {
    if (document.getElementById(id).style.display == 'none') {
      document.getElementById(id).style.display = 'block';
    } else {
      document.getElementById(id).style.display = 'none';
    }
	}
}

/**
 * PUBLIC VOID
 * show image window with source
 */
function showImage(imgPath)
{
  window.open('image.html?name=' + imgPath,'Image', 'innerWidth=1000, innerHeight=800, dependent=no, directories=no, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, titlebar=no, toolbar=no, copyhistory=no');
}

/**
 * PUBLIC VOID
 * calling the printer php script
 */
function showPrint(docPath)
{
	window.open('print.php?open=' + docPath);
}
