function dogetAjaxrate(country,actionvar,cus_country_id,estzipcode,osid)
{
var state_id='CA';
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+"&state="+state_id+"&osCsid="+osid;
document.getElementById('upsimgbutton').src='images/ajax-loader.gif';
//alert(url);
var isWorking=false;
if (!isWorking && http)
{
http.open("GET", url, true);
http.onreadystatechange = handleHttpResponseRt;
isWorking = true;
http.send(null);
}
}


function enter_check(e)
{
getEvent=e.keyCode;
	 //alert(getEvent);
  if (getEvent == "13")
  {
 return false;
 }
}

	<!-- ================= 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;
	}

}





