var xmlHttp
var currentPopupId = '';
var newElId = '';
var currentyorId = '';
var currentturID = 1;
var currenteventId = '';
var newyorId = '';
var refreshsURL = unescape(window.location.pathname);
var currentsikayetId='';

function centerPrompt(elId, pwidth,pheight) {
	var elObj = elId;
	
//		document.getElementById(elObj).style.zIndex = '3000000'
//	elObj.style.zIndex = '3000000';
	//elObj.setStyle('z-index', 3000000);
	
 var scrolledX, scrolledY;
 if( self.pageYOffset ) {
   scrolledX = self.pageXOffset;
   scrolledY = self.pageYOffset;
 } else if( document.documentElement && document.documentElement.scrollTop ) {
   scrolledX = document.documentElement.scrollLeft;
   scrolledY = document.documentElement.scrollTop;
 } else if( document.body ) {
   scrolledX = document.body.scrollLeft;
   scrolledY = document.body.scrollTop;
 }

 var centerX, centerY;
 if( self.innerHeight ) {
   centerX = self.innerWidth;
   centerY = self.innerHeight;
 } else if( document.documentElement && document.documentElement.clientHeight ) {
   centerX = document.documentElement.clientWidth;
   centerY = document.documentElement.clientHeight;
 } else if( document.body ) {
   centerX = document.body.clientWidth;
   centerY = document.body.clientHeight;
 }

 var leftOffset = scrolledX + (centerX - pwidth) / 2;
 var topOffset = scrolledY + (centerY - pheight) / 2;

 document.getElementById(elObj).style.top = topOffset + "px";
 document.getElementById(elObj).style.left = leftOffset + "px";
}

function hidepopAjax(){document.getElementById(currentPopupId).style.display='none';
currentPopupId=''
}
function popAlreadyOpen() {
	return (currentPopupId != '') ? true : false;
}

function popAjax ( ajURL, pwidth,pheight)
{	
if(popAlreadyOpen()) {
		hidepopAjax();
	}

newElId = 'dyn_' + Math.random();
	oldPopupId = currentPopupId;
	currentPopupId = newElId;
	ajSuccessful = false;

 var newdiv = document.createElement('div');
  newdiv.setAttribute('id', newElId);

  newdiv.style.position = "absolute";
  newdiv.style.width = pwidth + 'px';
//  newdiv.style.zindex = '2000';
  newdiv.style.Height = pheight + 'px';
 document.body.appendChild(newdiv);
centerPrompt(newElId,pwidth,pheight)

xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyor")
		return
	}
	url = ajURL;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
document.getElementById(newElId).innerHTML='<div id=' + newElId + ' class="pencerea"   ><div class=pencereic   style="z-index:5000;">'+xmlHttp.responseText+'</div></div>'
  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
currentPopupId = newElId
}


function pencere_aekle(uyeID) 
{
	//document.getElementById('uyelikkutu').innerHTML='<div class="yukleniyor"><img src="\/images\/yukleniyor_kirmizi.gif" width="16" height="16" \/><\/div>' 

xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyo")
		return
	}

	url = "/tribun/arkadasekle.asp?uyeID=" +uyeID+"";
	 url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=pencere_arkadaseklegetir
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null)
//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText;
	//window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
	}
	
function pencere_arkadaseklegetir() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div><Div class='pencereyazi'>"


if (xmlHttp.responseText==1)
{
	document.getElementById(currentPopupId).innerHTML="Kişiyi listenize ekleyibilmek için üyelik girişi yapınız.";
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_login.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kişiyi listenize ekleyibilmek için üyelik girişi yapınız..</div>"
	}
	
if (xmlHttp.responseText==2)
{
	html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kullanıcı tarafından onay bekleniyor.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
	}

if (xmlHttp.responseText==3)
{		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kullanıcı listenizde zaten mevcut.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	}
if (xmlHttp.responseText==4)
{
		html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>İsteğiniz kullanıcıya iletilmiştir.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
}
if (xmlHttp.responseText==5)
{		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kendinizi Listeye ekliyemezsiniz.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	}
html=html + "</div></div>";
document.getElementById(currentPopupId).innerHTML=html
}
}


function pencere_aekle(uyeID) 
{
	//document.getElementById('uyelikkutu').innerHTML='<div class="yukleniyor"><img src="\/images\/yukleniyor_kirmizi.gif" width="16" height="16" \/><\/div>' 

xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyo")
		return
	}

	url = "/tribun/arkadasekle.asp?uyeID=" +uyeID+"";
	 url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=pencere_arkadaseklegetir
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null)
//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText;
	//window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
	}
	
function pencere_arkadaseklegetir() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div><Div class='pencereyazi'>"


if (xmlHttp.responseText==1)
{
	document.getElementById(currentPopupId).innerHTML="Kişiyi listenize ekleyibilmek için üyelik girişi yapınız.";
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_login.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kişiyi listenize ekleyibilmek için üyelik girişi yapınız..</div>"
	}
	
if (xmlHttp.responseText==2)
{
	html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kullanıcı tarafından onay bekleniyor.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
	}

if (xmlHttp.responseText==3)
{		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kullanıcı listenizde zaten mevcut.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	}
if (xmlHttp.responseText==4)
{
		html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>İsteğiniz kullanıcıya iletilmiştir.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
}
if (xmlHttp.responseText==5)
{		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kendinizi Listeye ekliyemezsiniz.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	}
html=html + "</div></div>";
document.getElementById(currentPopupId).innerHTML=html
}
}


function pencere_rekle(uyeID) 
{
	//document.getElementById('uyelikkutu').innerHTML='<div class="yukleniyor"><img src="\/images\/yukleniyor_kirmizi.gif" width="16" height="16" \/><\/div>' 

xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyo")
		return
	}

	url = "/tribun/rakipekle.asp?uyeID=" +uyeID+"";
	 url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=pencere_rakipeklegetir
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null)
//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText;
	//window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
	}
	
function pencere_rakipeklegetir() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Rakip Ekle</div><div class='ClearB'></div><Div class='pencereyazi'>"


