/**
 *	Class to encapsulate the functionality of a cross-browser image dialog window.
 *
 *	@author		Unknown
 *	@version	1.0
 *	@copyright	Katana Productions Pty Ltd 2001
 *
 *	@param	filePath        The path for the dialog to start in.
 *	@param	title           The title of the window.
 *  @param  allowScrolling  Whether to put in a vertical scroll bar or not.
*/
function LookUpDialog(filePath, title, allowScrolling,pageWidth,pageHeight)
{
  var width = 255;
  var height = 325;
  if (pageWidth) 
  {
    width = pageWidth;
  }
  if (pageHeight) 
  {
    height = pageHeight;
  }
  var features = 'width=' + width + ',height=' + height;
  if (allowScrolling) 
  {
    features = features + ',scrollbars=yes,location=yes';
  }
	this.base = Dialog;
  
 	this.base(filePath, features, title);
}

LookUpDialog.prototype = new Dialog;

/**
 *	Opens the dialog window.
*/
LookUpDialog.prototype.open = function()
{
  this.window = window.open(this.contentSrc, '_blank', this.features);
	this.window.dialog = this;
}

/**
 *	Event handler when action button is pressed.
 *	The 'this' object actually refers to the HTML element that fired the event.
 *	Use 'this.dialog' to retrieve your instance of the Dialog object.
 */
LookUpDialog.prototype.onaction = function()
{

}
