//show comments
function make_bmovie_comments(rec5, recmovie, rec0, rec1, rec2, rec3) {
    compare = rec5;
    if (compare == recmovie) {
        document.write("<tr><td>"+rec0+"</i></b> --- " + rec1 + " --- " + rec2 + "</td></tr><tr><td>" + rec3 + "</td></tr><tr></tr><tr></tr><tr></tr>");
    }
}

//recPost = postbmhcomment.php
//make comment posting available
//with security check
function make_commenting_available(recPost) {
    document.write("<table class='customTD'>");
    document.write("<tr><th align='right'>Name</th>");
    document.write("<form action='"+recPost+"' method='POST'>");
    document.write("<td><input type='text' name='textName' style='width:125px; height:25px;'></td></tr>");
    document.write("<tr></tr><tr></tr>");
    document.write("<tr><th valign='top'>Post a comment:</th>");
    document.write("<td><textarea rows='5' cols='75' wrap='physical' name='textComment'></textarea><td></tr>");
    document.write("<tr><td></td><td>");
    var rand_no = Math.floor((4)*Math.random()) + 1;
    var pic_string = "http://www.doublesproductions.com/gen_site/passpic" + rand_no + ".jpg";
    document.write("<img class='def' src="+pic_string+">");
    document.write("</td></tr>");
    document.write("<tr><td></td>");
    document.write("<td><input type='text' name='codeEntry' style='width:125px; height:25px;'>");
    document.write("</td></tr>");
    document.write("<tr><td></td>");
    document.write("<td><em>Enter the letters above into the text field in the order they appear.</em>");
    document.write("</td></tr>");
    document.write("<tr><td></td>");
    document.write("<td><input type='submit' value='Submit'>");
    document.write("</form>");
    document.write("<br>");
    document.write("<i>You may need to refresh after submitting to view your comment.</i>");
    document.write("</td></tr>");
    document.write("</table>");
}