function icerikara(){
//document.getElementById(123).style.visibility='visible';
if(document.getElementById('iceriktxt').value!="")
{
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=18&kriter="+document.getElementById('iceriktxt').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);});
    }
});
}else
{
	alert('Arama Kriteri Giriniz');
}
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}
function icerik(id){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.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 markabulten(){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=1",
    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 ekrn(id){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=2&id="+id,
    error: function(){
        alert('Bir Hata Olustu');
    },
	success: function(html){
	//alert(html);
	$("#bultenekr").fadeOut("slow",function(){
    $("#bultenekr").html(html);
	});
	$("#bultenekr").fadeIn("slow",function(){
    $("#bultenekr").html(html);});
    }
});
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}
function bultenliste()
{
	dur=0;
	if (document.getElementById(1).checked)
		dur=1;
	if (document.getElementById(2).checked)
		dur=2;
	if (document.getElementById(3).checked)
		dur=3;
	if (document.getElementById(4).checked)
		dur=4;
	if (document.getElementById(4).checked)
	{
		marka=document.getElementById(5).value;
	}else
	{
		marka=document.getElementById('m1').value;
	}
	
	if(dur!=0)
	{
		$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=3&id="+dur+"&marka="+marka,
    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 patentarastirmaekrn(){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=4",
    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 patentarastir(){
//document.getElementById(123).style.visibility='visible';
var dur=0;
if (document.getElementById(1).value!="")
{
	dur=1;
	kriter=document.getElementById(1).value;
}
if (document.getElementById(2).value!="")
{
	dur=2;
	kriter=document.getElementById(2).value;
}

if (document.getElementById(3).value!="")
{
	dur=3;
	kriter=document.getElementById(3).value;
}
if (dur!=0)
{
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=5&dur="+dur+"&kriter="+kriter,
    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);});
    }
});
}else
{
	alert('Bir Kriter Belirleyiniz !!!');
}
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}
///****

function patentbulten(){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=6",
    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 patentekrn(id){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=7&id="+id,
    error: function(){
        alert('Bir Hata Olustu');
    },
	success: function(html){
	//alert(html);
	$("#bultenekr").fadeOut("slow",function(){
    $("#bultenekr").html(html);
	});
	$("#bultenekr").fadeIn("slow",function(){
    $("#bultenekr").html(html);});
    }
});
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}
function patentbultenliste()
{
	dur=0;
	if (document.getElementById(1).checked)
		dur=1;
	if (document.getElementById(2).checked)
		dur=2;
	if (document.getElementById(3).checked)
		dur=3;
	if (document.getElementById(4).checked)
		dur=4;
	if (document.getElementById(4).checked)
	{
		marka=document.getElementById(5).value;
	}else
	{
		marka=document.getElementById('m1').value;
	}
	
	if(dur!=0)
	{
		$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=8&id="+dur+"&marka="+marka,
    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 markabultendetay(id){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=9&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 resimbuyut(id)
{
	document.getElementById('resim').innerHTML="<table border=1 bgcolor='#FFFFFF' class='icerik'><tr><td class='icerik2'>Marka Ornegi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='javascript:void(0)' onclick='gizle()'>Kapat</a></td></tr><tr><td class='icerik2'><img src='"+id+"' width='250' height='250'></td></tr></table>";
	document.getElementById('resim').style.visibility='visible';
}
function gizle()
{
	document.getElementById('resim').style.visibility='hidden';
}
function kabulgoster()
{
	document.getElementById('k1').style.visibility='visible';
	document.getElementById('r1').style.visibility='hidden';
}
function redgoster()
{
	document.getElementById('k1').style.visibility='hidden';
	document.getElementById('r1').style.visibility='visible';
}
function kapat()
{
	document.getElementById('k1').style.visibility='hidden';
	document.getElementById('r1').style.visibility='hidden';
}
function patentbultendetay(id){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=10&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 tasarimarastirmaekrn(){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=11",
    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 tasarimarastir(){
//document.getElementById(123).style.visibility='visible';
var dur=0;
if (document.getElementById(1).value!="")
{
	dur=1;
	kriter=document.getElementById(1).value;
}
if (document.getElementById(2).value!="")
{
	dur=2;
	kriter=document.getElementById(2).value;
}
if (dur!=0)
{
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=12&dur="+dur+"&kriter="+kriter,
    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);});
    }
});
}else
{
	alert('Bir Kriter Belirleyiniz !!!');
}
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}
///***


function tasarimbulten(){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=13",
    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 tasarimekrn(id){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=14&id="+id,
    error: function(){
        alert('Bir Hata Olustu');
    },
	success: function(html){
	//alert(html);
	$("#bultenekr").fadeOut("slow",function(){
    $("#bultenekr").html(html);
	});
	$("#bultenekr").fadeIn("slow",function(){
    $("#bultenekr").html(html);});
    }
});
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}
function tasarimbultenliste()
{
	dur=0;
	if (document.getElementById(1).checked)
		dur=1;
	if (document.getElementById(2).checked)
		dur=2;
	if (document.getElementById(3).checked)
		dur=3;
	
		marka=document.getElementById('m1').value;
	
	
	if(dur!=0)
	{
		$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=15&id="+dur+"&marka="+marka,
    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 tasarimbultendetay(id){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=16&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 ac2(yol)
{
	//alert(yol);
window.open(yol, "", "width=420px,left=200px, height=440px, resizable=0,scrollbars=1");
}

function menu(id){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=17&id="+id,
    error: function(){
        alert('Bir Hata Olustu');
    },
	success: function(html){
	//alert(html);
	$("#menu").slideUp("faster",function(){
    $("#menu").html(html);
	});
	$("#menu").slideDown("faster",function(){
    $("#menu").html(html);});
    }
});
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}

function menu2(){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_basalanpatent.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=19",
    error: function(){
        alert('Bir Hata Olustu');
    },
	success: function(html){
	//alert(html);
	$("#ilacmenu").slideUp("faster",function(){
    $("#ilacmenu").html(html);
	});
	$("#ilacmenu").slideDown("faster",function(){
    $("#ilacmenu").html(html);});
    }
});
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}
