function checkNullValidation()
{
	var checkLogin = document.getElementById('checkLogin').value;
	if(checkLogin == "")
	{
		if(document.frmcmt.vName.value == "")
		{
			alert("Please enter your Name.");
			document.frmcmt.vName.focus();
			return false;
		}
		if(document.frmcmt.vEmail.value == "")
		{
			alert("Please enter your Email.");
			document.frmcmt.vEmail.focus();
			return false;
		}
		if(!isValidEmail(document.frmcmt.vEmail.value))
		{
			return false;
		}
	}
	if(document.frmcmt.tComment.value == "")
	{
		alert("Please enter your comment.");
		document.frmcmt.tComment.focus();
		return false;
	}
	document.frmcmt.mode.value = "PostComment";	
}
function showCommentBox(action)
{
	var checkLogin = document.getElementById('checkLogin').value;
	if(action == "Show")
	{
		document.getElementById('commentBox').style.display = '';
		if(checkLogin != "")
			document.frmcmt.tComment.focus();
		else
			document.frmcmt.vName.focus();
	}
	else
		document.getElementById('commentBox').style.display = 'none';
}
