if (top == self) self.location.href="index.html";
preview = null;
function Thumbnail(TITLE, URL, WIDTH, HEIGHT) {
  previewClose();
  windowprops = "left=50,top=50,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50);
  text = "<html><head ><META HTTP-EQUIV='Refresh' CONTENT='1200'><title>" + TITLE + "</title></head><body  bgcolor='white'";
  text += "><center><img src='" + URL + "' width='" + WIDTH + "' height='" + HEIGHT + "'>";
  text += "</center></body></html>";
  preview = window.open("", "preview", windowprops);
  preview.document.open();
  preview.document.write(text);
  preview.document.close();
}
function previewClose() {
  try {
    if (preview && !preview.closed) {
      preview.close();
    }
  }  catch(err) {
  }
}
function setPreviewNull() {
  preview = null;
}
function Popup(TITLE, URL, WIDTH, HEIGHT) {
  previewClose();
  windowprops = "left=50,top=50,status=yes,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50) + ",,scrollbars=yes";
  preview = window.open(URL, "preview", windowprops);
}
if (document.images) {
}
function swap_image(id,name){
  if (document.images) document.images[id].src=eval(name+".src");
}
function loadframes () {
  if (top != self) {
  }
}
imgSrc = new Array (
  "images/6136_brightred.jpg",
  "images/6136_amethyst_leopard.jpg",
  "images/6136_purple.jpg",
  "images/6136_lilac.jpg",
  "images/6136_palepink.jpg",
  "images/6136_brightpink.jpg",
  "images/6136_paleblue.jpg",
  "images/6136_electricblue.jpg",
  "images/6136_navyblue.jpg",
  "images/6136_brown.jpg",
  "images/6136_brownleopard_suede.jpg",
  "images/6136_limegreen.jpg");
imgList = new Array ();
for (i=0; i<imgSrc.length;i++) {
  imgList[i] = new Image();
  imgList[i].src = imgSrc[i];
}
function validateshop_addtocart( ShopForm ) {
  strMissingMessage = "";
  strInvalidFormat = "";
  if ( ShopForm.quantity.value == "" ) strMissingMessage += "quantity\n";
  if ( strMissingMessage != "" ) {
    alert( "You have not entered the following required field(s):\n" + strMissingMessage );
    return false;
  }
  return true;
}

