function printpage(siteURL, pageTitle, theWidth, theHeight) {
  theWidth  = theWidth  == 0 ? 100 : theWidth;
  theHeight = theHeight == 0 ? 100 : theHeight;
  myPopup = window.open(siteURL + '/print/' + pageTitle,'InterviewNotes','width=' + theWidth + ',height=' + theHeight + ',resizable=no,scrollbars=yes,status=no');
}

    function openShowPopupWindow(fileToOpen, productID, photoFile, originalFilename)
    {
        // Remove the thumbnail size from the filename
        photoFile = photoFile.replace('_t280', '');

        // Remove the thumbnail size from the filename for the page comparision
        originalFilename = originalFilename.replace('_t280', '');
        // Remove the path from the image source
        originalFilename = originalFilename.substr(originalFilename.lastIndexOf('/') + 1, originalFilename.length);

        // Try and load the popup window
        try
        {
            // The new window
            window.open(fileToOpen + '?id=' + productID + '&photo=' + photoFile + '&name=' + originalFilename, '_blank', 'scrollbars = yes');
        }
        catch (e)
        {
            // Show a simple error for the user
            alert("Error: Could not initiate the loading of the popup window"); //  + e
        }
    }

        function changeImageSourceSize(theImageToBe)
    {
        if (document.getElementById("topImage")) // If we can find the element in the document
        {
            document.getElementById("topImage").src = theImageToBe.replace('_t65', '_t280'); // Replace the image with new image and assign new image to existing image file placeholder.
        }
    }