function Validate(theForm)
{
	var errMesg = "";
	var displayMesg = "";	
 	var Q = ""; // this block determines lifespan of Q
	if (isWhitespace(theForm.blog_comment_username.value))
	{
		Q += " Name.\n";		
	}
	else if(!isNaN(theForm.blog_comment_username.value))
	{
		Q += " Name Should be character.\n";		
	}
	if(isWhitespace(theForm.blog_comment_useremail.value))
	{
		Q += " Email Address.\n";		
	}
	else if(echeck(theForm.blog_comment_useremail.value))
	{
		Q += " Invalid Email Address.\n";		
	}
	else if(!isCharsInBag(theForm.blog_comment_useremail.value, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@._-"))
	{
	  errMesg += " Email Address contains Invalid Characters.\n";
	}
	if (!isWhitespace(theForm.blog_comment_userurl.value))
	{
		var website=theForm.blog_comment_userurl.value;
		//webRE=/^[wW]{3}\.[a-zA-Z0-9._-]+\.[a-zA-Z]{2,4}$/;
		webRE=/^[wW]{3}\.[a-zA-Z0-9._-]+\.[a-zA-Z/]/;
		if(!website.match(webRE))
		{
			errMesg +=" Please check the website address\nEx:www.test.com\n";
		}
	}
	if(isWhitespace(theForm.security_code.value))
	{
		Q += " Enter Security code.\n";		
	}
	if(isWhitespace(theForm.blog_comment_desc.value))
	{
		Q += " Comments.\n";		
	}
	else if(!isNaN(theForm.blog_comment_desc.value))
	{
		Q += " Comments Should be character.\n";		
	}
	
	if(Q.length > 0)
	{
		displayMesg = "Please provide Valid values for\n" + Q ;
	}	 
	
	if(errMesg == "" && displayMesg == "")
	{
		return true;
	}
	else
	{
		if(displayMesg!="")
		{
			alert(displayMesg);
			return false;			
		}
		else
		{
			alert(errMesg);
			return false;
		}	
	}
	
}//end of function Validate

