function displayEditLinks(bDisplay)
{
 	var listLinks = document.getElementsByName("listlinks");
	var iIndex = 0;
	var iCount = listLinks.length;
	var strStyle = "inline";
	if (!bDisplay)
	   strStyle = "none";
	for (iIndex = 0; iIndex < iCount; iIndex++)
		listLinks.item(iIndex).style.display = strStyle;
}

		function editPost(postCode) {
		    //OLD version
		 	document.frmEdit.code.value = postCode;
		 	document.frmEdit.submit();
		 	//NEW VERSION BY BASHIR:12/09/2010
		 	window.open("edit/myblog.asp?edit=1&action=edit&postCode=" + postCode, "_self");
		}

   	   	  	  function goToArchive(blogPeriod, blogCode)
			  {
				 var url = "tblogread.asp?blog=";
				 url += blogCode;
				 url += "&year=";
				 url += blogPeriod.substring(0, 4);
				 url += "&month=";
				 url += blogPeriod.substring(4);
				 window.location.href = url;
			  }

			  function openLogin()
			  {
			   	 window.open('winlogin.asp?goto=blogedit.asp', '', 'scrollbars,resizable,status,width=240,height=250')
			  }

			  

