function lpopup(url, width, height, title)
{
     winwidth=width+25;
     winheight=height+25;
        var pageWidth = 480;
        var pageHeight = 340;
        if (document.body && document.body.clientWidth) {
                pageWidth = document.body.clientWidth;
                pageHeight = document.body.clientHeight;
        } else if (window.innerWidth) {
                pageWidth = window.innerWidth;
                pageHeight = window.innerHeight;
        }
        var topPos = 18;
        var leftPos = (pageWidth - winwidth) / 2;
        var features = 'width='+winwidth;
        features += ',height='+winheight;
        features += ',top='+topPos;
        features += ',left='+leftPos;
     features += 'resizeable';

        newWindow = window.open("", "_blank", features);
        newWindow.document.open();
        newWindow.document.write('<html><title>'+title+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">');
        newWindow.document.write('<table width="'+width+'" height="'+height+'" border="0" cellspacing="0" cellpadding="10" align="center"><tr><td><img src="'+url+'" width="'+width+'" height="'+height+'" alt="'+title+'"></td></tr></table>');
        newWindow.document.write('</body></html>');
        newWindow.document.close();
        newWindow.focus();
}


