var axeonQuoteXMLHttp
var myLang
var myPrice

function getAxeonQuote(lang,listingPrice)
{
	axeonQuoteXMLHttp=GetXmlHttpObject()
	myLang=lang
	myPrice=listingPrice
	
	if (axeonQuoteXMLHttp==null)
	 {
	 alert ("Browser does not support HTTP Request")
	 return
	 }
	 
	var url="ajax/Axeon_Quote_Web_Service_Consumer.php"
	url=url+"?lang="+myLang
	url=url+"&listingPrice="+myPrice

	axeonQuoteXMLHttp.abort()
	axeonQuoteXMLHttp.onreadystatechange=axeonStateChanged
	axeonQuoteXMLHttp.open("GET",url,true)
	axeonQuoteXMLHttp.send(null)
}

function getAxeonQuote_CodeIg(lang,listingPrice,baseUrl)
{
	axeonQuoteXMLHttp=GetXmlHttpObject()
	myLang=lang
	myPrice=listingPrice
	
	if (axeonQuoteXMLHttp==null)
	 {
	 alert ("Browser does not support HTTP Request")
	 return
	 }
	 
	var url=baseUrl+"ajax/Axeon_Quote_Web_Service_Consumer.php"
	url=url+"?lang="+myLang
	url=url+"&listingPrice="+myPrice

	axeonQuoteXMLHttp.abort()
	axeonQuoteXMLHttp.onreadystatechange=axeonStateChanged
	axeonQuoteXMLHttp.open("GET",url,true)
	axeonQuoteXMLHttp.send(null)
}


function axeonStateChanged() 
{ 
if (axeonQuoteXMLHttp.readyState==4 || axeonQuoteXMLHttp.readyState=="complete")
 { 
document.getElementById('axeonQuote').innerHTML = axeonQuoteXMLHttp.responseText



 } 
}

function GetXmlHttpObject(){ 
    var objXMLHttp = null;
    
    if (window.XMLHttpRequest){
        try{
            objXMLHttp = new XMLHttpRequest();
        }catch (e){
            objXMLHttp = false;
        }
    }else if (window.createRequest){
        try{
            objXMLHttp = new window.createRequest();
        }catch (e){
            objXMLHttp = false;
        }
    }else if (window.ActiveXObject){
        try {
            objXMLHttp = new ActiveXObject("Msxml2.XMLHTTP");
        }catch (e){
            try {
                objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
            }catch (e){
                objXMLHttp = false;
            }
        }
    }
    
    return objXMLHttp;
}
