	function CheckMemberLogin()
	{
		var user_id;
		var pass;
		user_id = document.memberForm.userid.value;
		pass = document.memberForm.password.value;
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var url="index.ajax.php?userid="+user_id+"&password="+pass;
		xmlHttp.onreadystatechange=ReturnAction;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}

	function CheckPassword(theValue, theForm)
	{
		var email;
		var first_name;
		var last_name;

		email = document.passwordForm.email.value;
		first_name = document.passwordForm.first_name.value;
		last_name = document.passwordForm.last_name.value;

		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var url="ajax.php?actionPg="+theValue+"&email="+email+"&first_name="+first_name+"&last_name="+last_name+"&theForm="+theForm;
		xmlHttp.onreadystatechange=ReturnPasswordAction;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}

	function ReturnPasswordAction() 
	{ 
		if (xmlHttp.readyState==4)
		{ 
		document.getElementById("password_content").innerHTML=xmlHttp.responseText;
		}
	}

	function ReturnAction() 
	{ 
		if (xmlHttp.readyState==4)
		{ 
			document.getElementById("member_login").innerHTML=xmlHttp.responseText;
			
			if(document.memberForm.user_id.value == 'agent@kiddostickers.com')
				window.location.href='payment_agent.php';
		}
	}

	function getOrderForm(theValue)
	{
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var url="order.ajax.php?series="+theValue;
		xmlHttp.onreadystatechange=ReturnOrderAction;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}

	function ReturnOrderAction() 
	{ 
		if (xmlHttp.readyState==4)
		{ 
		document.getElementById("order_content").innerHTML=xmlHttp.responseText;
		}
	}

	function getSizeContent(theSize, theCartoon)
	{
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var url="size.ajax.php?size="+theSize+"&cartoon="+theCartoon;
		xmlHttp.onreadystatechange=ReturnSizeAction;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}

	function ReturnSizeAction() 
	{ 
		if (xmlHttp.readyState==4)
		{ 
		document.getElementById("size_content").innerHTML=xmlHttp.responseText;
		}
	}

	function getProductContent(theSize, seriesId, theForm)
	{
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var url="product.ajax.php?size="+theSize+"&seriesId="+seriesId+"&theForm="+theForm;
		xmlHttp.onreadystatechange=ReturnProductAction;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}

	function ReturnProductAction() 
	{ 
		if (xmlHttp.readyState==4)
		{ 
		document.getElementById("product_content").innerHTML=xmlHttp.responseText;
		}
	}

