var xmlHttp

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


//============== Home Page ================

function Get_Product_List(section_id,category_id) { 

/*document.getElementById("Project_List").innerHTML="<img src='images/load.gif'>"*/
//alert(section_id);
//alert(category_id);

document.form_product.section_id.value=section_id
document.form_product.category_id.value=category_id

	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="Get_Product_List.php"
	url=url+"?section_id="+section_id
	url=url+"&category_id="+category_id
	url=url+"&ram_id="+Math.random()
	//alert(url);
	xmlHttp.onreadystatechange=Get_Product_List_Change
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function Get_Product_List_Change() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("Project_List").innerHTML=xmlHttp.responseText 
	} 
}
//============== End Home Page ================

function Get_Product_Detail(section_id,category_id,product_id,fix_product_id,start,search_keyword) { 

//alert(search_keyword);
//alert(category_id);
//alert(product_id);
//alert(fix_product_id);
//alert(search1);



<!--document.getElementById("Project_List").innerHTML="<img src='images/load.gif'>"-->

document.form_product.section_id.value=section_id
document.form_product.category_id.value=category_id

	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="Get_Product_Detail.php"
	url=url+"?section_id="+section_id
	url=url+"&category_id="+category_id
	url=url+"&product_id="+product_id
	url=url+"&fix_product_id="+fix_product_id
	url=url+"&start="+start
	url=url+"&search1="+search_keyword	
	//alert(url);
	url=url+"&ram_id="+Math.random()
	xmlHttp.onreadystatechange=Get_Product_Detail_Change
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function Get_Product_Detail_Change() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("Project_List").innerHTML=xmlHttp.responseText 
	} 
}

//============== End Home Page ================

function Get_Product_Detail1(section_id,category_id,product_id,fix_product_id,start,search_keyword) { 

//alert("KKKKKKKKKKKKKKKKKKkk");
//alert(search_keyword);
//alert(category_id);
//alert(product_id);
//alert(fix_product_id);
//alert(search1);



<!--document.getElementById("Project_List").innerHTML="<img src='images/load.gif'>"-->

document.form_product.section_id.value=section_id
document.form_product.category_id.value=category_id

	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="Get_Product_Detail1.php"
	url=url+"?section_id="+section_id
	url=url+"&category_id="+category_id
	url=url+"&product_id="+product_id
	url=url+"&fix_product_id="+fix_product_id
	url=url+"&start="+start
	url=url+"&search1="+search_keyword	
	//alert(url);
	url=url+"&ram_id="+Math.random()
	xmlHttp.onreadystatechange=Get_Product_Detail_Change
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function Get_Product_Detail_Change() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("Project_List").innerHTML=xmlHttp.responseText 
	} 
}
//=========================================================================================================================================
function GET_PAGING_S(section_id,start,j,xex) { 

document.frm_Catalogue.Cat_Sec_Id.value=section_id

	id = 'Get_Section_' + section_id;
	document.getElementById(id).innerHTML="<font color='#FFA303'>&nbsp;Loading ...</font>";		

	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="GET_PAGING_S.php"
	url=url+"?section_id="+section_id
	url=url+"&start="+start
	url=url+"&j="+j
	url=url+"&xex="+xex
	url=url+"&ram_id="+Math.random()
	xmlHttp.onreadystatechange=GET_PAGING_S_Change
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function GET_PAGING_S_Change() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")	{ 
	var Sel_Id
	Sel_Id=document.frm_Catalogue.Cat_Sec_Id.value
	
	id = 'Get_Section_' + Sel_Id;
	document.getElementById(id).innerHTML=xmlHttp.responseText;		
	} 
}