if (xmlHttp.responseText==1)
{
	document.getElementById(currentPopupId).innerHTML="Kişiyi listenize ekleyibilmek için üyelik girişi yapınız.";
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_login.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kişiyi listenize ekleyibilmek için üyelik girişi yapınız..</div>"
	}
	
if (xmlHttp.responseText==2)
{
	html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kullanıcı tarafından onay bekleniyor.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
	}

if (xmlHttp.responseText==3)
{		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kullanıcı listenizde zaten mevcut.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	}
if (xmlHttp.responseText==4)
{
		html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Kullanıcı rakip listenize başarıyla kaydedilmiştir.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
}
if (xmlHttp.responseText==5)
{		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kendinizi Listeye ekliyemezsiniz.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	}

html=html + "</div></div>";
document.getElementById(currentPopupId).innerHTML=html
}
}





function pencere_gizle(uyeID) 
{xmlHttp=GetXmlHttpObject()
if (xmlHttp==null){alert ("Browser desteklemiyo");return;}url = "/tribun/duvargizle.asp?uyeID=" +uyeID+"";url=url+"&tur=0&sid="+Math.random();
xmlHttp.onreadystatechange=pencere_duvardangizlegetir
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null);
	return false;
	}	
function pencere_duvardangizlegetir() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Kullanıcı Gizle</div><div class='ClearB'></div><Div class='pencereyazi'>"


if (xmlHttp.responseText==1)
{
	document.getElementById(currentPopupId).innerHTML="Kişiyi duvarınızdan gizlemek için üyelik girişi yapınız.";
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_login.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kişiyi duvarınızdan gizlemek için üyelik girişi yapınız..</div>"
	}
	
if (xmlHttp.responseText==2)
{
		html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Kullanıcının gönderileri gizlenmiştir.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat' style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>";
	setTimeout("refresh()",2000);
}
if (xmlHttp.responseText==3)
{		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kendinizi gizliyemezsiniz.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	}
html=html + "</div></div>";
document.getElementById(currentPopupId).innerHTML=html;
}
}




function pencere_gizlekaldir(uyeID) 
{xmlHttp=GetXmlHttpObject()
if (xmlHttp==null){alert ("Browser desteklemiyo");return;}url = "/tribun/duvargizle.asp?uyeID=" +uyeID+"";url=url+"&tur=1&sid="+Math.random();
xmlHttp.onreadystatechange=pencere_duvardangizlekaldirgetir
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null);
	return false;
	}	
function pencere_duvardangizlekaldirgetir() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Kullanıcı Gizle</div><div class='ClearB'></div><Div class='pencereyazi'>"


if (xmlHttp.responseText==1)
{
	document.getElementById(currentPopupId).innerHTML="Kişiyi gililiğini kaldırmak için için üyelik girişi yapınız.";
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_login.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kişiyi duvarınızdan gizlemek için üyelik girişi yapınız..</div>"
	}
	
if (xmlHttp.responseText==2)
{
		html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Kullanıcı gizlilikten çıkarılmıştır. Gönderilerini ana sayfanızda görebilirsiniz.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat' style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>";
	setTimeout("refresh()",2000);
}
if (xmlHttp.responseText==3)
{		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kendinizi gizliyemezsiniz.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	}
html=html + "</div></div>";
document.getElementById(currentPopupId).innerHTML=html;
}
}



function pencere_arkadassil(uyeID) 
{xmlHttp=GetXmlHttpObject()
if (xmlHttp==null){alert ("Browser desteklemiyo");return;}url = "/tribun/arkadassil.asp?uyeID=" +uyeID+"";url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=pencere_arkadassilgetir
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null);
	return false;
	}	
function pencere_arkadassilgetir() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Listemden Sil</div><div class='ClearB'></div><Div class='pencereyazi'>"


if (xmlHttp.responseText==1)
{
	document.getElementById(currentPopupId).innerHTML="Kişiyi arkadaş listenizden silmek için üyelik girişi yapınız.";
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_login.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kişiyi duvarınızdan gizlemek için üyelik girişi yapınız..</div>"
	}
	
if (xmlHttp.responseText==2)
{
		html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Kullanıcının arkadaş listenizden silinmiştir.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat' style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>";
	//setTimeout("refresh()",2000);
}
if (xmlHttp.responseText==3)
{		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kendinizi silemezsiniz.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	}
html=html + "</div></div>";
document.getElementById(currentPopupId).innerHTML=html;
}
}



function pencere_rakipsil(uyeID) 
{xmlHttp=GetXmlHttpObject()
if (xmlHttp==null){alert ("Browser desteklemiyo");return;}url = "/tribun/rakipsil.asp?uyeID=" +uyeID+"";
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=pencere_rakipsilgetir
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null);
	return false;
	}	
function pencere_rakipsilgetir() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Rakip Sil</div><div class='ClearB'></div><Div class='pencereyazi'>"


if (xmlHttp.responseText==1)
{
	document.getElementById(currentPopupId).innerHTML="Kişiyi rakip listenizden silmek için üyelik girişi yapınız.";
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_login.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kişiyi duvarınızdan gizlemek için üyelik girişi yapınız..</div>"
	}
	
