	function ajaxx()
			{
				var deger1 = document.usergirisform.kullaniciadi.value;
				divId = 'kullgirisitab'; // ID of Div which will recover the result.
				url = 'islem.php?user='+deger1; // 'HTML file to be called' ext *.php, *.inc, ...
				loader = '<br><br><br><img src="js/lib/loading.gif" alt="..." />'; // 'html for loading' or false
				effect = 'highlight'; // 'appear' , 'blind' , 'highlight' or false
				ecache = false; //cache for html file true or false
				$ajaxload(divId, url, loader, effect, ecache);
			}
			
	function tumkat()
			{document.getElementById('tumkat').style.display='';

				divId = 'tumkat'; // ID of Div which will recover the result.
				url = 'ajaxla.php?goster=kategoriler'; // 'HTML file to be called' ext *.php, *.inc, ...
				loader = '<center><img src="media/js/lib/loadinglarge.gif" /></center>'; // 'html for loading' or false
				effect = 'highlight'; // 'appear' , 'blind' , 'highlight' or false
				ecache = false; //cache for html file true or false
				$ajaxload(divId, url, loader, effect, ecache);
			}
	function oyunac(oyunsef)
			{

				divId = 'wrapper'; // ID of Div which will recover the result.
				url = 'ajaxla.php?goster=oyun&sef='+oyunsef; // 'HTML file to be called' ext *.php, *.inc, ...
				loader = '<br><br><br><center><img src="media/js/lib/loadinglarge.gif" /></center>'; // 'html for loading' or false
				effect = 'highlight'; // 'appear' , 'blind' , 'highlight' or false
				ecache = false; //cache for html file true or false
				$ajaxload(divId, url, loader, effect, ecache);
			}
	function sideoyunac(oyunsef)
			{

				divId = 'wrapper'; // ID of Div which will recover the result.
				url = 'ajaxla.php?goster=oyun&sef='+oyunsef; // 'HTML file to be called' ext *.php, *.inc, ...
				loader = '<br><br><br><br><br><br><br><br><br><br><br><br><center><img src="media/js/lib/loadinglarge.gif" /></center>'; // 'html for loading' or false
				effect = 'highlight'; // 'appear' , 'blind' , 'highlight' or false
				ecache = false; //cache for html file true or false
				$ajaxload(divId, url, loader, effect, ecache);
			}
	function sayfaac(sayfa)
			{

				divId = 'wrapper'; // ID of Div which will recover the result.
				url = 'ajaxla.php?goster=sayfaac&sayfa='+sayfa; // 'HTML file to be called' ext *.php, *.inc, ...
				loader = '<br><br><br><br><center><img src="media/js/lib/loadinglarge.gif" /></center>'; // 'html for loading' or false
				effect = 'highlight'; // 'appear' , 'blind' , 'highlight' or false
				ecache = false; //cache for html file true or false
				$ajaxload(divId, url, loader, effect, ecache);
			}			
			
			
			
	function fav_ekle(oyunid)
			{

				divId = 'favori'; // ID of Div which will recover the result.
				url = 'fav_ekle.php?oyunid='+oyunid; // 'HTML file to be called' ext *.php, *.inc, ...
				loader = '<center><img src="media/js/lib/loading.gif" /></center>'; // 'html for loading' or false
				effect = 'highlight'; // 'appear' , 'blind' , 'highlight' or false
				ecache = false; //cache for html file true or false
				$ajaxload(divId, url, loader, effect, ecache);
			}			
			
			
	function divkapat(div)
			{
				$blindup(div,900);
			}			

	function mesajsil(id,kim)
	{
	window.location = "mesajsil.php?kim="+kim+"&id="+id;
	
	}
	function mesajsilonay(id,kim)
	
	{
	var x=window.confirm("Mesajinizi silmek uzeresiniz... \n Silmek icin TAMAM  iptal icin VAZGEC tusuna basiniz...")

		if (x) {
		mesajsil(id,kim)
		}
		

	}


			


					
			
var dizi = new Array();

function ogetir(id){
divId = 'oylama'; // ID of Div which will recover the result.
url = 'puanlama/oyal2.php?id='+id; // 'HTML file to be called' ext *.php, *.inc, ...
loader = '<p>yukleniyor</p>'; // 'html for loading' or false
effect = 'appear'; // 'appear' , 'blind' , 'highlight' or false
ecache = false; //cache for html file true or false
$ajaxload(divId, url, loader, effect, ecache);
}

function omover(kacinci){
		
	for(i = 1; i <= 5; i++) {
		dizi[i] = document.getElementById('y'+i).src;
		
	}
	for(k = 1; k <= kacinci; k++) {
		
		document.getElementById('y'+k).src = 'puanlama/resimler/yasari.gif';
	}
	
	
	
}

function omout(){
for(k = 1; k <= 6; k++) {
	document.getElementById('y'+k).src =dizi[k];		
	}

}

