function dogetAjaxrate(country,actionvar,cus_country_id,estzipcode,osid)
	{
		
		var wtTT=document.getElementById('totalWt').value;
		var url = "ajax-rate.php?country="+country+"&actionvar="+actionvar+"&cus_country_id="+cus_country_id+"&estzipcode="+estzipcode+"&wieghtTT="+wtTT+"&osCsid="+osid;
			//alert(url)
		document.getElementById('upsimgbutton').src='images/get-prices_dis.jpg';
		//alert(url);
		var isWorking=false;
		if (!isWorking && http)
		{
			http.open("GET", url, true);
			http.onreadystatechange = handleHttpResponseRt;
			isWorking = true;
			http.send(null);
		}
		
	
	}
	
	<!-- ================= S T A R T     A J A X ================ -->

function handleHttpResponseRt() 
{
	if (http.readyState == 4) 
	{
		if (http.responseText.indexOf('invalid') == -1) 
		{
			// Use the XML DOM to unpack the city and state data 
			var xmlDocument = http.responseXML;
			//alert(xmlDocument);
			var topic = new Array();	
			topic=xmlDocument.getElementsByTagName("topic");
			//alert("tp"+topic);
			topicValue=topic.item(0).firstChild.nodeValue;
			//alert(topicValue);
			
			//alert("samar");
			
			if(topicValue=='CatList')
			{
				var xSel=new Array();				
				xSel = xmlDocument.getElementsByTagName('RateHtml');			
				var theText = xSel.item(0).firstChild.nodeValue;	
				document.getElementById('rateXmlDiv').innerHTML=theText;
				document.getElementById('upsimgbutton').src='images/get-prices.jpg';
				//alert(theText);
				
			}
			
			
		}
		isWorking = false;
	}
}
