/* 

Check (non-radio) Button-handling JavaScript library, (C) Paul Stephens 1999

Tested with Netscape Navigator 4.01 and Microsoft Internet Explorer 4.72 (SP1)

To use these functions, you have to set up the relevant images and objects
in your page. See PC Plus issue 150, or http://www.bigfoot.com/~pstephens for details.

*/


function chkclick (buttonID) {
// Toggles this button between flat and out states

var butobj = eval(buttonID)
if (butobj.selected) { 
  chkchangepic(buttonID, "off") 
  butobj.selected = false
  } else { 
  chkchangepic(buttonID, "on")
  butobj.selected = true }

} // end of function


function chkchangepic (imgname, status) {
// alert(imgname)
if (document.images) {
  document.images[imgname].src = eval(imgname+status+".src")
  }
}
