// only one sale per customer
var reentry_flag = true;

// submit open project form
function nextPage(message)
{
  if (reentry_flag == true)
  {
    reentry_flag = false;
    sFile = document.opform.file.value;
    var sExt = sFile.substring(sFile.lastIndexOf("."));
    sExt = sExt.toLowerCase();
    if ( sExt.indexOf(".avery") < 0)
    {
      reentry_flag = true;
      alert(message);
      return;
    }
    document.opform.submit();
  }
  // unfortunately NS is bad on repeated clicks, it locks out the submit unless reenable it alternate times
  // of course IE does it right the first time and submits, but not NS!!
  else
    reentry_flag = true;
}

