﻿// JScript File
function checkForm(theForm){

    //alert(theForm.senderName.value);
    if(theForm.senderName.value.length < 2){
        theForm.senderName.focus();
        alert("Please provide your name");
        return false;
    }
    
    if(theForm.email.value.length < 2){
        theForm.email.focus();
        alert("Please provide your E-Mail address");
        return false;
    }
    
    if(theForm.tel.value.length < 2){
        theForm.tel.focus();
        alert("Please provide your phone number");
        return false;
    }
    
    if(theForm.comment.value.length < 2){
        theForm.comment.focus();
        alert("Please provide your comment/question");
        return false;
    }
    
    return true;
}
