var ApplicationPath = "";

/**************************************************************************/

function ExpandCollaspeReview(ExpandCollaspeID, RecentlyReviewedSectionID, CommentID)
{
	var ExpandCollaspe = document.getElementById(ExpandCollaspeID);
	var RecentlyReviewedSection = document.getElementById(RecentlyReviewedSectionID);
	var Comment = document.getElementById(CommentID);
	
	var Comments = getElementsByClass("CommentSection", null, null);
	var Expands = getElementsByClass("Collapse", null, null);
	
	ExpandCollaspe.blur();

	if (Comment.style.display == "" || Comment.style.display == "none")
	{
		/*Hide Opened sections*/
		/**********************************************/
		if (Comments.length > 0) 
		{
			for (i=0; i < Comments.length; i++)
			{
				Comments[i].style.display = "none";
			}
		}
		
		if (Expands.length > 0)
		{
			for (i=0; i < Expands.length; i++)
			{
				Expands[i].className = "Expand";
			}
		}
		/**********************************************/

		ExpandCollaspe.className = "Collapse";
		
		if (RecentlyReviewedSection != null)
		{
			RecentlyReviewedSection.style.backgroundColor = "#ffffff";
		}
		Comment.style.display = "block";
	} 
	else 
	{
		ExpandCollaspe.className = "Expand";
		if (RecentlyReviewedSection != null)
		{
			RecentlyReviewedSection.style.backgroundColor = "Transparent";
		}
		Comment.style.display = "none";
	}
}

/**************************************************************************/

function TriggerSignIn(SigninBtnID)
{
	var SigninBtn = document.getElementById(SigninBtnID);
	SigninBtn.click();
}

// Clear Sign On Form Text Fields
function ClearBannerSignOnTextFields()
{
	var MenuBarSignOnForm = document.getElementById("MenuBarSignOnForm");

	if (MenuBarSignOnForm)
	{
		if (MenuBarSignOnForm.style.display != "block") {
			var txtLogin = document.getElementById("Banner_objSignIn_txtLogin");
			var txtPassword = document.getElementById("Banner_objSignIn_txtPassword");

			if (txtLogin)
			{
				txtLogin.value = "";
				txtPassword.value = "";
			}
		}
	}
}