
function validateForm( )
{
	var objFV = new FormValidator("frmForum");
		
	if (!objFV.validate("txtTitle", "B", "Please enter the Post Title."))
		return false;
		
	var sPost = tinyMCE.get('txtPost').getContent( );
	
	if (sPost == "" || sPost == null)
	{
		alert("Please enter the Post Details.");

		tinyMCE.get('txtPost').focus();
		
		return false; 
	}
	
	if (!objFV.validate("ddCategory", "B", "Please select the Category."))
		return false;

	if (!objFV.validate("filePicture", "B", "Please select the Picture for your Post."))
		return false;
		
	if (objFV.value("filePicture") != "")
	{
		if (!checkImage(objFV.value("filePicture")))
		{
			alert("Invalid File Format. Please select an image file of type jpg, gif or png.");

			objFV.focus("filePicture");
			objFV.select("filePicture");

			return false;
		}
	}
		
	return true;
}