function enlargeimage(path, optWidth, optHeight){ //function to enlarge image. Change as desired.
    var actualWidth=typeof optWidth!="undefined" ? optWidth : "600px"; //set 600px to default width
    var actualHeight=typeof optHeight!="undefined" ? optHeight : "500px"; //set 500px to  default height
    var winattributes="width="+actualWidth+",height="+actualHeight+",resizable=yes";
    var msgWindow = window.open("","Image", winattributes);
    var head  = '<html><head><title>Image</title></head>';
    var body1 = '<body bgcolor="#FAECBA" style="margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;">';
    var image = '<center><a href="javascript:self.close()"><img src="'+path+'" border="0"></a></center>';
    var body2 = '</body></html>';
    msgWindow.document.write(head + body1 + image + body2);
    msgWindow.document.close();
}
