var PictopiaPaperId = 259;     // You MUST replace your pictopia id!


function goPtp(artNo, title, imageUrl, caption) {           
var loc = "http://pictopia.com/perl/ptp?provider_id=259"

        + "&photo_name="+ artNo
        + "&title=" + title
        +"&embedded=y"
        + "&thumbnail_url=" + escape(imageUrl)
        + "&m_caption="+ escape(caption);
var  PictopiaWin = window.open(loc, 'ptp');
     PictopiaWin.focus();
}
