// JavaScript Document
// Props to Jeremy Keith - Go buy his boooks!
// 

function showPic (whichpic) {
  if (!document.getElementById) return true;
  document.getElementById('placeholder').src = whichpic.href;
  return false;
}


function prepareGallery() {
  if (!document.getElementsByTagName) return false;
  if (!document.getElementById) return false;
  if (!document.getElementById("imagegallery")) return false;
  var gallery = document.getElementById("imagegallery");
  var links = gallery.getElementsByTagName("a");
  for ( var i=0; i < links.length; i++) {
    links[i].onclick = function() {
      return showPic(this);
    }
  }
}

function myCalc(x)
{
  window.location.href = "http://192.168.0.3/lapdeck/buy.asp?quantity="  +   
     x.options[x.selectedIndex].value;
}


window.onload=prepareGallery;
