// File Name: v2-inc.js
// Author: B. Lavery
// Services V2.asp and C2.asp

var btnBack = 0;
var btnNext = 0;

function validate(theForm) 
{
    if ((btnBack == 1) && (btnNext == 0)) {
      history.go(-1);
      return false;
      }
    
    if (theForm.bkgno.value == '') {
      alert("No Booking Number entered.");
      theForm.bkgno.focus();
      return false;
      }

    if (theForm.lname.value == '') {
      alert("No Name entered.");
      theForm.lname.focus();
      return false;
      }

    return true;
}



