// JavaScript Document

//  Function for the text page
function st0207ctcheckrange()
//function bc0106ctcheckrange()
{
var n = document.form.NumberField.value;
var URL = ((n.length>3)?n:('0000'+n).substr(('0000'+n).length-4,4));

  if (isNaN(document.form.NumberField.value)) {
    alert("Please enter a page number");
		  }
  else if (document.form.NumberField.value < 1 ||
document.form.NumberField.value >1015) {
          // document.form.NumberField.value > 924) {
alert('Page must be between 1 and 1015')
    // alert("Page must be between 1 and 924")
		 }
		  else 
	   // Change the information below to match the catalog
window.location.href = 'st0207c'+URL+'t.htm';
		//window.location.href = "bc0106c"+URL+"t.htm";
}



//  Function for the image page
function st0207cicheckrange()
//function bc0106cicheckrange()
{
var n = document.form.NumberField.value;
var URL = ((n.length>3)?n:('0000'+n).substr(('0000'+n).length-4,4));

  if (isNaN(document.form.NumberField.value)) {
    alert("Please enter a page number");
		  }
  else if (document.form.NumberField.value < 1 ||
document.form.NumberField.value >1015) {
          // document.form.NumberField.value > 924) {
alert('Page must be between 1 and 1015')
    // alert("Page must be between 1 and 924")
		 }
		  else 
	   // Change the information below to match the catalog
window.location.href = 'st0207c'+URL+'i.htm';
		//window.location.href = "bc0106c"+URL+"i.htm";
}