function oclick(id,puani){


divId = 'oylama'; // ID of Div which will recover the result.
url = 'puanlama/oyver2.php?id='+id+'&puan='+puani; // 'HTML file to be called' ext *.php, *.inc, ...
loader = '<br><img src="media/js/lib/loading.gif" />'; // 'html for loading' or false
effect = 'highlight'; // 'appear' , 'blind' , 'highlight' or false
ecache = false; //cache for html file true or false
$ajaxload(divId, url, loader, effect, ecache);
}
			
			
	function yorumgonder()
			{

				divId = 'wrapper'; // ID of Div which will recover the result.
				url = 'ajaxla.php?goster=sayfaac&sayfa='+sayfa; // 'HTML file to be called' ext *.php, *.inc, ...
				loader = '<br><br><br><br><center><img src="media/js/lib/loadinglarge.gif" /></center>'; // 'html for loading' or false
				effect = 'highlight'; // 'appear' , 'blind' , 'highlight' or false
				ecache = false; //cache for html file true or false
				$ajaxload(divId, url, loader, effect, ecache);
			}

	function xyorumgonder(id,isim,eposta,websitesi,yorum)
			{

				divId = 'yorumyazwrapperid'; // ID of Div which will recover the result.
				url = 'xyorumla.php?islem=yaz&id='+id+'&isim='+isim+'&eposta='+eposta+'&websitesi='+websitesi+'&yorum='+yorum; // 'HTML file to be called' ext *.php, *.inc, ...
				loader = '<br><br><br><br><center><img src="media/js/lib/loadinglarge.gif" /></center>'; // 'html for loading' or false
				effect = 'highlight'; // 'appear' , 'blind' , 'highlight' or false
				ecache = false; //cache for html file true or false
				$ajaxload(divId, url, loader, effect, ecache);
			}
	function xyorumgoster(id)
			{

				divId = 'yorumyazwrapperid'; // ID of Div which will recover the result.
				url = 'xyorumla.php?islem=form&id='+id; // 'HTML file to be called' ext *.php, *.inc, ...
				loader = '<br><br><br><br><center><img src="media/js/lib/loadinglarge.gif" /></center>'; // 'html for loading' or false
				effect = 'highlight'; // 'appear' , 'blind' , 'highlight' or false
				ecache = false; //cache for html file true or false
				$ajaxload(divId, url, loader, effect, ecache);
			}
	function xkulllogin(user,pass)
			{

				divId = 'kullgirisitab'; // ID of Div which will recover the result.
				url = 'xgiris.php?user='+user+'&pass='+pass; // 'HTML file to be called' ext *.php, *.inc, ...
				loader = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; <img src="media/js/lib/loading.gif" />'; // 'html for loading' or false
				effect = 'highlight'; // 'appear' , 'blind' , 'highlight' or false
				ecache = false; //cache for html file true or false
				$ajaxload(divId, url, loader, effect, ecache);
			}
	function xsifre()
			{	document.getElementById('xsifreunut').style.display='block';

				divId = 'xsifreunut'; // ID of Div which will recover the result.
				url = 'xsifreunuttum.php'; // 'HTML file to be called' ext *.php, *.inc, ...
				loader = '&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; <img src="media/js/lib/loading.gif" />'; // 'html for loading' or false
				effect = 'appear'; // 'appear' , 'blind' , 'highlight' or false
				ecache = false; //cache for html file true or false
				$ajaxload(divId, url, loader, effect, ecache);
			}
function xtimesifre()
{
	document.getElementById('xsifreunut').style.display='none';
	
	setTimeout('xsifre()', 1000)

}
		
			
 
var Url = {
 
	// public method for url encoding
	encode : function (string) {
		return escape(this._utf8_encode(string));
	},
 
	// public method for url decoding
	decode : function (string) {
		return this._utf8_decode(unescape(string));
	},
 
	// private method for UTF-8 encoding
	_utf8_encode : function (string) {
		string = string.replace(/\r\n/g,"\n");
		var utftext = "";
 
		for (var n = 0; n < string.length; n++) {
 
			var c = string.charCodeAt(n);
 
			if (c < 128) {
				utftext += String.fromCharCode(c);
			}
			else if((c > 127) && (c < 2048)) {
				utftext += String.fromCharCode((c >> 6) | 192);
				utftext += String.fromCharCode((c & 63) | 128);
			}
			else {
				utftext += String.fromCharCode((c >> 12) | 224);
				utftext += String.fromCharCode(((c >> 6) & 63) | 128);
				utftext += String.fromCharCode((c & 63) | 128);
			}
 
		}
 
		return utftext;
	},
 
	// private method for UTF-8 decoding
	_utf8_decode : function (utftext) {
		var string = "";
		var i = 0;
		var c = c1 = c2 = 0;
 
		while ( i < utftext.length ) {
 
			c = utftext.charCodeAt(i);
 
			if (c < 128) {
				string += String.fromCharCode(c);
				i++;
			}
			else if((c > 191) && (c < 224)) {
				c2 = utftext.charCodeAt(i+1);
				string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
				i += 2;
			}
			else {
				c2 = utftext.charCodeAt(i+1);
				c3 = utftext.charCodeAt(i+2);
				string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
				i += 3;
			}
 
		}
 
		return string;
	}
 
}

function urlee(deger)
{
	var ydeger = Url.encode(deger);
	return ydeger ; 
	
	
	}
	