// JavaScript Document
// the currently displayed image
var curImg = 0;

// Requires variable pssurl to be set to the PDF url in the calling page
function open_pdf_url(theURL, title) {
  window.open(theURL, title, 'width=700,height=600,scrollbars=yes,resizable=yes');
}

function shouldSend() {
  if (document.productform.itemkey.value == '') {
    return false;
  } else {
    return true;
  }
}
  
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
  
// switches preview image when a thumbnail is clicked
// Requires the following variable to be set in the calling page:
// imageurls: Array with urls to mid-size images
function showPic(id) {
  curImg = id;
  document.getElementById("previewPic").src = imageurls[curImg];
}

// shows the full-size version of the preview image in a DHTML window
// Requires the following variable to be set in the calling page:
// hiresurls: Array with urls to large, hi-resolution images
function preview() {
  window.open(hiresurls[curImg], "pic", "height=625,width=625").focus();
}