function checkLoginForm() {
    if (!document.loginform.f_username.value || !document.loginform.f_password.value) {
        alert("You must fill in both your username and password.");
        return false;
    } else {
        return true;
    }
}

function showCommentForm(c) {
    return true;

    document.getElementById('c' + c + 'form').innerHTML = '';
    //document.getElementById('c' + c).style.display = 'none';
    return true;
}

function showCommentDelete(c) {
    document.getElementById('c' + c + 'form').innerHTML = "<div class=\"warning\"><p>Are you sure you want to delete this comment? <a href=\"/comment.php?a=delete&c=" + c + "&confirm=1\">Yes</a> / <a href=\""+window.location+"\" onclick=\"return revertComment("+c+");\">No</a></div>";
    return false;
}

function revertComment(c) {
    document.getElementById('c' + c).style.display = 'block';
    document.getElementById('c' + c + 'form').innerHTML = '';
    return false;
}