﻿window.addEvent('domready', function() {
    //Add link animation
});

function ValidateCommentsForm() {

    var returnString = "";

    //Check values
    if ($('comment').getProperty("value") == "") {
        returnString = "You have not entered your comment\n" + returnString;
        $('comment').focus();
    }

    if ($('email').getProperty("value") == "") {
        returnString = "You have not entered your email\n" + returnString;
        $('email').focus();
    }

    if ($('author').getProperty("value") == "") {
        returnString = "You have not entered your name\n" + returnString;
        $('author').focus();
    }
    
    if (returnString.length > 0) {
        alert(returnString);
        return false;
    }
    return true;

    //Report to user

    //stop submission


    //commentform
}