
// return an empty string if none are checked, or
// there are no radio buttons
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 "";
}

function signup_dot_cgi () {

   var URL = "http://trans.nofrillspornco.com/signups/inspire/signup.cgi";
   var charge_id = getCheckedValue(document.forms['signup_dot_form'].charge);

   URL += "?charge_id="+charge_id;
   URL += "&bagent_type="+document.forms['signup_dot_form'].bagent_type.value;
   URL += "&skin_abbrev="+document.forms['signup_dot_form'].skin_abbrev.value;
   URL += "&bagent_name="+document.forms['signup_dot_form'].bagent_name.value;

   URL += "&username="+document.forms['signup_dot_form'].username.value;
   URL += "&password="+document.forms['signup_dot_form'].password.value;
   URL += "&email="+document.forms['signup_dot_form'].email.value;
   URL += "&country="+document.forms['signup_dot_form'].country.value;
   URL += "&inid="+document.forms['signup_dot_form'].inid.value;

   document.location=URL;
   return false;
 }


