// getCheckedValue 
// ----------
// return the value of the radio button that is checked
// return an empty string if none are checked, or
// there are no radio buttons
// ----------
// Snipped from http://www.somacon.com/p143.php
// Created 2005-03-26, Last Modified 2007-06-07, © Shailesh N. Humbad
function getCheckedValue(radioObj) {
	if(!radioObj)
		return "";
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return radioObj.value;
		else
			return "";
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return "";
}


// Radio Button Validation
// copyright Stephen Chapman, 15th Nov 2004,14th Sep 2005
// you may copy this function but please keep the copyright notice with it
function valButton(btn) {
    var cnt = -1;
    for (var i=btn.length-1; i > -1; i--) {
        if (btn[i].checked) {cnt = i; i = -1;}
    }
    if (cnt > -1) return btn[cnt].value;
    else return null;
}

/* not using? jfrey 2009-12-26
function get_radio_value(button_name)
{
for (var i=0; i < document.orderform.button_name.length; i++)
   {
   if (document.orderform.button_name[i].checked)
      {
      var rad_val = document.orderform.button_name[i].value;
      }
   }
}
*/

//toggle JFREY	
function jf_toggle( targetId ){
	if (document.getElementById){
		target = document.getElementById( targetId );
		if (target.style.display == "none"){
			target.style.display = "block";
		} else {
			target.style.display = "none";
		}
	}
}			


                  

