i had this javascript validation working a few days ago. now, it is only part working. one if statement does a check on fields entered like name, email address, postcode etc. the other if statement deals with radio buttons. now the radio button script doesnt work at all. does anyone know how that can be?
if (mainform.contactpostcode.value=='')
{
alert('Your contact postcode is a required field. Please try again.');
event.returnValue=false;
}
if (!(mainform.doyouneed[0].checked || mainform.doyouneed[1].checked || mainform.doyouneed[2].checked || mainform.doyouneed[3].checked))
{
alert('Your need is a required field. Please try again.');
event.returnValue=false;
}