if (xmlHttp.responseText==2)
{
		html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Kullanıcının rakip listenizden silinmiştir.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>";
	//setTimeout("refresh()",2000);
}
if (xmlHttp.responseText==3)
{		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kendinizi silemezsiniz.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat' style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	}
html=html + "</div></div>";
document.getElementById(currentPopupId).innerHTML=html;
}
}




 function p_makePOSTRequest(url, parameters) { 
   
      http_request = false; 
      if (window.XMLHttpRequest) { // Mozilla, Safari,... 
         http_request = new XMLHttpRequest(); 
         if (http_request.overrideMimeType) { 
             // set type accordingly to anticipated content type 
            //http_request.overrideMimeType('text/xml'); 
            http_request.overrideMimeType('text/html'); 
         } 
      } else if (window.ActiveXObject) { // IE 
	     try { 
            http_request = new ActiveXObject("Msxml2.XMLHTTP"); 
         } catch (e) { 
            try { 
               http_request = new ActiveXObject("Microsoft.XMLHTTP"); 
            } catch (e) {} 
         } 
      } 
      if (!http_request) { 
         alert('Cannot create XMLHTTP instance'); 
         return false; 
      } 

	if (url=='/uye/giris/ajax.asp'){
      http_request.onreadystatechange = alertuyegiris; 
	 } else if (url=='/tribun/mesajgonder.asp'){
      http_request.onreadystatechange = alertmesajgonder; 
	 } 
	 else if (url=='/tribun/mesaj/cevapgonder.asp'){
      http_request.onreadystatechange = alertmesajcevapla; 
	 } 
	  else if (url=='/tribun/durumguncel.asp'){
 
      http_request.onreadystatechange = alertdurumguncel; 

	 } 
	else if (url=='/tribun/event_yorum_ekleajx.asp'){
 
      http_request.onreadystatechange = alerteventyorumekle; 

	 } 
	 	else if (url=='/tribun/sikayetle.asp'){
 
      http_request.onreadystatechange = alerteventsikayetle; 

	 } 
	 
	 else if (url=='/tribun/haber_yorum_ekle.asp'){
 	//alert ("ok");
      http_request.onreadystatechange = alerteventhaberyorumekle; 

	 } 
	 else if (url=='/tribun/haber_sikayet_ekle.asp'){
      http_request.onreadystatechange = habersikayetgonder; 
	 } 
	http_request.open('POST', url, true); 
     
	  http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
	  http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
	  http_request.setRequestHeader("Connection", "close"); 
      http_request.send(parameters); 
	
   } 
   
   
   
function habersikayetgonder() { 

//       document.getElementById('yorumf').innerHTML='<img src="/images/yukleniyor.gif">' 
       if (http_request.readyState == 4) { 
      if (http_request.status == 200) { 
            //alert(http_request.responseText); 
			//var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Mesaj gönder</div><div class='ClearB'></div><Div class='pencereyazi'>";

     document.getElementById(currentsikayetId).innerHTML="<ul class=sikayeteklev3><li style='width:500px' ><div class=yazi><center> <div class=sikayetbaslik><b>Teşekkürler.</b></div><br>Şikayetiniz bize ulaştı. En kısa zamanda incelememizi yapıp gerekli işlemi yapacağız.</center></div></li><div class=clearB></div></ul>"           

//refresh();
//mesajoku(okunanmesaj,mesajtur);
//	html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Giriş başarılı.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  class='iptal'/></div>";

//html=html + "</div></div>";
//document.getElementById(currentPopupId).innerHTML=html

         } else { 
		 alert(http_request.responseText); 
            alert('Bir Problem Oluştu. Lütfen Daha sonra tekrar deneyiniz.'); 
         } 
      } 
   } 


function p_uyegiris(obj) { 
  
     var getstr = "";
  for (i=0; i<obj.getElementsByTagName("input").length; i++) {
        if (obj.getElementsByTagName("input")[i].type == "text") {
           getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
        }
		   if (obj.getElementsByTagName("input")[i].type == "hidden") {
           getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
        }  if (obj.getElementsByTagName("input")[i].type == "password") {
           getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
        }
        if (obj.getElementsByTagName("input")[i].type == "checkbox") {
           if (obj.getElementsByTagName("input")[i].checked) {
              getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
           } else {
              getstr += obj.getElementsByTagName("input")[i].name + "=&";
           }
        }
        if (obj.getElementsByTagName("input")[i].type == "radio") {
           if (obj.getElementsByTagName("input")[i].checked) {
              getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
           }
     }  
     if (obj.getElementsByTagName("input")[i].tagName == "SELECT") {
        var sel = obj.getElementsByTagName("input")[i];
        getstr += sel.name + "=" + sel.options[sel.selectedIndex].value + "&";
     }
     
  }
  p_makePOSTRequest('/uye/giris/ajax.asp', getstr);
}

   function alertuyegiris() { 
       if (http_request.readyState == 4) { 
      if (http_request.status == 200) { 
			var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Üye Girişi</div><div class='ClearB'></div><Div class='pencereyazi'>";



if (http_request.responseText==1){
	html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Giriş başarılı.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>";
setTimeout("refresh()",2000);
}
if (http_request.responseText==2){

	html=html + '<div style="float:left; width:110px; padding:3px;"><img src="/images/p_uyari.gif" width="100"/></div><div class="uyari">Dikkat!</div><div class="yazi1">Şifre Hatalı.</div><div class="clearB"></div></div><div class="pencereenalt"><input type="button" value="Giriş Yap"  onclick="popAjax(\'/uye/giris/pencere_giris.asp?req=1\', 450, 350);"  style="color:#000;  font-size:11px; font-weight:bold;" class="UIButton UIButton_Blue UIActionButton"/><input onclick="hidepopAjax();"  type="button" value="Kapat"  style="color:#000;  font-size:11px; font-weight:bold;" class="UIButton UIButton_Gray UIActionButton"/></div>'
	
}

html=html + "</div></div>";
document.getElementById(currentPopupId).innerHTML=html

         } else { 
            alert('Bir Problem Oluştu. Lütfen Daha sonra tekrar deneyiniz.'); 
         } 
      } 
   } 

