function ShowHideObject(id) {

	if(document.getElementById(id).style.display == 'none')	{
		display = true;
	} else {
		display = false;
    }
	if (display) {
		document.getElementById(id).style.display = 'block';
	} else {
		document.getElementById(id).style.display = 'none';
	}
}

var resetJavascript = function(controlName){
	//for (i = 0; i < document.forms[0]." + controlName + ".length; i++){ document.forms[0]." + controlName + "[i].checked = false;};";
	for (i = 0; i < document.forms[0][controlName].length; i++){
		document.forms[0][controlName][i].checked = false;
	}
}

var radioOtherFocus = function(radio, otherTextBoxID){
	//if (this.checked) {this.form." + otherTextBoxId + ".focus();}");
	if (radio.checked) {
		radio.form[otherTextBoxID].focus();
	}
}

var otherRadioCheck = function(textBox, radioID){
	//if (this.value.length > 0) { this.form." + optionId + ".checked = true; }");
	if (textBox.value.length > 0) {
		textBox.form[radioID].checked = true;
	}
}

var otherRadioCheckOther = function(textBox, listName, listLength){
	//if (this.value.length > 0) { this.form." + optionListName + "_" + questionOptions.Length + ".checked = true; }");
	if (textBox.value.length > 0) {
		textBox.form[listName + '_' + listLength].checked = true;
	}
}

