function checkform ( form )
{
    if (form.YourName.value.trim().length == 0) {
        alert( "Your Name is a required field!" );
        form.YourName.focus();
        return false ;
	}
    if (form.Phone.value.trim().length == 0) {
        alert( "Phone Number is a required field!" );
        form.Phone.focus();
        return false ;
    }
    if (!fncIsValidEmail(form.EmailAddress.value)) {
        alert( "Please enter a valid email address!" );
        form.EmailAddress.focus();
        return false ;
    }
    if (form.QuestionsComments.value.trim().length == 0) {
        alert( "Please provide your question(s) or comment(s)!" );
        form.QuestionsComments.focus();
        return false ;
	}
    return true ;
}

	
function fncIsValidEmail(strElementValue)
{
    return /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(strElementValue);
}

String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g,"");
}