function refresh()
{
window.location.href=window.location.href
    //window.location.replace( refreshsURL );
}


 function alertmesajgonder() { 
  
//       document.getElementById('yorumf').innerHTML='<img src="/images/yukleniyor.gif">' 
       if (http_request.readyState == 4) { 
      if (http_request.status == 200) { 
            //alert(http_request.responseText); 
			var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Mesaj gönder</div><div class='ClearB'></div><Div class='pencereyazi'>";


			//alert(http_request.responseText); 
                // document.getElementById(currentPopupId).innerHTML = http_request.responseText;  

//	alert("girisok"); 
if (http_request.responseText == 'maxS' ){
html=html + '<div style="float:left; width:110px; padding:3px;"><img src="/images/p_uyari.gif" width="100"/></div><div class="uyari">Dikkat!</div><div class="yazi1">2. mesajınızı son mesajınızı gönderdikten 10 saniye sonra gönderebilirsiniz.</div><div class="clearB"></div></div>'
	
}else if (http_request.responseText == 'maxM' ){
html=html + '<div style="float:left; width:110px; padding:3px;"><img src="/images/p_uyari.gif" width="100"/></div><div class="uyari">Dikkat!</div><div class="yazi1">1 Dakika içerisinde en fazla 5 mesaj gönderebilirsiniz.</div><div class="clearB"></div></div><div class="pencereenalt"><input onclick="hidepopAjax();"  type="button" value="Kapat"   style="color:#000;  font-size:11px; font-weight:bold;" class="UIButton UIButton_Gray UIActionButton"/></div>'
	}else if (http_request.responseText == 'Engel' ){
html=html + '<div style="float:left; width:110px; padding:3px;"><img src="/images/p_uyari.gif" width="100"/></div><div class="uyari">Dikkat!</div><div class="yazi1">Mesaj gönderirken bir sorun çıktı.</div><div class="clearB"></div></div><div class="pencereenalt"><input onclick="hidepopAjax();"  type="button" value="Kapat"   style="color:#000;  font-size:11px; font-weight:bold;" class="UIButton UIButton_Gray UIActionButton"/></div>'
}else if (http_request.responseText == 'posted' ){
html=html + '<div style="float:left; width:110px; padding:3px;"><img src="/images/p_uyari.gif" width="100"/></div><div class="uyari">Dikkat!</div><div class="yazi1">Son mesajınızla aynı mesajı gönderemezsiniz.</div><div class="clearB"></div></div><div class="pencereenalt"><input onclick="hidepopAjax();"  type="button" value="Kapat"  style="color:#000;  font-size:11px; font-weight:bold;" class="UIButton UIButton_Gray UIActionButton"/></div>'
	
}
else{
	html=html + '<div class="yazi1"><br>Mesajınız başarıyla gönderildi.</div><div class="clearB"></div></div><div class="pencereenalt"><input onclick="hidepopAjax();"  type="button" value="Kapat"  style="color:#000;  font-size:11px; font-weight:bold;" class="UIButton UIButton_Gray UIActionButton"/></div>';}

html=html + "</div></div>";
document.getElementById(currentPopupId).innerHTML=html;

setTimeout("hidepopAjax()",2000);
         } else {
			 alert(http_request.responseText);
            alert('Bir Problem Oluştu. Lütfen Daha sonra tekrar deneyiniz.'); 
         } 
      } 
   } 

 function alertmesajcevapla() { 
  
//       document.getElementById('yorumf').innerHTML='<img src="/images/yukleniyor.gif">' 
       if (http_request.readyState == 4) { 
      if (http_request.status == 200) { 
            //alert(http_request.responseText); 
			//var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Mesaj gönder</div><div class='ClearB'></div><Div class='pencereyazi'>";


			//alert(http_request.responseText); 
                // document.getElementById(currentPopupId).innerHTML = http_request.responseText;  

//alert("cevaplandı"); 
//refresh();
mesajoku(okunanmesaj,mesajtur);
//	html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Giriş başarılı.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  class='iptal'/></div>";

//html=html + "</div></div>";
//document.getElementById(currentPopupId).innerHTML=html

         } else { 
		 alert(http_request.responseText); 
            alert('Bir Problem Oluştu. Lütfen Daha sonra tekrar deneyiniz.'); 
         } 
      } 
   } 

 function alertdurumguncel() { 

//       document.getElementById('yorumf').innerHTML='<img src="/images/yukleniyor.gif">' 
       if (http_request.readyState == 4) { 
      if (http_request.status == 200) { 
            //alert(http_request.responseText); 
			//var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Mesaj gönder</div><div class='ClearB'></div><Div class='pencereyazi'>";

var result = http_request.responseText; 


var mySplitResult = result.split("~");
document.getElementById('dusunce3').innerHTML=mySplitResult[1];
profilicerik(mySplitResult[0],3);
               

//refresh();
//mesajoku(okunanmesaj,mesajtur);
//	html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Giriş başarılı.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  class='iptal'/></div>";

//html=html + "</div></div>";
//document.getElementById(currentPopupId).innerHTML=html

         } else { 
		 alert(http_request.responseText); 
            alert('Bir Problem Oluştu. Lütfen Daha sonra tekrar deneyiniz.'); 
         } 
      } 
   } 




function alerteventsikayetle() { 

//       document.getElementById('yorumf').innerHTML='<img src="/images/yukleniyor.gif">' 
       if (http_request.readyState == 4) { 
      if (http_request.status == 200) { 
            //alert(http_request.responseText); 
			//var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Mesaj gönder</div><div class='ClearB'></div><Div class='pencereyazi'>";

alert("eklendi")
               

//refresh();
//mesajoku(okunanmesaj,mesajtur);
//	html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Giriş başarılı.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  class='iptal'/></div>";

//html=html + "</div></div>";
//document.getElementById(currentPopupId).innerHTML=html

         } else { 
		 alert(http_request.responseText); 
            alert('Bir Problem Oluştu. Lütfen Daha sonra tekrar deneyiniz.'); 
         } 
      } 
   } 




 function alerteventyorumekle() { 

//       document.getElementById('yorumf').innerHTML='<img src="/images/yukleniyor.gif">' 
       if (http_request.readyState == 4) { 
      if (http_request.status == 200) { 
            //alert(http_request.responseText); 
			//var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Mesaj gönder</div><div class='ClearB'></div><Div class='pencereyazi'>";
//var result = http_request.responseText; 
//var mySplitResult = result.split("~");
//document.getElementById('dusunce3').innerHTML=mySplitResult[1];
//profilicerik(mySplitResult[0],3);



yorAjax_eventguncel(http_request.responseText,currentturID);

//refresh();
//mesajoku(okunanmesaj,mesajtur);
//	html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Giriş başarılı.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  class='iptal'/></div>";

//html=html + "</div></div>";
//document.getElementById(currentPopupId).innerHTML=html

         } else { 
		 alert(http_request.responseText); 
            alert('Bir Problem Oluştu. Lütfen Daha sonra tekrar deneyiniz.'); 
         } 
      } 
   } 



