function checkFormNewTopic() {

	formErrors = false;

	if (document.newtopic.content.value.length < 2) {
		formErrors = "You must enter a message when starting a new topic or the message is to short.";
	}

    if (document.newtopic.title.value.length < 2) {
		formErrors = "You must enter a title when starting a new topic or the title is to short.";
	}
	
	
	if (document.newtopic.content.value.length > 2000) {
		formErrors = "The content of your new topic can not be more than 2000 characters.";
	}

    if (document.newtopic.title.value.length > 40) {
		formErrors = "The title of your new topic can not be more than 40 characters.";
	}
	
    if (document.newtopic.vi.value!="5321") {
		formErrors = "The verification image is incorrect, please try again.";
	}
	

	if (formErrors) {
		alert(formErrors);
		return false;
	} else {
		bbstyle(-1);
		return true;
	}
}



function checkFormPostReply() {

	formErrors = false;

	if (document.postreply.content.value.length < 2) {
		formErrors = "You must enter a message when posting a reply or the message is to short.";
	}
	
	if (document.postreply.content.value.length > 2000) {
		formErrors = "The content of your post can not be more than 2000 characters.";
	}
	

	if (formErrors) {
		alert(formErrors);
		return false;
	} else {
		bbstyle(-1);
		return true;
	}
}