function validateComments() { if (!isValidString(document.vbForm.commentName.value)) { alert("- Please enter your name. You can lie if you want to. -"); document.vbForm.commentName.focus(); return false; } if (!isValidString(document.vbForm.commentContent.value)) { alert(" - Please write a comment - "); document.vbForm.commentContent.focus(); return false; } doCraptcha('journalCommentAdd') } function resetComments() { document.vbForm.commentName.value = ""; document.vbForm.commentEMail.value = ""; document.vbForm.commentWebsite.value = ""; document.vbForm.commentContent.value = ""; } function updateJournalCommentsNumber(numberOfComments) { result = numberOfComments + " Comment" + ((numberOfComments != 1) ? "s" : ""); document.getElementById("journalCommentsQuant").innerHTML = result; } function renderJournalImage(filename) { document.writeln("" + filename + ""); } function gotoJournalFile(filename) { document.location.href="http://vanillabeach.com/images/journal/" + filename; }