function refresh()
{
window.location.href=window.location.href
    //window.location.replace( refreshsURL );
}



function pencere_cikis(){

// capture the mouse position	
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyo")
		return
	}

	url = "/uye/cikis/pencere_cikis.asp?ID=1";
	 url=url+"&sid="+Math.random();

xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {

refresh();
//popAjax('/uye/giris/pencere_giris.asp?req=' +Math.random(), 450, 350);
//alert("oo")
 }
	  
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}


function p_mesajgonder(obj) { 
var poststr = "kime=" + encodeURI(document.getElementById("kime").value)  + "&baslik=" + escape(document.getElementById("baslik").value) + "&mesaj=" + escape(document.getElementById("mesaj151").value); 
//alert(poststr);
      p_makePOSTRequest('/tribun/mesajgonder.asp', poststr); 
}
function p_mesajcevapla(obj) {if (document.getElementById("cevap").value==""){document.getElementById("cevapuyari").style.display='block';return;}
document.getElementById('cevapgonder').innerHTML='<img src="/images/yukleniyor.gif">';document.getElementById('cevap').disabled = true;var poststr = "mID=" + encodeURI(document.getElementById("mid").value)+ "&kime=" + encodeURI(document.getElementById("kime").value)  + "&baslik=" + escape(document.getElementById("baslik").value) + "&cevap=" + escape(document.getElementById("cevap").value);p_makePOSTRequest('/tribun/mesaj/cevapgonder.asp', poststr);}

function p_eventyorumgonder(obj) { 

 document.getElementById("button").disabled = true; 
 document.getElementById("yorum").disabled = true; 

var poststr = "eventID=" + encodeURI(document.getElementById("eventID").value)  + "&yorum=" + escape(document.getElementById("yorum").value); 
//alert(poststr);
      p_makePOSTRequest('/tribun/event_yorum_ekleajx.asp', poststr); 
}
function p_eventhaberyorumgonder(obj){if (document.getElementById("yorumhaber").value==""){document.getElementById("cevapuyari").style.display='block';return;} 
document.getElementById('cevapgonder').innerHTML='<img src="/images/yukleniyor.gif">';
 //document.getElementById("buttonhaber").disabled = true; 
 document.getElementById("yorumhaber").disabled = true; 
var haberID= encodeURI(document.getElementById("HID").value) ;
var poststr = "HID=" + encodeURI(document.getElementById("HID").value)  + "&yorumhaber=" + escape(document.getElementById("yorumhaber").value); 
//alert(poststr);
	
      p_makePOSTRequest('/tribun/haber_yorum_ekle.asp', poststr); 
}

function alerteventhaberyorumekle() { 

//       document.getElementById('yorumf').innerHTML='<img src="/images/yukleniyor.gif">' 
       if (http_request.readyState == 4) { 
      if (http_request.status == 200) { 
            //alert(http_request.responseText); 
			//var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Mesaj gönder</div><div class='ClearB'></div><Div class='pencereyazi'>";
//refresh();
//alert("eklendi");
               
yorum_oku_v3(haberID,1,1);
//refresh();

         } else { 
		 alert(http_request.responseText); 
            alert('Bir Problem Oluştu. Lütfen Daha sonra tekrar deneyiniz.'); 
         } 
      } 
   } 



function mesajoku(mesajID,turID) 
{
	//document.getElementById('uyelikkutu').innerHTML='<div class="yukleniyor"><img src="\/images\/yukleniyor_kirmizi.gif" width="16" height="16" \/><\/div>' 

xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyo")
		return
	}

	url = "/tribun/mesaj/mesajoku_ajax.asp?mesajID=" +mesajID+"&t="+turID+"";
	 url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
document.getElementById('mesaj_' + mesajID).innerHTML=xmlHttp.responseText
  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null)
//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText;
	//window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
	}
function SetAllCheckBoxes(FormName, FieldName, CheckValue)
{

	if(!document.forms[FormName])
		return;
	var objCheckBoxes = document.forms[FormName].elements[FieldName];
	if(!objCheckBoxes)
		return;
	var countCheckBoxes = objCheckBoxes.length;
	if(!countCheckBoxes)
		objCheckBoxes.checked = CheckValue;
	else
		// set the check value for all check boxes
		for(var i = 0; i < countCheckBoxes; i++)
			objCheckBoxes[i].checked = CheckValue;
}
function submitmesajduzelt(i) {
   if (i==1) document.mesajlar.action=
      "/tribun/mesaj/guncelle_hepsi_sil.asp";
   if (i==2) document.mesajlar.action=
      "/tribun/mesaj/guncelle_hepsi_okundu.asp";
   if (i==3) document.mesajlar.action=
      "/tribun/mesaj/guncelle_hepsi_okunmadi.asp";
   document.mesajlar.submit()
   }


function profilicerik(uyeid,tur) 
{
	

xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyo")
		return
	}
if (tur==1){
	url = "/tribun/sonolaylar.asp?pID=" +uyeid+"";
}
if (tur==2){
	url = "/tribun/profil.asp?pID=" +uyeid+"";
}
if (tur==3){
	url = "/tribun/duvarim.asp?pID=" +uyeid+"";
}
	 url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
document.getElementById('profilicerik').innerHTML=xmlHttp.responseText;

}
} 
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null)
//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText;
	//window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
	}
	
function remove_olay(ID,tt) 
{
	//document.getElementById('uyelikkutu').innerHTML='<div class="yukleniyor"><img src="\/images\/yukleniyor_kirmizi.gif" width="16" height="16" \/><\/div>' 

xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyo")
		return
	}

	url = "/tribun/remove_olay.asp?ID=" +ID+"&tt=" +tt;
	 url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=pencere_eventsilgetir

xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null)

hidepopAjax();
yorum_tek_getir(ID);

//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText;
	//window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
	}


	
function pencere_eventsilgetir() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 

//var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Yorum Sil</div><div class='ClearB'></div><Div class='pencereyazi'>"


if (xmlHttp.responseText==1)
{
//	document.getElementById(currentPopupId).innerHTML="Yorum Silebilmek için giriş yapmalısınız.";
	//	html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_login.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kişiyi listenize ekleyibilmek için üyelik girişi yapınız..</div>"
	}
	

