// JavaScript Document
function GetXmlHttpObject()
{ 
	var objXMLHttp=null
	
	if (window.XMLHttpRequest)
	{
		objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}

function LEDSolution()
{	
	xmlHttp=GetXmlHttpObject()	
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
	
	var url="led_solution_new.php"	
	url=url
	xmlHttp.onreadystatechange=AllChangedComments 
		
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function LEDCaseStudies()
{
	xmlHttp=GetXmlHttpObject()	
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
	
	var url="case_studies_new.php"	
	url=url
	xmlHttp.onreadystatechange=AllChangedComments 
		
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function LEDEducation()
{
	xmlHttp=GetXmlHttpObject()	
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
	
	var url="led_education_new.php"	
	url=url
	xmlHttp.onreadystatechange=AllChangedComments 
		
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function LEDSupport()
{
	xmlHttp=GetXmlHttpObject()	
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
	
	var url="getting_support_new.php"	
	url=url
	xmlHttp.onreadystatechange=AllChangedComments 
		
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function IndustryLED()
{
	xmlHttp=GetXmlHttpObject()	
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
	
	var url="industry_led_new.php"	
	url=url
	xmlHttp.onreadystatechange=AllChangedComments 
		
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}



function AllChangedComments() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("idledcenter").innerHTML=xmlHttp.responseText 		
	} 
}


