// JavaScript Document

function inputBlog()
{
	//alert('function input validation calling...');
	var blog_title=document.getElementById("blog_title").value;
	var blog_comm=document.getElementById("blog_comm").value;
	if (blog_title == "")
	{
		alert("please enter blog title.");
		document.getElementById("blog_title").focus();
		return false;
	}
	else if (blog_comm == "")
	{
		alert("please enter blog comment.");
		document.getElementById("blog_comm").focus();
		return false;
	}
	else
	{
		return true;
	}
}


function inputBlogComm()
{
	//alert('function inputBlogComm validation calling...');
	var b_comm=document.getElementById("b_comm").value;
	
	if (b_comm == "")
	{
		alert("please enter blog comment.");
		document.getElementById("b_comm").focus();
		return false;
	}
	else
	{
		return true;
	}
}

function chkLogin(bid,uid)
{
	//alert('hi..'+uid+","+bid);
	if(uid == "")
	{
		alert("Please login first.");
		return false;
	}
	else
	{
		location.href = "post_blog.php?bid="+bid;
		return true;
	}
}
