function validateComment(formObj){
    publishComment = true;
    if (formObj.commentname.value==""){
        publishComment = false;
        document.getElementById('inputname').className="errorsmall";
        document.getElementById('textname').className="error";
    }
    else{
        document.getElementById('inputname').className="";
        document.getElementById('textname').className="";
    }
    if (formObj.email.value == "" || formObj.email.value.indexOf('@')<=0 || formObj.email.value.indexOf('.')<=0){
        publishComment = false;
        document.getElementById('inputemail').className="errorsmall";
        document.getElementById('textemail').className="error";
    }
    else{
        document.getElementById('inputemail').className="";
        document.getElementById('textemail').className="";
    }
    if (formObj.comment.value==""){
        publishComment = false;
        document.getElementById('inputcomment').className="errorbig";
        document.getElementById('textcomment').className="error";
    }
    else{
        document.getElementById('inputcomment').className="";
        document.getElementById('textcomment').className="";
    }
    return publishComment;
}