	function nesneyarat() {
		var nesne;var tarayici = navigator.appName;
		if(tarayici == "Microsoft Internet Explorer"){ 
			nesne = new ActiveXObject("Microsoft.XMLHTTP");
		} else { 
			nesne = new XMLHttpRequest();
		}
		return nesne;
	} 
	var http = nesneyarat();
	function ajx(sayfa,deger,yer) {
		http.open('get', sayfa + '?' + deger); 
		http.onreadystatechange = cevapFonksiyonu;
		http.send(null);
	function cevapFonksiyonu() {
		if(http.readyState == 4) {
			document.getElementById(yer).innerHTML = http.responseText;
		} else { 
			if(http.readyState == 1) {
				document.getElementById(yer).innerHTML = "<center><img src='tasarim/img/yuklen.gif'> <br />Yukleniyor</center>";
			}
		}
	}
	} 
	
	function yorumGonder(id) {
		var nick;
		var yorum;
		var gkod;
		nick = document.yorum.nick.value;
		yorum = document.yorum.yorum.value;
		gkod = document.yorum.guvenlik.value;
		ajx('yorum.php', 'kayit&nick='+nick+'&yorum='+yorum+'&gkod='+gkod+'&id='+id, 'scrol');
	}	
	
	function oylasec(kac)
	{
		if(kac == '1') {
			document.getElementById('oyla1').src='tasarim/img/resim_oys.png';
			document.getElementById('oyla5').src='tasarim/img/resim_oy.png';
			document.getElementById('oyla4').src='tasarim/img/resim_oy.png';
			document.getElementById('oyla3').src='tasarim/img/resim_oy.png';
			document.getElementById('oyla2').src='tasarim/img/resim_oy.png';
		}else if(kac == '2') {
			document.getElementById('oyla1').src='tasarim/img/resim_oys.png';
			document.getElementById('oyla2').src='tasarim/img/resim_oys.png';
			
			document.getElementById('oyla5').src='tasarim/img/resim_oy.png';
			document.getElementById('oyla4').src='tasarim/img/resim_oy.png';
			document.getElementById('oyla3').src='tasarim/img/resim_oy.png';

		}else if(kac == '3') {
			document.getElementById('oyla1').src='tasarim/img/resim_oys.png';
			document.getElementById('oyla2').src='tasarim/img/resim_oys.png';
			document.getElementById('oyla3').src='tasarim/img/resim_oys.png';
			
			document.getElementById('oyla5').src='tasarim/img/resim_oy.png';
			document.getElementById('oyla4').src='tasarim/img/resim_oy.png';
		}else if(kac == '4') {
			document.getElementById('oyla1').src='tasarim/img/resim_oys.png';
			document.getElementById('oyla2').src='tasarim/img/resim_oys.png';
			document.getElementById('oyla3').src='tasarim/img/resim_oys.png';
			document.getElementById('oyla4').src='tasarim/img/resim_oys.png';
			
			document.getElementById('oyla5').src='tasarim/img/resim_oy.png';
		}else if(kac == '5') {
			document.getElementById('oyla1').src='tasarim/img/resim_oys.png';
			document.getElementById('oyla2').src='tasarim/img/resim_oys.png';
			document.getElementById('oyla3').src='tasarim/img/resim_oys.png';
			document.getElementById('oyla4').src='tasarim/img/resim_oys.png';
			document.getElementById('oyla5').src='tasarim/img/resim_oys.png';
		}
	}
	
	function oyver(id,oy,nere) {
		ajx('ayar/oy.php','id='+id+'&oy='+oy,nere);
	}
	
	function renkdegis(renk) {
		document.xx.s.value = '';
		document.xx.s.value = '<script src="http://www.resimbulmaca.com/sitene/a.php?renk='+renk+'" type="text/javascript"></script>';
	}
