function EditBlogCategories() 
{
	var f = document.frmViewBlog;
	{
		f.txtEditCategories.value = "Yes";
		f.submit();			
	}
}
function SwitchCategory() 
{
	var f = document.frmViewBlog;
	{
		f.txtSwitchCategory.value = "Yes";
		f.submit();			
	}
}
function DeleteCategory(catid,seed,ac) 
{
		var f = document.frmViewBlog;
		var Verify=confirm("Are you sure you wish to delete this category?");
		if (Verify == true)
		{
			f.txtDeleteCategory.value = catid;
			f.Seed.value = seed;
			f.AC.value = ac;
			f.submit();			
		}
}
function RemoveInterest() 
{
		var f = document.frmViewBlog;
		var Verify=confirm("Are you sure you wish to delete this item?");
		if (Verify == true)
		{
			f.txtRemoveInterest.value = "Yes";
			f.submit();			
		}
}
function DeleteComment(id,seed,ac) 
{
		var f = document.frmViewBlog;
		var Verify=confirm("Are you sure you wish to delete this comment?");
		if (Verify == true)
		{
			f.txtDeleteComment.value = id;
			f.Seed.value = seed;
			f.AC.value = ac;
			f.submit();			
		}
}
function MakeComment(blogid,parentid, depth) 
{
		var f = document.frmViewBlog;
		{
			f.BlogID.value = blogid;	
			f.txtMakeComment.value = parentid;
			f.txtParentDepth.value = depth;
			f.submit();			
		}
}

function showpreview(object) {
	if (document.layers && document.layers[object]) {
		document.layers[object].visibility = 'visible';
	} else if (!document.all && document.getElementById) {
		document.getElementById(object).style.visibility = 'visible';
	} else if (document.getElementById) {
		document.getElementById(object).style.visibility = 'visible';
	}
}
function hidepreview(object) {
	if (document.layers && document.layers[object]) {
		document.layers[object].visibility = 'hidden';
	} else if (!document.all && document.getElementById) {
		document.getElementById(object).style.visibility = 'hidden';
	} else if (document.getElementById) {
		document.getElementById(object).style.visibility = 'hidden';
	}
}
