/**
 * Ny Content Module JS Files
 * @author Pathfinder Solutions India
 * @link http://www.pathfindersolutions.biz
 * @version 1.0
 * @package YouthActionNet
 * @subpackage Marketplace
 */

/**
 * fnAddRegion function
 * @param string type,string name,int ID,string cssclass,varchar value,bool checked
 * @return bool true or false
 */
 function fnOpenCloseControl(strShowId)
{
	if (document.getElementById(strShowId).style.display == "none")
	{
		document.getElementById(strShowId).style.display = "";
	}
	else
	{
		document.getElementById(strShowId).style.display = "none";
	}
}

function fnValidateInput()
{
	if (document.getElementById('id_txtThreadTitle').value == "")
	{
		alert("Enter thread title\n");
		return false;
	}
	if (document.getElementById('id_txtThreadText').value == "")
	{
		alert("Enter thread text\n");
		return false;
	}
	
	return true;
}
