I am wondering if someone could please tell me why the following code doesn't work?

Code JavaScript:
function validate() {
if (document.forms.weborderForm.domainradiogroup.checked == true) {
	alert("testing");
}
}

Code:
<input type="radio" name="domainradiogroup" id="domainradiogroup" value="No" onclick="javascript:validate();" />
Thanks in advance.