
function s_haber_yorum_gonder(){
	var haberID =$("#s_yorum_yaz #id").val();
	var adSoyad =$("#s_yorum_yaz #adsoyad").val();
	var yorum =$("#s_yorum_yaz #yorum").val();
	$.ajax({
		type : "POST",
		url : "inc/s_haberyorumgonder.php",
		data : "id="+haberID+"&adsoyad="+adSoyad+"&yorum="+yorum,
		success: function(html){
   			$("#s_yorum_yaz").fadeOut("slow",function(){
				$("#s_yorum_formu").html(html);
			});
 		}
	});
	return false;
}

function haber_yorum_gonder(){
	var haberID =$("#yorum_yaz #id").val();
	var adSoyad =$("#yorum_yaz #adsoyad").val();
	var yorum =$("#yorum_yaz #yorum").val();
	$.ajax({
		type : "POST",
		url : "inc/haberyorumgonder.php",
		data : "id="+haberID+"&adsoyad="+adSoyad+"&yorum="+yorum,
		success: function(html){
   			$("#yorum_yaz").fadeOut("slow",function(){
				$("#yorum_formu").html(html);
			});
 		}
	});
	return false;
}
function makale_yorum_gonder(){
	var yaziID =$("#yorum_yaz #id").val();
	var adSoyad =$("#yorum_yaz #adsoyad").val();
	var yorum =$("#yorum_yaz #yorum").val();
	$.ajax({
		type : "POST",
		url : "inc/makaleyorumgonder.php",
		data : "id="+yaziID+"&adsoyad="+adSoyad+"&yorum="+yorum,
		success: function(html){
   			$("#yorum_yaz").fadeOut("slow",function(){
				$("#yorum_formu").html(html);
			});
 		}
	});
	return false;
}

function uye_faaliyet(id){
	$.ajax({
		type : "POST",
		url : "inc/uyefaaliyetgetir.php",
		data : "id="+id,
		success: function(html){
   			$("#uyeIcerik").html(html);
 		}
	});
}

function uye_ithalat(id){
	$.ajax({
		type : "POST",
		url : "inc/uyeithalatgetir.php",
		data : "id="+id,
		success: function(html){
   			$("#uyeIcerik").html(html);
 		}
	});
}

function uye_iletisim(id){
	$.ajax({
		type : "POST",
		url : "inc/uyeiletisim.php",
		data : "id="+id,
		success: function(html){
   			$("#uyeIcerik").html(html);
 		}
	});
}

function tab_tikla(id){
	$(".uyeLink").css("background-image","url(images/tab.jpg)");
	$("#uyeLink"+id).css("background-image","url(images/tab1.jpg)");
	
	}

function aramaKontrol(){
	var sektor =$("#g_uyearama #sektor").val();
	if(sektor>0){
		return true;
	}
	else{
		alert("Arama Yapmak İçin Bir Sektör Seçmelisiniz");
		return false;
	}
 } 
function resim_getir(id){
	$.ajax({
		type : "POST",
		url : "inc/resimgetir.php",
		data : "id="+id,
		success: function(html){
   			$("#resimKutu").html(html);
 		}
	});
}
function detay_goster(tarih,MYSQLTarih){
	$.ajax({
		type : "POST",
		url : "inc/faaliyet_getir.php",
		data : "tarih="+MYSQLTarih,
		success: function(html){
    	$("#detay_icerik").html(html);
		$("#detay #ust_sol").html(tarih);
	$("#ajanda .dolu").mouseup(function (e){
		$("#detay").css("top",e.pageY);
		$("#detay").css("left",e.pageX);
		$("#detay").fadeIn("slow");
	});
		}
		});
}
function detay_gizle(){
	$("#detay").fadeOut("slow");
	$("#detay_icerik").html("");
	$("#detay #ust_sol").html("");
}

	