All pastes #390791 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-11 17:54 UTC
rendered paste body
function toggleVis(ContactMethod) {
	if(ContactMethod == "email") {
		if(document.getElementById('reqemail').style.visibility == 'hidden') {
			document.getElementById('reqphone').style.visibility = 'hidden';
			document.getElementById('reqemail').style.visibility = 'visible';
		}
	} else if(ContactMethod == "phone") {
		if(document.getElementById('reqphone').style.visibility == 'hidden') {
			document.getElementById('reqemail').style.visibility = 'hidden';
			document.getElementById('reqphone').style.visibility = 'visible';
		}
	}
}

This is relating to a Radio Checkbox.  the "onclick" doesn't seem to be firing / it isn't setting the visibility status of a <span>.

Firebug shows no errors. Not sure what I'm doing wrong.

www.awpti.org/?page=getquote