function displayImage(picURL, picWidth, picHeight, picTitle)
{
    newWindow = window.open(picURL, 'newWin', 'toolbar=no,width='+picWidth+',height='+picHeight);
    newWindow.document.write('<html><head><title>' + picTitle + '<\/title><\/head><body background="' + picURL + '"><\/body><\/html>');
    newWindow.resizeBy(picWidth - newWindow.document.body.clientWidth, picHeight - newWindow.document.body.clientHeight);
    newWindow.focus();
}





function displayImageWithHeadLineandDescription(picURL, picWidth, picHeight, picTitle, picHeadLine, picDescription)
{
	//alert(picHeight);
    picHeight = picHeight*1 + 100;
	newWindow = window.open(picURL, 'newWin', 'toolbar=no,width='+picWidth+',height='+picHeight +' ,resizable=yes');
    newWindow.document.write('<html><head><title>' + picTitle + '<\/title><\/head><body style="margin:0 0 0 0;padding: 0 0 0 0;"><div style="margin:0 0 0 0;padding: 0 0 0 0;  Height:"'+ picHeight  +';"><img src="' + picURL + '" /><p>' + picHeadLine + '<br /><br />' + picDescription + '</p></div><\/body><\/html>');
    //newWindow.resizeBy(picWidth - newWindow.document.body.clientWidth, picHeight - newWindow.document.body.clientHeight);
    newWindow.focus();
}

