function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}

function findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function stateChanged() { 
	if (xmlHttp.readyState==4) { 
		var w = findObj("prop_disp");
		// Return Propery XML
		// Update window with property data
		data = xmlHttp.responseText;
		w.innerHTML = data;
		print_city('USMX');
	}
}
function GetProperty(id, prop, uss) {
  var d = new Date(); 
  if (uss) {
	uss = "&unit="+uss;  
  }
  var url = "inc/prop.php?id="+id+"&time="+d.getTime()+uss;
  var w = findObj("prop_disp");
  // Display Loading Message 
  w.innerHTML = "";
  w.style.display = "block";
  w.style.height = "300px";
  // Setup Loading Text
  w.innerHTML = '<br><BR><BR><table align="center" width="230" height="85" border="0" cellpadding="0" cellspacing="0" background="img/details/load_bg.gif" style="background-repeat:no-repeat;">      <tr>        <td height="63" align="center" valign="top" style="padding-top: 15px;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="196" height="16">      <param name="movie" value="img/sfw/load.swf" />      <param name="quality" value="high" />      <embed src="img/sfw/load.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="196" height="16"></embed>    </object><BR><BR><BR><span style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 0.67em;"><strong>Property:</strong> '+prop.substr(0,18)+'</span></td>      </tr>    </table>';
  xmlHttp = null;
  xmlHttp=GetXmlHttpObject();
  if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
  xmlHttp.onreadystatechange=stateChanged;
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
}