/*
	Module Name:- USER
	File Name  :- forum_post_topics.js
	Create Date:- 04-JUN-2006
	Intially Create By :- 0012
	Update History:
*/

function validate_frm_post_topic()
{
	with(document.frm_post_topic)
	{
		if(cbo_category.value=="")
		{
			alert("Please select Topic Category.");
			cbo_category.focus();
			return false;
		}
		if(txt_topic.value=="")
		{
			alert("Please enter Topic Title.");
			txt_topic.select();
			txt_topic.focus();
			return false;
		}
		if(isEmpty(ta_comment.value))
		{
				alert("Please enter comments.");
				ta_comment.select();
				ta_comment.focus();
				return false;
		}
		else
		{
				if(ta_comment.value.length > 2048)
				{
					alert("Comments should contain less than 2049 characters.");
					ta_comment.select();
					ta_comment.focus();
					return false;
				}
		}		
	}
	return true;
}
