function icerik(id){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_markaofisi.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=0&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);});
    }
});
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}
function ac(yol)
{
window.open(yol, "", "width=550px,left=150px, height=700px, sizabled,scrollbars=1");
}
function duyurlar(id){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_markaofisi.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=1&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);});
    }
});
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}
function ara(){
document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_markaofisi.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=2&markaadi="+document.getElementById(1).value+"&sinif="+document.getElementById(2).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(){
    $("#icerik_alan").html(html);});
    }
});
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}
function markaform2()
{
yurt="";
tarih="";
if(document.getElementById(36).checked)
{
yurt=document.getElementById(36).value;
}else
{
yurt=document.getElementById(41).value;
}
tarih=document.getElementById(10).value+"/"+document.getElementById(10).value+"/"+document.getElementById(11).value;
	//alert(tarih;)
	if((document.getElementById(1).value=="")||(document.getElementById(2).value=="")||(document.getElementById(3).value=="")||(document.getElementById(4).value=="")||(document.getElementById(5).value=="")||(document.getElementById(6).value=="")||(document.getElementById(7).value=="")||(document.getElementById(9).value=="")||(document.getElementById(10).value=="")||(document.getElementById(11).value=="")||(document.getElementById(12).value=="")||(document.getElementById(13).value==""))
	{
		alert('Gerekli Alanlari Doldurunuz');
	//	dur=1;
	}
	else
	{
$.ajax({
    url: 'ajx_markaofisi.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=3&m_adi="+document.getElementById(1).value+"&sinif="+document.getElementById(2).value+"&okunus="+document.getElementById(3).value+"&anlami="+document.getElementById(4).value+"&emtia="+document.getElementById(5).value+"&s_adi="+document.getElementById(6).value+"&tcno="+document.getElementById(7).value+"&d_yeri="+document.getElementById(8).value+"&tarih="+tarih+"&v_dairesi="+document.getElementById(12).value+"&v_numarasi="+document.getElementById(13).value+"&resmi_adres="+document.getElementById(14).value+"&yazisma="+document.getElementById(15).value+"&il="+document.getElementById(16).value+"&ilce="+document.getElementById(17).value+"&semt="+document.getElementById(18).value+"&p_kodu="+document.getElementById(19).value+"&tel="+document.getElementById(20).value+"&fax="+document.getElementById(21).value+"&email="+document.getElementById(22).value+"&m_s_adi="+document.getElementById(23).value+"&iletisim="+document.getElementById(24).value+"&s_il="+document.getElementById(25).value+"&s_ilce="+document.getElementById(26).value+"&s_semt="+document.getElementById(27).value+"&s_posta="+document.getElementById(28).value+"&s_tel="+document.getElementById(29).value+"&s_fax="+document.getElementById(30).value+"&s_email="+document.getElementById(31).value+"&yurt_id="+yurt+"&ulke="+document.getElementById(123).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(){
    $("#icerik_alan").html(html);});
    }
});
}
}
function markabasvuru(){
window.open("class/marka.php", "", "width=550px,left=150px, height=700px, sizabled,scrollbars=1")
}
function ilce(){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'ajx_markaofisi.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=4&id="+document.getElementById(16).value,
    error: function(){
        alert('Bir Hata Olustu');
    },
	success: function(html){
	//alert(html);
	$("#ilce").fadeOut("slow",function(){
    $("#ilce").html(html);
	});
	$("#ilce").fadeIn("slow",function(){
    $("#ilce").html(html);});
    }
});
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}
function ilce2(){
$.ajax({
    url: 'ajx_markaofisi.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=5&id="+document.getElementById(25).value,
    error: function(){
        alert('Bir Hata Olustu');
    },
	success: function(html){
	//alert(html);
	$("#ilce2").fadeOut("slow",function(){
    $("#ilce2").html(html);
	});
	$("#ilce2").fadeIn("slow",function(){
    $("#ilce2").html(html);});
    }
});
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}