I wrote this form and I am having trouble figuring out how to do 1 of either two things:
1.) Display all missing fields in red on the same window (i tried using document.write but no success)
2.) Display all missing fields in an alert box (using alert()...)
Right now, for each missing field there is an alert(). Can anybody offer some advice or help me figure this out? My current functional code is below.
Many thanks in advance!!!

<SCRIPT>
//--> Begin
function validate()
{
// Check age group dropdown
if (mainform.age.options[0].selected)
{alert('Please select your age group.');
event.returnValue=false;}
// Check referral dropdown
if (mainform.referred.options[0].selected)
{alert('How did you hear about AnthonyJD.com?');
event.returnValue=false;}
// If referral dropdown is Other, make sure its specified where
mr2v=mainform.reason2.value;
if (mainform.referred.options[4].selected && mr2v=='')
{alert('How did you hear about AnthonyJD.com?');
event.returnValue=false;}
// Check enjoy website radio buttons
if (!(mainform.enjoysite[0].checked || mainform.enjoysite[1].checked))
{alert('Have you enjoyed browsing AnthonyJD.com?');
event.returnValue=false;}
// If radio button is No, make sure reason is filled in
mrv=mainform.reason.value;
if (mrv=='' && mainform.enjoysite[1].checked)
{alert('What did you not like about AnthonyJD.com?');
event.returnValue=false;}
// Check visit again dropdown
if (mainform.visitagain.options[0].selected)
{alert('Are you likely to visit AnthonyJD.com again?');
event.returnValue=false;}
}
//--> End
</SCRIPT>