//*Routine to create drop-down list of Catalog Theme Names
// Called from catalog_order.htm and shopping cart .htm files

function w(s) { document.writeln(s); }        // Shorthand for building table
function buildArray()
{
  var a = buildArray.arguments;
  for ( var i=0; i<a.length; i++ )
  {
    this[i] = a[i];
  }
  this.length = a.length;
}


var homePG = "http://www.onyxxpressions.com/catalog";
var urls1 = new buildArray("",
homePG+"/Catalog1.htm#AD01",
homePG+"/Catalog1.htm#AL01",
homePG+"/Catalog1.htm#AT01",
homePG+"/Catalog1.htm#BP01",
homePG+"/celtic/CelticSymbols1.htm",
homePG+"/CS01.htm",
homePG+"/Catalog1.htm#FF01",
homePG+"/Catalog1.htm#FP01",
homePG+"/Catalog2.htm#FS01",
homePG+"/Catalog2.htm#LD01",
homePG+"/Catalog2.htm#MA01",
homePG+"/Catalog2.htm#MM01",
homePG+"/Catalog2.htm#NA01",
homePG+"/Catalog3.htm#OA01",
homePG+"/Catalog4.htm#PB01",
homePG+"/Catalog4.htm#SG01",
homePG+"/Catalog4.htm#SS01",
homePG+"/Catalog4.htm#ST01",
homePG+"/Catalog4.htm#TR01",
homePG+"/Catalog4.htm#WW01",
homePG+"/Catalog5.htm#XP01",
homePG+"/Catalog5.htm#XS01");
function go ( which, num, win )
{
  var n = which.selectedIndex;
  if ( n != 0 )
  {
    var url = eval ( "urls" + num + "[n]" )
    if ( win )
    {
      openWindow ( url );
    }
    else
    {
      location.href = url;
    }
  }
}

function openWindow ( url )
{
  popupWin = window.open ( url, 'remote', 'width=500,height=350' );
}

w('<form name="form1">');
w('<select name="menu1" onchange="go(this, 1, false)">');
w('<option>Select Themes Here');
w('<option>AD - Art Deco');
w('<option>AL - Art of Living');
w('<option>AT - ATC/Inchies');
w('<option>BP - BookPlates');
w('<option>CE - Celtic Symbols');
w('<option>CS - Custom Names');
w('<option>FF - Femme Fatale');
w('<option>FP - Full Plates');
w('<option>FS - FloralScapes');
w('<option>LD - Lucid Dreams');
w('<option>MA - Mail Art');
w('<option>MM - Music Melodies');
w('<option>NA - Nature');
w('<option>OA - Oriental Aura');
w('<option>PB - Pam Bell');
w('<option>SG - Stained Glass');
w('<option>SS - Sun-n-Surf');
w('<option>ST - Scenic/Travel');
w('<option>TR - Trees & Leaves');
w('<option>WW - Winter Wonders');
w('<option>XP - Xpressions');
w('<option>XS - Sympathy');
w('</select>');
w('</form>');

