//tao bien ajax============================================================

var xmlHttp = createXmlHttpRequestObject();

function createXmlHttpRequestObject(){

	var xmlHttp;

	if(window.ActiveXObject){

		try      {xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");}

		catch (e){xmlHttp = false;}

	}

	else{

		try{	xmlHttp = new XMLHttpRequest();}

		catch (e){	xmlHttp = false;}

	}



	if (!xmlHttp)  alert("Error creating the XMLHttpRequest object.");

	else     return xmlHttp;

}



//dangky

function Process()

	{

		value = document.frmCart.account.value;

		if (xmlHttp.readyState==4 || xmlHttp.readyState ==0)

		{

			xmlHttp.open("GET","ktra.php?account="+value, true);

			xmlHttp.onreadystatechange = F;

			xmlHttp.send(null);

		

		

		}

	

	}
function F()

	{

		if (xmlHttp.readyState ==4)

		{

			if (xmlHttp.status == 200)

				{

					document.getElementById("spanMessage").innerHTML = xmlHttp.responseText;

					//alert(xmlHTTP.getAllResponseHeaders());

				}

		}

	}


function Process1()

	{

		value = document.frmCart.account.value;

		if (xmlHttp.readyState==4 || xmlHttp.readyState ==0)

		{

			xmlHttp.open("GET","ktra1.php?account="+value, true);

			xmlHttp.onreadystatechange = F1;

			xmlHttp.send(null);

		

		

		}

	

	}
function F1()

	{

		if (xmlHttp.readyState ==4)

		{

			if (xmlHttp.status == 200)

				{

					document.getElementById("spanMessage").innerHTML = xmlHttp.responseText;

					//alert(xmlHTTP.getAllResponseHeaders());

				}

		}

	}


function Process2()

	{

		value = document.frmCart.account.value;

		if (xmlHttp.readyState==4 || xmlHttp.readyState ==0)

		{

			xmlHttp.open("GET","ktra2.php?account="+value, true);

			xmlHttp.onreadystatechange = F2;

			xmlHttp.send(null);

		

		

		}

	

	}
function F2()

	{

		if (xmlHttp.readyState ==4)

		{

			if (xmlHttp.status == 200)

				{

					document.getElementById("spanMessage").innerHTML = xmlHttp.responseText;

					//alert(xmlHTTP.getAllResponseHeaders());

				}

		}

	}
function Process3()

	{

		value = document.frmCart.account.value;

		if (xmlHttp.readyState==4 || xmlHttp.readyState ==0)

		{

			xmlHttp.open("GET","ktra3.php?account="+value, true);

			xmlHttp.onreadystatechange = F3;

			xmlHttp.send(null);

		

		

		}

	

	}
function F3()

	{

		if (xmlHttp.readyState ==4)

		{

			if (xmlHttp.status == 200)

				{

					document.getElementById("spanMessage").innerHTML = xmlHttp.responseText;

					//alert(xmlHTTP.getAllResponseHeaders());

				}

		}

	}

function Process4()

	{

		value = document.frmCart.account.value;

		if (xmlHttp.readyState==4 || xmlHttp.readyState ==0)

		{

			xmlHttp.open("GET","ktra4.php?account="+value, true);

			xmlHttp.onreadystatechange = F4;

			xmlHttp.send(null);

		

		

		}

	

	}
function F4()

	{

		if (xmlHttp.readyState ==4)

		{

			if (xmlHttp.status == 200)

				{

					document.getElementById("spanMessage").innerHTML = xmlHttp.responseText;

					//alert(xmlHTTP.getAllResponseHeaders());

				}

		}

	}
function Process5()

	{

		value = document.frmCart.account.value;

		if (xmlHttp.readyState==4 || xmlHttp.readyState ==0)

		{

			xmlHttp.open("GET","ktra5.php?account="+value, true);

			xmlHttp.onreadystatechange = F5;

			xmlHttp.send(null);

		

		

		}

	

	}
function F5()

	{

		if (xmlHttp.readyState ==4)

		{

			if (xmlHttp.status == 200)

				{

					document.getElementById("spanMessage1").innerHTML = xmlHttp.responseText;

					//alert(xmlHTTP.getAllResponseHeaders());

				}

		}

	}
				

					

	