if (xmlHttp.responseText==2)
{
	//	html=html + "<div class='yazi1'>Yorumunuz Silinmiştir.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	
}

//html=html + "</div></div>";


//document.getElementById(currentPopupId).innerHTML=html 
//setTimeout("refresh()",2000);

//setTimeout(yorum_oku_v3(haberID,1,0),2000);

//setTimeout(hidepopAjax(),4000);
}
}


function yorum_tek_getir(YID)
{

	
	var yorID2="yorumtek_" + YID +"_543453";
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyor")
		return
	}
	url = "/tribun/haber_yorumlar_yorumtek.asp?YID="+ YID
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
document.getElementById(yorID2).style.display='block';
document.getElementById(yorID2).innerHTML=xmlHttp.responseText
  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)

}


function cevap_tek_getir(CID)
{


	var cvpID2="yor_" + CID +"_ic";
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyor")
		return
	}
	url = "/tribun/haber_yorumlar_cevaptek.asp?c="+ CID
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
document.getElementById(cvpID2).style.display='block';
document.getElementById(cvpID2).innerHTML=xmlHttp.responseText
  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)

}

function uye_kontrol_sayi() 
{
	//document.getElementById('uyelikkutu').innerHTML='<div class="yukleniyor"><img src="\/images\/yukleniyor_kirmizi.gif" width="16" height="16" \/><\/div>' 

xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyo")
		return
	}

	url = "/tribun/sayilar.asp";
url=url+"?sid="+Math.random()
	
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {

document.getElementById('uyeguncel').innerHTML=xmlHttp.responseText;
  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null)
//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText;
	//window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}


function getdurum(obj) { 
document.getElementById('guncelleicon').innerHTML='<div class=""vSpacer2""></div><div class="yukleniyor" style=""padding:7px;""><img src="\/images\/yukleniyor.gif" \/>';
 var poststr = "durum=" + escape(document.getElementById("durum").value);
  p_makePOSTRequest('/tribun/durumguncel.asp', poststr);
   
}

function kontrolsikayet(obj) {
	if (obj.sikayet.value == "0") {
    alert( "Şikayetinizin ne olduğunu belirtiniz" );
	return;
    }
}

function getsikayet(obj) { 


if (obj.sikayet.value == "0") {


popAjax('/tribun/sikayetet.asp?ID='+obj.sikayetedilenID.value+'&tur='+obj.tur.value+'&hata=1', 450, 350);
return;

    }
  
  
 var getstr = "";
  for (i=0; i<obj.getElementsByTagName("input").length; i++) {
        if (obj.getElementsByTagName("input")[i].type == "text") {
           getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
        }
		   if (obj.getElementsByTagName("input")[i].type == "hidden") {
           getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
        }  if (obj.getElementsByTagName("input")[i].type == "password") {
           getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
        }
        if (obj.getElementsByTagName("input")[i].type == "checkbox") {
           if (obj.getElementsByTagName("input")[i].checked) {
              getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
           } else {
              getstr += obj.getElementsByTagName("input")[i].name + "=&";
           }
        }
        if (obj.getElementsByTagName("input")[i].type == "radio") {
           if (obj.getElementsByTagName("input")[i].checked) {
              getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
           }
     }  
     if (obj.getElementsByTagName("input")[i].tagName == "SELECT") {
        var sel = obj.getElementsByTagName("input")[i];
		
		
			
        getstr += sel.name + "=" + sel.options[sel.selectedIndex].value + "&";
     }
       
  }
  
   alert(getstr)
// var poststr = "tur=" + escape(document.getElementById("tur").value);

//  +"&ID="+escape(document.getElementById("id").value)+"&sikayet="+escape(document.getElementById("sikayet").value)
  p_makePOSTRequest('/tribun/sikayetle.asp', getstr);
   
}



function durumsil() 
{
	//document.getElementById('uyelikkutu').innerHTML='<div class="yukleniyor"><img src="\/images\/yukleniyor_kirmizi.gif" width="16" height="16" \/><\/div>' 

xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyo")
		return
	}

	url = "/tribun/durumguncel.asp?durum=5989595";
url=url+"&sid="+Math.random()
	
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
var result = xmlHttp.responseText; 
var mySplitResult = result.split("~");
document.getElementById('dusunce3').innerHTML=mySplitResult[1]; 
//profilicerik(mySplitResult[0],3);
  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null)
//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText;
	//window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function event_beyen(eventID,tur) 
{
	//document.getElementById('uyelikkutu').innerHTML='<div class="yukleniyor"><img src="\/images\/yukleniyor_kirmizi.gif" width="16" height="16" \/><\/div>' 

xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{alert ("Browser desteklemiyo")
	return;}
	url = "/tribun/event_beyen.asp?eventID="+ eventID + "&tur="+ tur;
url=url+"&sid="+Math.random()
	
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {

var result = xmlHttp.responseText; 
var mySplitResult = result.split("~");
if (mySplitResult[0]==999999){
	popAjax("/tribun/girisyapsin.asp?a=0", 450, 350);
	return;
}
var evaltID="eb_" + eventID;
var evaltIDsayi="ebs_" + eventID;
var evID="iconbeyen_" + eventID;
var yorID="yor_" + eventID;
//alert(mySplitResult[0])

if (mySplitResult[0]>0){ 
document.getElementById(evaltIDsayi).innerHTML=mySplitResult[0];
document.getElementById(evaltID).style.display='block';
if (tur=='1'){
 yorAjax(eventID,1)
}else{document.getElementById(yorID).style.display='none';}
}else{
	document.getElementById(evaltID).style.display='none';
	document.getElementById(yorID).style.display='none';
}
document.getElementById(evID).innerHTML=mySplitResult[1];

  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null)
//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText;
	//window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}


function yorAjax (eventID,tur)
{
	currentturID=tur;
	if(yorAlreadyOpen()) {
		hideyorAjax();
	}
	
if(sikayetAlreadyOpen()) {
		hidesikayetAjax();
	
	}

	var yorID="yor_" + eventID;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyor")
		return
	}
	url = "/tribun/event_yorum_ekle.asp?eventID="+ eventID
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
	  if (xmlHttp.responseText==0){
	popAjax("/tribun/girisyapsin.asp?a=0", 450, 350);
	return;
	}
document.getElementById(yorID).style.display='block';
document.getElementById(yorID).height='150px';
document.getElementById(yorID).innerHTML=xmlHttp.responseText
  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
currentyorId = yorID
currenteventId = eventID
}

