function check_callback_ajax(name, number, captcha)
{
    if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else
	{// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
		if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
                    var response = xmlhttp.responseText;
                    
                    if(response.indexOf('<!---->') ==-1)
                        document.getElementById("callback_container").innerHTML=xmlhttp.responseText;
                    else
                    {
                        //Marker: <!---->
                        //Strip out everything before the marker (default Formmail message)
                        var start = response.indexOf('<!---->');
                        var end = xmlhttp.responseText.length;
                        var display = xmlhttp.responseText.substring(start, end);
                        //Only show custom success message
                        document.getElementById("callback_container").innerHTML = display;
                    }

		}
                else
                {
                    //document.getElementById("subBox").innerHTML="<font color='#B00000'>Loading...</font>";
                }
	}
	xmlhttp.open("GET","ajax_callback.php?name="+name+"&number="+number+"&captcha="+captcha,true);
	xmlhttp.send();
}

function check_order_new_user_ajax(name, number, captcha)
{
    if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else
	{// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
		if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
                    document.getElementById("callback_container").innerHTML=xmlhttp.responseText;
                    //alert(xmlhttp.responseText);
		}
                else
                {
                    //document.getElementById("subBox").innerHTML="<font color='#B00000'>Loading...</font>";
                }
	}
	xmlhttp.open("GET","ajax_callback.php?name="+name+"&number="+number+"&captcha="+captcha,true);
	xmlhttp.send();
}

