﻿function popUpImage(URL,width,height) {

day = new Date();
//id = day.getTime();
id = "imagepreview";

w = screen.availWidth;
h = screen.availHeight;

var leftPos = (w-width)/2;
var topPos = (h-height)/2;
var pageWidth = width + 40;
var pageHeight = height + 70;
window.open(URL, id, "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width="+pageWidth+",height="+pageHeight+",left="+leftPos+",top="+topPos);
 
}