// JavaScript Document

/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//http://www.devarticles.com/c/a/JavaScript/Working-with-IFRAME-in-JavaScript/2/
function propsearch(a)
{
var id=a;
document.all.display-frame.src="includehtml.php?id="+id;
//document.getElementById("display-frame").innerHTML ="<div align='center'><img src='images/loading.gif'></div>";
//xmlHttp=GetXmlHttpObject()
//if (xmlHttp==null)
//  {
//	  alert ("Browser does not support HTTP Request")
//	  return
//  } 
//var url="includehtml.php?id="+id;
//xmlHttp.onreadystatechange = function(){ stateChanged(); };
//xmlHttp.open("GET",url,true)
//xmlHttp.send(null)
} 

function stateChanged() 
{ 
		if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
		{ 
			//alert(xmlHttp.responseText);
			document.getElementById("display-frame").innerHTML =xmlHttp.responseText;            
		} 
}
