function showPic(pic)
{
var h = document.body.clientHeight;
var w = document.body.clientWidth - 2;
var img = "<img alt='' style='...' src='" + pic+ "'/>";
$("#divPhotoWrapper").css("width", w).css("height", h).empty().append(img).show();
}
===============
就这么简单