/* Create a new XMLHttpRequest object to talk to the Web server */
var xmlHttp = false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
    xmlHttp = false;
  }
}
@end @*/

if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}

function popupPhone(prid) {
        var url = "/ajax/phone-popup.php?prid=" + escape(prid);
        myRand = "&rand=" + parseInt(Math.random()*99999999);  // cache buster
        url = url + myRand ;
        xmlHttp.open("GET", url, true);
		
        xmlHttp.onreadystatechange =  function()
		 {
			 if (xmlHttp.readyState == 4) {
        		var response = xmlHttp.responseText;
				//balloon.showTooltip(event, response + '&nbsp;&nbsp;&nbsp;',1);
				document.getElementById('phone_' + prid).innerHTML = response;
			 }
		 }
        xmlHttp.send(null);
		
    }

function popupPhone2(object) {
    if (xmlHttp.readyState == 4) {
        var response = xmlHttp.responseText;
        balloon.showTooltip(object, response + '&nbsp;&nbsp;&nbsp;',1);
		//alert(response);
        }
    }

// balloon.showTooltip(event,\''.$prax->phone_real.'&nbsp;&nbsp;&nbsp;\',1); pageTracker._trackEvent(\'StandardListing\', \'Phone\', \''.$prax->prid.'_'.$prax->city.'_'.$prax->state.'\');
