
var ajax = new KuzenAjax();

function ajaxUrlGetir(url,katar)
{	
	ajax.url=url;
	ajax.katar=katar;
	ajax.calistir();	
}


function ajaxDefterFormuGonder()
{
	_oid=document.getElementById('z_oid').value
	_isim=document.getElementById('z_isim').value
	_eposta=document.getElementById('z_eposta').value
	_web=document.getElementById('z_web').value
	_mesaj=document.getElementById('z_mesaj').value
	if(_isim && _eposta && _mesaj)
	{			
		url='act.php';
		katar='oid='+_oid+'&isim='+_isim+'&eposta='+_eposta+'&web='+_web+'&mesaj='+_mesaj

		ajaxUrlGetir(url,katar);	

	}
	else
		alert('Lütfen formdaki zorunlu alanlarý doldurunuz...')
}

function ajaxYorumFormuGonder()
{
	_oid=document.getElementById('y_oid').value
	_sid=document.getElementById('y_sid').value
	_isim=document.getElementById('y_isim').value
	//_eposta=document.getElementById('y_eposta').value
	//_web=document.getElementById('y_web').value
	_mesaj=document.getElementById('y_mesaj').value
	
	if(_isim && _mesaj)
	{			
		url='act.php';
		katar='oid='+_oid+'&sid='+_sid+'&komut=yorum_yaz'+'&isim='+_isim+'&mesaj='+_mesaj

		ajaxUrlGetir(url,katar);	

	}
	else
		alert('Lütfen formdaki zorunlu alanlarý doldurunuz...')
}


function ajaxOyVer()
{
	_oid=document.getElementById('a_oid').value	
	_anket_id=document.getElementById('anket_id').value
	_sec_id=document.getElementById('anket_secenek').value
	_komut='anket'
	
	if(_sec_id)
	{
		url='act.php'
		katar='oid='+_oid+'&sec_id='+_sec_id+'&anket_id='+_anket_id+'&komut='+_komut
		ajaxUrlGetir(url,katar);
	}

	
}

function AjaxSonuclariGor()
{
	_oid=document.getElementById('a_oid').value	
	_anket_id=document.getElementById('anket_id').value
	
	url='act.php'
	katar='oid='+_oid+'&anket_id='+_anket_id+'&komut=anket_goster'
	ajaxUrlGetir(url,katar);
}