PreviewDialog bug

PreviewDialog would not close if the id of folioThumb, which is taken
from the productId, had periods. Added code to remove the periods from
the folioThumb id.