function buildListPage(theURL,winName,winWidth,winHeight,otherFeatures) {

  var openWin = false;
  var features = "";
  var x = 0;
  var y = 0;
  x = (screen.availWidth - winWidth) / 2;
  y = (screen.availHeight - winHeight) / 2;

  // Error handling
  if ( theURL == "" ) {
    // Hmmm, forgot to pass proper items
    openWin = false;
  }
  else {
    // Assign window name
    if ( winName == "" ) winName = "bp01";

    // Build window features
    if ( otherFeatures != "" ) otherFeatures = "," + otherFeatures;
    features = "screenX=" + x + ",screenY=" + y + ",left=" + x + ",top=" + y + ",width=" + winWidth + ",height=" + winHeight + otherFeatures + "";
    //alert(features);

    // No problems, open new window
    openWin = true;
  }

  if ( openWin ) {
    // Open new window
    var newWin = window.open(theURL,winName,features);
    newWin.focus();
  }
  else {
    // Uh oh, something is wrong
    alert("This feature is not working properly. Please contact Basement Picasso Support to report this error.");
  }
}




function returnItem(item) {
  // send back the selected item
  var f = opener.document.artwork.dblForSalePrice;
  f.value = item;
  // close this page
  self.close();
}
