	

	function blogPostDetail(formName,blogId,readmore)
	{   
	
			document.getElementById("blogId").value=blogId;
			document.getElementById("readmore").value=readmore;
			document.getElementById(formName).action=HOST_ROOT_PATH_VAR+"Blog/";
			//document.getElementById(formName).submit(); 
			$("form#"+formName).submit();
			//return false; 	
	}

	function blogMyPost(formName,blogUserId)
	{
			
			if(document.getElementById("ChoosePost").value!=0)
			{
			 document.getElementById("blogMyIdHidden").value='mypost';
			}
			document.getElementById("blogUserId").value=blogUserId;
			document.getElementById(formName).action=HOST_ROOT_PATH_VAR+"Blog/";
			//document.getElementById(formName).submit(); 
			$("form#"+formName).submit();
			//return false;
	}
	
	function blogAddComment(formName,blogId,readmore,AddCommentButton)
	{    
	
			document.getElementById("blogId").value=blogId;
			document.getElementById("readmore").value=readmore;
			document.getElementById("AddCommentButton").value=AddCommentButton;
			document.getElementById(formName).action=HOST_ROOT_PATH_VAR+"Blog/";
			//document.getElementById(formName).submit();  
			$("form#"+formName).submit();
			//return false;
	
	}
	
	function blogReadMore(formName,blogId)
	{   
			document.getElementById("blogId").value=blogId; 			
			document.getElementById(formName).action=HOST_ROOT_PATH_VAR+"Blog/";
			//document.getElementById(formName).submit(); 
			$("form#"+formName).submit();
			//return false;
	}
  
	function blogAddComment(formName,addComment,blogId)
	{       
	        document.getElementById("blogId").value=blogId;
			document.getElementById("addCommentId").value=addComment; 
			document.getElementById(formName).action=HOST_ROOT_PATH_VAR+"Blog/";
			//document.getElementById(formName).submit(); 
			$("form#"+formName).submit();
			//return false; 
	}
	
	function blogCreateNewPost(formName,blogCreateNewPost)
	{      
			document.getElementById("blogCreateNewPost").value=blogCreateNewPost;  
			document.getElementById(formName).action=HOST_ROOT_PATH_VAR+"Blog/";
			//document.getElementById(formName).submit(); 
			$("form#"+formName).submit();
			//return false; 
	
	}
	
	function blogPostSubmit(formName,blogCreatePost)
	{   
	      //alert("hi");
	        //alert(document.getElementById("blogPostDescription").value);
			
			if(trim(document.getElementById("blogPostTitle").value)=='')
	        {  
	             msg="please enter Blog Title";
	             displayMessage("BlogTitleErrorId",msg,0);	 
	             return false;	
	        }
			if(trim(document.getElementById("blogPostSummary").value)=='')
	        {  
	             msg="please enter Blog Summary";
	             displayMessage("BlogTitleErrorId",msg,0);	 
	             return false;	
	        }
			if(trim(document.getElementById("blogPostComments").value)=='')
	        {  
	             msg="please enter Blog Comments";
	             displayMessage("BlogTitleErrorId",msg,0);	 
	             return false;	
	        }
			if(trim(document.getElementById("blogPostComments").value)=='')
	        {  
	             msg="please enter Blog Comments";
	             displayMessage("BlogTitleErrorId",msg,0);	 
	             return false;	
	        }
			document.getElementById("blogCreatePost").value=blogCreatePost;  
			document.getElementById(formName).action=HOST_ROOT_PATH_VAR+"Blog/";
			//document.getElementById(formName).submit(); 
			$("form#"+formName).submit();
			//return false; 
	}
	
	
	
	
	
  
	function blogSearch(formName,blogSearch)
	{    
	       
			document.getElementById("blogSearch").value=blogSearch;
			document.getElementById(formName).action=HOST_ROOT_PATH_VAR+"Blog/";
			//document.getElementById(formName).submit(); 
			$("form#"+formName).submit();
			//return false;
			
	}
	
	function blogView(formName,blogHidden)
	{   		    
			document.getElementById("blogListOpenHidden").value='blogOpen'; 
	    	document.getElementById("blogHidden").value=blogHidden;  
			document.getElementById(formName).action=HOST_ROOT_PATH_VAR+"Blog/";
			//document.getElementById(formName).submit(); 
			$("form#"+formName).submit();
		
	}
	
	
	function blogEditDelete(formName,mode,blogId)
	{   		    
			document.getElementById("editBlogId").value=blogId;
			//alert(document.getElementById("editBlogId").value);
			document.getElementById(formName).action=HOST_ROOT_PATH_VAR+"Blog/"+mode+'/';
			//document.getElementById(formName).submit(); 
			$("form#"+formName).submit();
	}
	



