 function xunescape(utftext) {
 utftext = utftext.replace("%C4%B1","ý");
utftext = utftext.replace("%C4%9F","ð");
utftext = utftext.replace("%C3%96","Ö");
utftext = utftext.replace("%C3%B6","ö");
utftext = utftext.replace("%C3%9C","Ü");
utftext = utftext.replace("%C3%BC","ü");
utftext = utftext.replace("%C4%9E","Ð");
utftext = utftext.replace("%C5%9E","Þ");
utftext = utftext.replace("%C5%9F","þ");
utftext = utftext.replace("%C4%B0","Ý");
utftext = utftext.replace("%C3%A7","ç");
utftext = utftext.replace("%C3%87","Ç");
utftext = utftext.replace("%27","'");
utftext = utftext.replace('%22','"');
utftext = utftext.replace('%2C',',');
utftext = utftext.replace('%2E','.');
utftext = utftext.replace('%26','&');
utftext = utftext.replace('%3F','?');
return utftext;
	
	}


function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
} 

var blogPage = 1;
var xmlHttp2;
function showBlogPage(pid){
xmlHttp2= GetXmlHttpObject();
if (xmlHttp2==null){
  alert ("Tarayiciniz AJAX desteklemiyor!");
  return;
} 
var url="../memberpage/blogajax.php?pg="+pid;

xmlHttp2.onreadystatechange=blogResponse;
xmlHttp2.open("GET",url,true);
xmlHttp2.send(null);
}

function blogNext(){
if(blogPage<=9){
blogPage = blogPage+1;
showBlogPage(blogPage);
}
}

function onPicError(){
this.src = "../memberpage/nullavatar.gif";
}

function blogPrev(){
if(blogPage>=2){
blogPage = blogPage-1;
showBlogPage(blogPage);
}
}

function blogPageCount(){
document.getElementById("pageName").innerText  = blogPage;
}

function blogClick(id){
location.href='../memberpage/showblog.php?id='+id;
}
function blogResponse(){ 
if (xmlHttp2.readyState==4){ 
var dco = xmlHttp2.responseText;
if(dco==""){
return;
}

document.getElementById("blogcontent").innerHTML = xunescape(dco);
//alert("ok"+dco);
blogPageCount();
}
}

