
/* Call after onLoad */
function RadioImageInit(options,cnt) {
 
 var options = options.split(",");

 for (var i=0;i<cnt;++i){
 	//Variable used for the names of the variables created on the fly
	var anOption = "option"+i;
	if (i == 0){
  	var anOption = new RadioImage(anOption, '/images/radiooff.gif', 
                               '/images/radioon.gif', document.images[anOption],
                               document.pollForm.selOption, options[i], true);
	}else{
		var anOption = new RadioImage(anOption, '/images/radiooff.gif', 
                               '/images/radioon.gif', document.images[anOption],
                               document.pollForm.selOption, options[i], false);
	}
 }
 
/*RadioImage(name, src, clickedSrc, image, formField, value, clicked)
  var option0 = new RadioImage('option0', '/images/radiooff.gif', 
                               '/images/radioon.gif', document.images['option0'],
                               document.pollForm.selOption, 0, true);

  var option1 = new RadioImage('option1', '/images/radiooff.gif', 
                               '/images/radioon.gif', document.images['option1'],
                               document.pollForm.selOption, 1, false);

  var option2 = new RadioImage('option2', '/images/radiooff.gif', 
                               '/images/radioon.gif', document.images['option2'],
                               document.pollForm.selOption, 2, false);

  var option3 = new RadioImage('option3', '/images/radiooff.gif', 
                               '/images/radioon.gif', document.images['option3'],
                               document.pollForm.selOption, 3, false);
*/
}



function checkPoll() {

  /* this stops the submission, because if an event handler
     returns false, the browser won't submit the form yet.. */
  if (document.pollForm.selOption.value == '') { return false; }
  return true; 

}
