
function InitForm()
{
document.contact.name.focus();
}

function ValidateForm()
{
if (document.contact.name.value == '')
{
alert('You must enter a name');
document.contact.name.focus();
return false;
}
else if ((document.contact.phone.value == '') && (document.contact.email.value == '')) 
{
alert('You must enter a valid phone number or email address');
document.contact.phone.focus();
return false;
}
else
return true;
}
