function mail(){
var input0 = $("input[@type=checkbox]").serialize();
var input1 = $("input[@type=text]").serialize();
var input2 = $("input[@type=hidden]").serialize();
var sc = input0+"&"+input1+"&"+input2;
$('#ortabolum').html('<center><img src="../images/yukleniyor.gif"></center>');
$.ajax({
	type: "POST",
	url: "siparis_kontrol.php",
	data: sc,
	success: function(msg){
	if (msg=="ok")
		{
		$('#ortabolum').html("Başarılı!");
		setTimeout("window.location = 'index.php';",1000);
		}
	else
		{$('#ortabolum').html( msg );}
   }
});
}

function siparis(){
var paket = $("input[@type=hidden]").serialize();
var sc = paket;
$('#ortabolum').html('<center><img src="./images/yukleniyor.gif"></center>');
$.ajax({
	type: "POST",
	url: "./inc/siparis_ver.php",
	data: sc,
	success: function(msg){
	if (msg=="ok")
		{
		$('#ortabolum').html("Başarılı!");
		setTimeout("window.location = 'index.php';",1000);
		}
	else
		{$('#ortabolum').html( msg );}
   }
});
}

function icerik(id){
$('#ortabolum').html('<center><img src="./images/yukleniyor.gif"></center>');
$.ajax({
	type: "POST",
	url: "./inc/index1.php",
	data: "id="+encodeURIComponent(id),
	success: function(msg){
	if (msg=="ok")
		{
		$('#ortabolum').html("Başarılı!");
		setTimeout("window.location = 'index.php';",1000);
		}
	else
		{$('#ortabolum').html( msg );}
   }
});
}


function paket(id, p, y){
$('#ortabolum').html('<center><img src="./images/yukleniyor.gif"></center>');
$.ajax({
	type: "POST",
	url: "./inc/index1.php",
	data: "id="+encodeURIComponent(id)+"&p="+encodeURIComponent(p)+"&y="+encodeURIComponent(y),
	success: function(msg){
	if (msg=="ok")
		{
		$('#ortabolum').html("Başarılı!");
		setTimeout("window.location = 'index.php';",1000);
		}
	else
		{$('#ortabolum').html( msg );}
   }
});
}

function yardim(id, y){
$('#ortabolum').html('<center><img src="./images/yukleniyor.gif"></center>');
$.ajax({
	type: "POST",
	url: "./inc/index1.php",
	data: "id="+encodeURIComponent(id)+"&y="+encodeURIComponent(y),
	success: function(msg){
	if (msg=="ok")
		{
		$('#ortabolum').html("Başarılı!");
		setTimeout("window.location = 'index.php';",1000);
		}
	else
		{$('#ortabolum').html( msg );}
   }
});
}