<!--
function callPopUp(url)
{
  var name,width,height,strResize,scroll,menu,status;
  var thePage = 'test.html' & url;
  name = 'displayWindow';
  width = 450;
  height = 400;
  strResize = 1;
  scroll = 'auto';
  menu = 'no';
  status = 'no'
  
  if (arguments.length > 1)
  {
    if (arguments[1])
      name = arguments[1];
    if (arguments[2])
      width = arguments[2];
    if (arguments[3])
      height = arguments[3];
    if (arguments[4])
      strResize = arguments[4];
    if (arguments[5])
      scroll = arguments[5];
    if (arguments[6])
      menu = arguments[6];
    if (arguments[7])
      status = arguments[7];
  }
	var top = (screen.height && height)?(screen.height-height)/2:100;
	var left  = (screen.width && width)?(screen.width-width)/2:100;
  popup = window.open('/popup.cfm?url=' + url,name,'top=' + top + ',left=' + left + ',width=' + width + ',height=' + height + ',resizable='+ strResize + ',scrollbars='+ scroll + ',menubar='+ menu + ',status=' + status );
}
var writeWin = null;
function createWindow(width,height,theText) 
  { 
		var top = (screen.height && height)?(screen.height-height)/2:100;
		var left  = (screen.width && width)?(screen.width-width)/2:100;
	  writeWin = window.open('','aWin','top=' + top + ',left=' + left + ',width=' + width+ ',height=' + height); 
  	var ePen = '<html>\r<head>\r<title>Design Within Reach</title>\r<link rel=\"stylesheet\" type=\"text/css\" href=\"/scripts/dwr.css\">\r</head>\r<body>\r<font class=\"fntText\">' + theText + '</font>\r</body>\r</html>'; 
  	var wd = writeWin.document;
//  wd.open();
  wd.write(ePen);
//  wd.close();
}
function flashObj(theText,flashName,flashSrc,flashWidth,flashHeight,flashVer,flashBgColor) {
	this.copy = theText;
	this.name = flashName;
	this.src = flashSrc;
	this.width = flashWidth;
	this.height = flashHeight;
	this.version = flashVer;
	this.bgColor = flashBgColor;
	return this;
}
function createFlash(appName,w,h,theText,flashName,flashSrc) {
	myFlashObj = new flashObj(unescape(theText),unescape(flashName),flashSrc,w,h);
	var top = (screen.height && h)?(screen.height-h)/2:100;
	var left  = (screen.width && w)?(screen.width-w)/2:100;
  var myWin = window.open('/detectFlash.cfm?c='+escape(theText)+'&h='+h+'&w='+w+'&t='+ unescape(flashName) +'&app=' + appName + '&flashFile=' + flashSrc,'flash','top=' +  top + ',left=' + left + ',width=' + eval(w+20) + ',height=' + eval(h+20) + ',resizable=1,scrollbars=no,menubar=no,status=no');
	myWin.focus();
}
var myWin = null;
function newWin(url) 
{
  var name,width,height,strResize,scroll,menu,status;
  var thePage = url;
  name = 'displayWindow';
  width = 450;
  height = 400;
  strResize = 1;
  scroll = 'auto';
  menu = 'no';
  status = 'no'
  
  if (arguments.length > 1)
  {
    if (arguments[1])
      width = arguments[1];
    if (arguments[2])
      height = arguments[2];
    if (arguments[3])
      name = arguments[3];
    if (arguments[4])
      strResize = arguments[4];
    if (arguments[5])
      scroll = arguments[5];
    if (arguments[6])
      menu = arguments[6];
    if (arguments[7])
      status = arguments[7];
		var top = (screen.height && height)?(screen.height-height)/2:100;
		var left  = (screen.width && width)?(screen.width-width)/2:100;
    myWin = window.open(url,name,'top=' + top + ',left=' + left + ',width=' + width + ',height=' + height + ',resizable='+ strResize + ',scrollbars='+ scroll + ',menubar='+ menu + ',status=' + status );
		myWin.focus();
  }
}

// -->
