function checkForm(){
theform=document.contactform

// Check that name has been provided
if (theform.name.value==""){ 
alert("Your name is required")
theform.name.focus()
return false;
}

// Check that email addres has been provided
if (theform.email.value==""){ 
alert("Your email address is required.")
theform.email.focus()
return false;
}

// Check that text for body of the message has been provided
if (theform.body.value==""){ 
alert("Please provide the message text.")
theform.body.focus()
return false;
}

return true;
}