var uyari = "";
var xmlHttp;
function createXMLHttpRequest()
{
if(window.XMLHttpRequest)
{
xmlHttp = new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
}
var xmlHttp1;
function createXMLHttpRequest1()
{
if(window.XMLHttpRequest)
{
xmlHttp1 = new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
xmlHttp1 = new ActiveXObject("Microsoft.XMLHTTP");
}
}
var xmlHttp2;
function createXMLHttpRequest2()
{
if(window.XMLHttpRequest)
{
xmlHttp2 = new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
xmlHttp2 = new ActiveXObject("Microsoft.XMLHTTP");
}
}
var queryString;
function GetCity()
{
createXMLHttpRequest();
xmlHttp.onreadystatechange = City;
xmlHttp.open("GET", "http://www.dagdeniz.net/Ajax.php?Progress=Cities&ID="+document.getElementById('Country').value, true);
xmlHttp.send(null);
}
function City()
{
if(xmlHttp.readyState == 4)
{
if(xmlHttp.status == 200)
{
document.getElementById("tdCity").innerHTML = xmlHttp.responseText;
}
}
}
function GetCity2()
{
createXMLHttpRequest();
xmlHttp.onreadystatechange = City2;
xmlHttp.open("GET", "http://www.dagdeniz.net/Ajax.php?Progress=Cities&ID="+document.getElementById('Country').value, true);
xmlHttp.send(null);
}
function City2()
{
if(xmlHttp.readyState == 4)
{
if(xmlHttp.status == 200)
{
document.getElementById("tdCity").innerHTML = xmlHttp.responseText;
}
}
}
function GetTown()
{
createXMLHttpRequest();
xmlHttp.onreadystatechange = Towns;
xmlHttp.open("GET", "http://www.dagdeniz.net/Ajax.php?Progress=Towns&ID="+document.getElementById('City').value, true);
xmlHttp.send(null);
}
function Towns()
{
if(xmlHttp.readyState == 4)
{
if(xmlHttp.status == 200)
{
document.getElementById("tdTown").innerHTML = xmlHttp.responseText;
}
}
}
function AddBasket(ID,FName)
{
var a = document.forms[FName].ColorNumber.value;
if(a=="")
{
alert("Beden / Renk Seçiniz!");
return false;
}
else
{
createXMLHttpRequest();
xmlHttp.onreadystatechange = Basket;
xmlHttp.open("GET", "http://www.dagdeniz.net/Ajax.php?Progress=AddBasket&ID="+ID+"&ColorNumber="+a, true);
xmlHttp.send(null);
}
}
function Basket()
{
if(xmlHttp.readyState == 4)
{
if(xmlHttp.status == 200)
{
document.getElementById("tdBasket").innerHTML = xmlHttp.responseText;
}
}
}
function GetAccount()
{
createXMLHttpRequest();
xmlHttp.onreadystatechange = Account;
xmlHttp.open("GET", "https://www.dagdeniz.net/Ajax.php?Progress=Account&ID="+document.getElementById('Payment').value, true);
xmlHttp.send(null);
}
function Account()
{
if(xmlHttp.readyState == 4)
{
if(xmlHttp.status == 200)
{
document.getElementById("tdAccount").innerHTML = xmlHttp.responseText;
}
}
}
function GetAddress()
{
//alert("https://www.dagdeniz.net/Ajax.php?Progress=Address&ID="+document.getElementById('AddressSelect').value);
createXMLHttpRequest();
xmlHttp.onreadystatechange = Address;
xmlHttp.open("GET", "https://www.dagdeniz.net/Ajax.php?Progress=Address&ID="+document.getElementById('AddressSelect').value, true);
xmlHttp.send(null);
}
function Address()
{
if(xmlHttp.readyState == 4)
{
if(xmlHttp.status == 200)
{
document.getElementById("tdUserAddress").innerHTML = xmlHttp.responseText;
document.getElementById("tdNewTitle").innerHTML = "";
document.getElementById("tdNewCols").innerHTML = "";
document.getElementById("tdNewAdd").innerHTML = "(Yeni Adres Ekle)";
}
}
}
function GetHomeTel()
{
createXMLHttpRequest1();
xmlHttp1.onreadystatechange = AddressHomeTel;
xmlHttp1.open("GET", "http://www.dagdeniz.net/Ajax.php?Progress=AddressHomeTel&ID="+document.getElementById('AddressSelect').value, true);
xmlHttp1.send(null);
}
function GetGSMTel()
{
createXMLHttpRequest2();
xmlHttp2.onreadystatechange = AddressGSMTel;
xmlHttp2.open("GET", "http://www.dagdeniz.net/Ajax.php?Progress=AddressGSMTel&ID="+document.getElementById('AddressSelect').value, true);
xmlHttp2.send(null);
}
function Address()
{
if(xmlHttp.readyState == 4)
{
if(xmlHttp.status == 200)
{
document.getElementById("tdUserAddress").innerHTML = xmlHttp.responseText;
document.getElementById("tdNewTitle").innerHTML = "";
document.getElementById("tdNewCols").innerHTML = "";
document.getElementById("tdNewAdd").innerHTML = "TESLİMAT ADRESİ (Sil)";
}
}
}
function AddressHomeTel()
{
if(xmlHttp1.readyState == 4)
{
if(xmlHttp1.status == 200)
{
document.getElementById("HomeTel").innerHTML = xmlHttp1.responseText;
}
}
}
function AddressGSMTel()
{
if(xmlHttp2.readyState == 4)
{
if(xmlHttp2.status == 200)
{
document.getElementById("GSMTel").innerHTML = xmlHttp2.responseText;
}
}
}
function SendQuestion()
{
var ID = document.getElementById('TableID').value;
var NameSurname = document.getElementById('NameSurnamem').value;
var Email = document.getElementById('Emailin').value;
var Tel = document.getElementById('Tel').value;
var Question = document.getElementById('Question').value;
createXMLHttpRequest();
xmlHttp.onreadystatechange = SendAnswer;
xmlHttp.open("GET", "http://www.dagdeniz.net/Ajax.php?Progress=AddQuestion&ID="+ID+"&NameSurname="+NameSurname+"&Email="+Email+"&Tel="+Tel+"&Question="+Question+"&RND= "+Math.random(), true);
xmlHttp.send(null);
}
function SendAnswer()
{
if(xmlHttp.readyState == 4)
{
if(xmlHttp.status == 200)
{
document.getElementById("tdQuestionTurn").innerHTML = xmlHttp.responseText;
}
}
}
function SendComment()
{
createXMLHttpRequest2();
xmlHttp2.onreadystatechange = CommentAnswer;
var ID = document.getElementById('TableID').value;
var NameSurname = document.getElementById('NameSurname').value;
var Email = document.getElementById('Emailim').value;
var Title = document.getElementById('Title').value;
var Comment = document.getElementById('Comment').value;
xmlHttp2.open("GET", "http://www.dagdeniz.net/Ajax.php?Progress=AddComment&ID="+ID+"&NameSurname="+NameSurname+"&Email="+Email+"&Title="+Title+"&Comment="+Comment+"&RND= "+Math.random(), true);
xmlHttp2.send(null);
}
function CommentAnswer()
{
if(xmlHttp2.readyState == 4)
{
if(xmlHttp2.status == 200)
{
document.getElementById("tdCommentTurn").innerHTML = xmlHttp2.responseText;
}
}
}
function Control()
{
var price1 = document.Form_Search.Price1.value;
var price2 = document.Form_Search.Price2.value;
uyari = "";
if(price20)
{
var p=0;
for(i=0;i0)
{
var p=0;
for(i=0;i