// functions used to display an image in a cfwindow
      //The init function removes the toolbox and makes sure the title is empty       
      init = function(){
         myWindow = ColdFusion.Window.getWindowObject('ImageWindow');
         myWindow.toolbox.remove();
         myWindow.header.remove();
         myWindow.setTitle('');
      }
      
      //the showImage function updates the body of the cfwindow with an img tag       //and resizes the cfwindow to fit the image       
      showImage = function(imgPath,width,height){
         myWindow = ColdFusion.Window.getWindowObject('ImageWindow');
   myWindow.body.update("<img src='" + imgPath + "' alt='' border='0' onclick='hideImage();'>");
   myWindow.setContentSize(width, height);
         ColdFusion.Window.show('ImageWindow');
      }
      
      //the hideImage is called by the onclick event in the img tag that       //is generated by the showImage function and just hides the cfwindow       
      hideImage = function(){
         ColdFusion.Window.hide('ImageWindow');
      }
