// (Don't touch the next line; it declares the image array.)
var Pic = new Array


Pic[0] = 'images/frmsubbutton.gif'
Pic[1] = 'images/frmsubbutton_on.gif'
Pic[2] = 'images/frmsubbutton_down.gif'
Pic[3] = 'images/frmresetbutton.gif'
Pic[4] = 'images/frmresetbutton_on.gif'
Pic[5] = 'images/frmresetbutton_down.gif'


// ----------------------------------------------------------------------
// This section of code preloads the images you named in the Pic[] array
// above, so images will be ready as soon as the page opens.

var p = Pic.length
var preLoad = new Array()
var i = 0;
for (i = 0; i < p; i++){
     preLoad[i] = new Image()
     preLoad[i].src = Pic[i]
}


function switchImage(whichImage,imageNumber){
   document.images[whichImage].src = preLoad[imageNumber].src
}



function doSubmit(){
     self.focus()
     document.frmSearch.submit();
}



function doReset(){

   // optional -- but it gets the lines off the image in IE
   self.focus()

   // clear the fields in the form...
   // note the naming convention in the format of
   // document.FORMNAME.FIELDNAME.value
   // to add more fields, just follow the same format
   

   document.frmSearch.reset()
    
}
