
function DetectImageSize(picPath,picTitle)
{
    
  image_1 = new Image();
  image_1.src = picPath;
  var picName=image_1;
  picURL=picName.src;
  newWindow=window.open(picURL,'newWin','scrollbars=yes,toolbar=yes,width='+picName.width+',height='+picName.height);
  newWindow.document.write('<html><head><title>'+picTitle+'<\/title><\/head><body oncontextmenu="return false;" background="'+picURL+'"><\/body><\/html>');
  newWindow.resizeBy(picName.width-newWindow.document.body.clientWidth,picName.height-newWindow.document.body.clientHeight);
  newWindow.focus();
} 