function yorAjax2(eventID)
{
	
	
	var yorID2="yor_" + eventID;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyor")
		return
	}
	url = "/tribun/event_yorum_ekle.asp?eventID="+ eventID
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
	  if (xmlHttp.responseText==0){
	popAjax("/tribun/girisyapsin.asp?a=0", 450, 350);
	return;
	}
document.getElementById(yorID2).style.display='block';
document.getElementById(yorID2).innerHTML=xmlHttp.responseText
  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)

}
function hideyorAjax(){
	document.getElementById(currentyorId).innerHTML='';
document.getElementById(currentyorId).style.display='none';
	//document.getElementById(currentyorId).style.display='none';
currentyorId=''
currenteventId=''
}

function yorAlreadyOpen() {
	return (currentyorId != '') ? true : false;
}



function yorAjax_eventguncel(eventIDs,tur)
{
	var yorIDev="yraltgun_" + eventIDs;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyor")
		return
	}
	url = "/tribun/event_yorum_guncelle.asp?eventID="+ eventIDs +"&kac="+ tur
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
document.getElementById(yorIDev).style.display='block';
document.getElementById(yorIDev).innerHTML=xmlHttp.responseText
if (tur==1){
yorAjax2(eventIDs);

}
else
{var yorsID="yor_" + eventIDs;
var yorsustID="yorust_" + eventIDs;
//document.getElementById(yorsID).innerHTML='<a  href="javascript:void(0);" onclick="yorAjax('+ eventIDs +',2)">Cevapla2</a>'
document.getElementById(yorsustID).innerHTML='<a  href="javascript:void(0);" onclick="yorAjax('+ eventIDs +',2)">Cevapla</a>'

}
  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)

}

function pencere_taraftar(takimID,sp,t,a)
{
	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyor")
		return
	}
	
	url = "/tribun/tekle.asp?takimID="+ takimID +"&sp="+ sp +"&t="+ t +"&a="+ a
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
	

if (xmlHttp.responseText==1)
{  var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Taraftar Ol</div><div class='ClearB'></div><Div class='pencereyazi'>"
//	document.getElementById(currentPopupId).innerHTML="Kişiyi listenize ekleyibilmek için üyelik girişi yapınız.";
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_login.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Takımın taraftarı olmak için üyelik girişi yapınız..</div>"
	}
	
	if (xmlHttp.responseText==2)
{  var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Taraftar Ol</div><div class='ClearB'></div><Div class='pencereyazi'>"
		html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Seçtiğiniz Takımın taraftarı oldunuz. Takımın logosu profil sayfanıza eklenmiştir.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
}
	if (xmlHttp.responseText==3)
{  var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Taraftarlıktan Çık</div><div class='ClearB'></div><Div class='pencereyazi'>"
		html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Seçtiğiniz Takımın taraftarı olmaktan çıktınız. Takımın logosu profil sayfanızdan silinmiştir.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
}
	if (xmlHttp.responseText==4)
{  var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Rakip Ol</div><div class='ClearB'></div><Div class='pencereyazi'>"
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Takım listenizde zaten mevcut.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
}
if (xmlHttp.responseText==5)
{  var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Taraftar Ol</div><div class='ClearB'></div><Div class='pencereyazi'>"
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Takım listenizde zaten mevcut.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
}


if (xmlHttp.responseText==8)
{  var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Rakip Ol</div><div class='ClearB'></div><Div class='pencereyazi'>"
		html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Seçtiğiniz Takımın rakibi oldunuz. Takımın logosu profil sayfanıza eklenmiştir.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
}
	if (xmlHttp.responseText==6)
{  var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Rakip Ol</div><div class='ClearB'></div><Div class='pencereyazi'>"
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_uyari.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Takım listenizde zaten mevcut.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
}
if (xmlHttp.responseText==9)
{  var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Rakiplikten Çık</div><div class='ClearB'></div><Div class='pencereyazi'>"
		html=html + "<div class='tebrik'>Tebrikler!</div><div class='yazi1'>Seçtiğiniz Takımın rakibi olmaktan çıktınız. Takımın logosu profil sayfanızdan silinmiştir.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
}
html=html + "</div></div>";
document.getElementById(currentPopupId).innerHTML=html
//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText	
  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)

}



function pencere_yorumsil(ID,tt) 
{
	//document.getElementById('uyelikkutu').innerHTML='<div class="yukleniyor"><img src="\/images\/yukleniyor_kirmizi.gif" width="16" height="16" \/><\/div>' 

xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyo")
		return
	}

	url = "/tribun/yorumsil2.asp?ID=" +ID+"&tt=" +tt+"";
	 url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=pencere_yorumsilgetir
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null)
//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText;
hidepopAjax();
cevap_tek_getir(ID);	
//window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
	}
	
function pencere_yorumsilgetir() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Cevap Sil</div><div class='ClearB'></div><Div class='pencereyazi'>"


if (xmlHttp.responseText==1)
{
	document.getElementById(currentPopupId).innerHTML="Cevap Silebilmek için giriş yapmalısınız.";
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_login.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kişiyi listenize ekleyibilmek için üyelik girişi yapınız..</div>"
	}
	

if (xmlHttp.responseText==2)
{
	hidepopAjax();
}
//html=html+ xmlHttp.responseText
html=html + "</div></div>";
//html=xmlHttp.responseText
document.getElementById(currentPopupId).innerHTML=html 



}
}






function pencere_engelle(ID)
{
	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyor")
		return
	}
	
	url = "/tribun/engelle.asp?ID="+ ID+"&tur=1"
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
	

