function icerik(id,mid){
document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'ajx_hukuk.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=0&id="+id+"&menuid="+mid,
    error: function(){
        alert('Bir Hata Olustu');
    },
	success: function(html){
	//alert(html);
	$("#icerik_alan").fadeOut("slow",function(){
    $("#icerik_alan").html(html);
	});
	$("#icerik_alan").fadeIn("slow",function(){
    $("#icerik_alan").html(html);});
    }
});
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}
///////////////////////////////////////
function menu_liste(id,mid){
document.getElementById(123).style.visibility='visible';
//alert(disid);
//alert(id);
$.ajax({
    url: 'ajx_hukuk.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=2&id="+id,
    error: function(){
        alert('Bir Hata Olustu');
    },
	success: function(html){
	//alert(html);
	$("#icerik_alan").fadeOut("slow",function(){
    $("#icerik_alan").html(html);
	});
	$("#icerik_alan").fadeIn("slow",function(){
    $("#icerik_alan").html(html);});
    }
});
//yukleniyor("gizle");
}//********************************************************+
function duyuru(){
document.getElementById(123).style.visibility='visible';
//alert(disid);
//alert(id);
$.ajax({
    url: 'ajx_hukuk.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=3",
    error: function(){
        alert('Bir Hata Olustu');
    },
	success: function(html){
	//alert(html);
	$("#icerik_alan").fadeOut("slow",function(){
    $("#icerik_alan").html(html);
	});
	$("#icerik_alan").fadeIn("slow",function(){
    $("#icerik_alan").html(html);});
    }
});
//yukleniyor("gizle");
}//********************************************************+

function duyuru_index(id){
document.getElementById(123).style.visibility='visible';
//alert(disid);
//alert(id);
$.ajax({
    url: 'ajx_hukuk.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=5&id="+id,
    error: function(){
        alert('Bir Hata Olustu');
    },
	success: function(html){
	//alert(html);
	$("#icerik_alan").fadeOut("slow",function(){
    $("#icerik_alan").html(html);
	});
	$("#icerik_alan").fadeIn("slow",function(){
    $("#icerik_alan").html(html);});
    }
});
//yukleniyor("gizle");
}//********************************************************+

function ara(){
document.getElementById(123).style.visibility='visible';
		//alert(document.getElementById('ara').value);
	$.ajax({
    url: 'ajx_hukuk.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=4&ara="+document.getElementById('ara').value,
    error: function(){
        alert('Bir Hata Olustu');
    },
	success: function(html){
	//alert(html);
	$("#icerik_alan").fadeOut("slow",function(){
    $("#icerik_alan").html(html);
	});
	$("#icerik_alan").fadeIn("slow");
    }
});	
		
}/*
function form(frm){
var x=document.getElementById(frm);
var str="";
for (var i=0;i<x.length;i++)
  {
   if(str!="") str=str+"&";
   if(x.elements[i].type=="select-one") 
   str=str+x.elements[i].name+"="+degerGetir(x.elements[i].name);
    else
	  str=str+x.elements[i].name+"="+x.elements[i].value;
  }
return str;
}
function kay(gelen){
	//alert (gelen);
	//yukleniyor("goster");
$.ajax({
    url: 'ajx_baskanlik.php',
    type: 'POST',
    dataType: 'html',
    //timeout: 1000,
	data: "tur=2"+gelen,
    error: function(){
        alert('Bir Hata Olustu');
    },
    success: function(html){
		//alert (html);	
        $("#selim").html(html);
    error: function(){
        alert('Bir Hata Olustu');
    }
    }
});
//yukleniyor("gizle");
}


//********************************************************
function sil(id,bolumid){
	//alert (id);
	//alert (bolumid);
if(confirm('Kaydi Silmek Istediginizden Emin Misiniz ?')){
$.ajax({
    url: 'ajx_baskanlik.php',
    type: 'POST',
    dataType: 'html',
    //timeout: 1000,
	data: "tur=1&id="+id+"&bolumid="+bolumid,
    error: function(){
        alert('Bir Hata Olustu');
    },
    success: function(html){
	    $("#sol").html(html);

		//listeYenile(tabloid,sicil);
    }
});
//yukleniyor("gizle");
}
}
//----------------------------------------
function kontrol(){
		if(document.getElementById("oduusr").value=="") alert("Boş Alan Bırakmayınız");
		else if(document.getElementById("odusifre").value=="") alert("Boş Alan Bırakmayınız");
		else kaydet(formVeri("girisform"));
}
function formVeri(frm){
var x=document.getElementById(frm);
var str="";
for (var i=0;i<x.length;i++)
  {
   if(str!="") str=str+"&";
   if(x.elements[i].type=="select-one") 
   str=str+x.elements[i].name+"="+degerGetir(x.elements[i].name);
    else
	  str=str+x.elements[i].name+"="+x.elements[i].value;
  }
return str;
}
function kaydet(gelen){

	//alert (gelen);
	//yukleniyor("goster");
$.ajax({
    url: 'ajx_giriskontrol.php',
    type: 'POST',
    dataType: 'html',
    //timeout: 1000,
	data: "tur=0"+gelen,
    error: function(){
        alert('Bir Hata Olustu');
    },
    success: function(html){
		//alert (html);
	$("#selim").fadeOut("slow",function(){
        $("#selim").html(html);
		});
		$("#selim").fadeIn("slow");
		yonlendir();
    error: function(){
        alert('Bir Hata Olustu');
    }
    }
});
//yukleniyor("gizle");
}
//----------------------------------------
function skontrol(){
		if(document.getElementById("kadi").value=="") alert("Boş Alan Bırakmayınız");
		else if(document.getElementById("esifre").value=="") alert("Boş Alan Bırakmayınız");
		else if(document.getElementById("ysifre").value=="") alert("Boş Alan Bırakmayınız");
		else if(document.getElementById("osifre").value=="") alert("Boş Alan Bırakmayınız");
		else if(document.getElementById("ysifre").value!=document.getElementById("osifre").value) alert("Yeni Şifrenizle Onay birbirine uyumlu değil kontrol edip tekrar yazınız");
		else skaydet(veri("sifredegis"));
}
function veri(frm){
var x=document.getElementById(frm);
var str="";
for (var i=0;i<x.length;i++)
  {
   if(str!="") str=str+"&";
   if(x.elements[i].type=="select-one") 
   str=str+x.elements[i].name+"="+degerGetir(x.elements[i].name);
    else
	  str=str+x.elements[i].name+"="+x.elements[i].value;
  }
return str;
}
function skaydet(gelen){

	//alert (gelen);
	//yukleniyor("goster");
$.ajax({
    url: 'ajx_baskanlik.php',
    type: 'POST',
    dataType: 'html',
    //timeout: 1000,
	data: "tur=5"+gelen,
    error: function(){
        alert('Bir Hata Olustu');
    },
    success: function(html){
		//alert (html);
	$("#ana").fadeOut("slow",function(){
        $("#ana").html(html);
		});
		$("#ana").fadeIn("slow");
    error: function(){
        alert('Bir Hata Olustu');
    }
    }
});
//yukleniyor("gizle");
}
*/