function yazibuyut()
{
var	txt="";
	if (document.getElementById(1).value!="")
	{
		txt=document.getElementById(1).value;
	}else
	{
		txt=document.getElementById(2).value;
	}
txt=txt.toUpperCase(txt);
	
	if (document.getElementById(1).value!="")
	{
		document.getElementById(1).value=txt;
	}else
	{
		document.getElementById(2).value=txt;
	}
}

function ac(yol)
{
window.open(yol, "", "width=550px,left=150px, height=700px, sizabled,scrollbars=1");
}
function resim()
{
window.open('./ilginctasarimlar/index.php', "", "width=960px,left=20px, height=580px, sizabled,scrollbars=1");
}
function tasarimarastirmaekrani(){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_tasarimofisi.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);});
    }
});
//document.getElementById(123).style.visibility='hidden';
//yukleniyor("gizle");
}
function icerik(id){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_tasarimofisi.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 duyurlar(id){
//document.getElementById(123).style.visibility='visible';
$.ajax({
    url: 'class/ajx_tasarimofisi.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 tasarimara(){
//document.getElementById(123).style.visibility='visible';
if ((document.getElementById(1).value=="")&&(document.getElementById(2).value==""))
{
	alert('Lutfen Arama Kriteri Giriniz');
}else
{
$.ajax({
    url: 'class/ajx_tasarimofisi.php',
    type: 'POST',
    dataType: 'html',
   //timeout: 1000,
	data: "tur=2&firmaadi="+document.getElementById(1).value+"&urun="+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");
}