if (xmlHttp.responseText==1)
{  var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Kişiyi Engelle</div><div class='ClearB'></div><Div class='pencereyazi'>"
//	document.getElementById(currentPopupId).innerHTML="Kişiyi listenize ekleyibilmek için üyelik girişi yapınız.";
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_login.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kişiyi engellemek için giriş yapınız..</div>"
	}
	
	if (xmlHttp.responseText==2)
{  var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Kişiyi Engelle</div><div class='ClearB'></div><Div class='pencereyazi'>";
		html=html + "<div class='yazi1'>Seçmiş olduğunuz kullanıcı engellenmiştir. Engellenenleri kaldırmak için gizlilik sayfamıza tıklayın.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>";
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
		setTimeout("refresh()",2000);
}

if (xmlHttp.responseText==5)
{  var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Kişiyi Engelle</div><div class='ClearB'></div><Div class='pencereyazi'>"
		html=html + "<div class='yazi1'>Kendinizi engelliyemezsiniz.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>"
	//document.getElementById(currentPopupId).innerHTML="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Arkadaş Ekle</div><div class='ClearB'></div></div></div>";
}
html=html + "</div></div>";
document.getElementById(currentPopupId).innerHTML=html
//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText	
  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)

}


function pencere_engelkaldir(ID)
{
	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyor")
		return
	}
	
	url = "/tribun/engelle.asp?ID="+ ID +"&tur=2"
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
	

if (xmlHttp.responseText==1)
{  var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Kişinin Engelini Kaldır</div><div class='ClearB'></div><Div class='pencereyazi'>"
//	document.getElementById(currentPopupId).innerHTML="Kişiyi listenize ekleyibilmek için üyelik girişi yapınız.";
		html=html + "<div style='float:left; width:110px; padding:3px;'><img src='/images/p_login.gif' width='100'/></div><div class='uyari'>Dikkat!</div><div class='yazi1'>Kişinin engelini kaldırmak için giriş yapınız..</div>"
	}
	
	if (xmlHttp.responseText==2)
{  var html="<div id=" + currentPopupId + " class=pencerea  ><div class=pencereic><div class='pencerebaslik'>Kişinin Engelini Kaldır</div><div class='ClearB'></div><Div class='pencereyazi'>";
		html=html + "<div class='yazi1'>Kullanıcının engeli kaldırılmıştır. Listenize ekleme talebi ve mesaj gönderebilirsiniz.</div><div class='clearB'></div></div><div class='pencereenalt'><input onclick='hidepopAjax();'  type='button' value='Kapat'  style='color:#000;  font-size:11px; font-weight:bold;' class='UIButton UIButton_Gray UIActionButton'/></div>";
	setTimeout("refresh()",2000);
}

html=html + "</div></div>";
document.getElementById(currentPopupId).innerHTML=html
//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText	
  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)

}


function sikayetet_e(YID,t) 
{
	
	  
	//document.getElementById('uyelikkutu').innerHTML='<div class="yukleniyor"><img src="\/images\/yukleniyor_kirmizi.gif" width="16" height="16" \/><\/div>' 
if(yorAlreadyOpen()) {
		hideyorAjax();
	}

if(sikayetAlreadyOpen()) {
		hidesikayetAjax();
	
	}
if (t==1){
currentsikayetId ="esikayet_" + YID	
}
if (t==2){

currentsikayetId ="ysikayet_" + YID	
}
 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser desteklemiyo")
		return
	}

	url = "/tribun/sikayet_habery.asp?YID=" +YID+"&t="+t+"";
	 url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
if (xmlHttp.responseText==0){
	popAjax("/tribun/girisyapsin.asp?a=0", 450, 350);
	return;
	  }
document.getElementById(currentsikayetId).innerHTML=xmlHttp.responseText
document.getElementById(currentsikayetId).style.display='block';
if (t==1){
currentsikayetId ="esikayet_" + YID	
}
if (t==2){

currentsikayetId ="ysikayet_" + YID	
}
  }
} 
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
xmlHttp.send(null)
//document.getElementById(currentPopupId).innerHTML=xmlHttp.responseText;
	//window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
	}

function sikayetAlreadyOpen() {
 
	return (currentsikayetId != '') ? true : false;
}
function hidesikayetAjax(){
	document.getElementById(currentsikayetId).innerHTML='';
document.getElementById(currentsikayetId).style.display='none';
	//document.getElementById(currentyorId).style.display='none';
currentsikayetId='';
 
}


function sikayet_gonder(obj) { 
//  document.getElementById(currentsikayetId).innerHTML="ok";
     var getstr = "";
  for (i=0; i<obj.getElementsByTagName("input").length; i++) {
        if (obj.getElementsByTagName("input")[i].type == "text") {
           getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
        }
		   if (obj.getElementsByTagName("input")[i].type == "hidden") {
           getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
        }  if (obj.getElementsByTagName("input")[i].type == "password") {
           getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
        }
        if (obj.getElementsByTagName("input")[i].type == "checkbox") {
           if (obj.getElementsByTagName("input")[i].checked) {
              getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
           } else {
              getstr += obj.getElementsByTagName("input")[i].name + "=&";
           }
        }
        if (obj.getElementsByTagName("input")[i].type == "radio") {
           if (obj.getElementsByTagName("input")[i].checked) {
              getstr += obj.getElementsByTagName("input")[i].name + "=" + 
                   obj.getElementsByTagName("input")[i].value + "&";
           }
     }  
     if (obj.getElementsByTagName("input")[i].tagName == "SELECT") {
        var sel = obj.getElementsByTagName("input")[i];
        getstr += sel.name + "=" + sel.options[sel.selectedIndex].value + "&";
     }
     
  }
  
	  getstr += "sikayetic=" + escape(document.getElementById("sikayetic").value);
	
    //  document.getElementById(currentsikayetId).innerHTML="<ul class=sikayeteklev3><li ><div class=yazi><center><br /><br /><img src=/images/yukleniyor2.gif width=43 height=11 /><br /><br /></center></div></li><div class=clearB></div></ul>"           



  p_makePOSTRequest('/tribun/haber_sikayet_ekle.asp', getstr);
}
