// setacctno.js
// brh
// 12.01.04
// Should be attached to the end of all non-compiled web pages for on-line order. 
//Writes account number information from cookie to field in web page.
var allcookies = document.cookie
var pos = allcookies.indexOf("acctno")
//alert(allcookies)
if ( pos != -1 ) {
  var start = pos + 7
  var end = allcookies.indexOf(";", start)
  if ( end == -1 ) end = allcookies.length
  var value = allcookies.substring( start, end )
  value = unescape(value)
  if ( value != "" ) {
    //alert (value)
    document.forms[0].acctno.value = value
  }
}
