
function DisplayLoad()
{

	Dir.bgColor = "Red";
			Dir.style.color = "Black";
			Con.bgColor = "Red";
			Con.style.color = "Black";
			Show.bgColor = "Red";
			Show.style.color = "Black";		

}

	
			function DisplayDir()
		{			
			IncludeFile('UserControls/Direct.htm','Ad');
			//document.getElementById("txtFind").style.display = "block";			
			Dir.bgColor = "Red";
			Dir.style.color = "white";
			Con.bgColor = "Red";
			Con.style.color = "Black";
			Show.bgColor = "Red";
			Show.style.color = "Black";		
		}
		function DisplayCon()
		{		
			IncludeFile('UserControls/Consignment.htm','Ad');	
			//document.getElementById("txtFind").style.display = "none";
			Con.bgColor = "Red";
			Con.style.color = "white";
			Dir.bgColor = "Red";
			Dir.style.color = "Black";
			Show.bgColor = "Red";
			Show.style.color = "Black";	
		}
		
		function Displayshow()
		{		
			IncludeFile('UserControls/Showroom.htm','Ad');
			//document.getElementById("txtFind").style.display = "none";
			Show.bgColor = "Red";
			Show.style.color = "white";
			Con.bgColor = "Red";
			Con.style.color = "Black";
			Dir.bgColor = "Red";
			Dir.style.color = "Black";			
		}
		
		
	
	
	
		function IncludeFile(url,loc)			
	{
	if ('undefined' == typeof(url)) 
		return false;
			
	var p,rnd;
	if (document.all)
	{
		// For IE, create an ActiveX Object instance 
		p = new ActiveXObject("Microsoft.XMLHTTP");
	} 
	else 
	{
		// For mozilla, create an instance of XMLHttpRequest.
		p = new XMLHttpRequest();
	}
 
	// Prevent browsers from caching the included page by appending a random  number
	rnd = Math.random().toString().substring(2);
	url = url.indexOf('?')>-1 ? url+'&rnd='+rnd : url+'?rnd='+rnd;
	// Open the url and write out the response
	p.open("GET",url,false);
	p.send(null);						
	document.getElementById(loc).innerHTML = p.responseText;				
}

