function GetXmlHttpObject(handler)
		{ 
		var objXmlHttp=null
		
		if (navigator.userAgent.indexOf("Opera")>=0)
		{
		alert("This fun: doesn't work in Opera") 
		return 
		}
		if (navigator.userAgent.indexOf("MSIE")>=0)
		{ 
		var strName="Msxml2.XMLHTTP"
		if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
		{
		strName="Microsoft.XMLHTTP"
		} 
		try
		{ 
		objXmlHttp=new ActiveXObject(strName)
		objXmlHttp.onreadystatechange=handler 
		return objXmlHttp
		} 	
		catch(e)
		{ 
		alert("Error. Scripting for ActiveX might be disabled") 
		return 
		} 
		} 
		if (navigator.userAgent.indexOf("Mozilla")>=0)
		{
		objXmlHttp=new XMLHttpRequest()
		objXmlHttp.onload=handler
		objXmlHttp.onerror=handler 
		return objXmlHttp
		}
		}
		
		



/**********************userststus Written By Sreejish *************************************************************/
					function productstatus(status){
					
					var url="productmanagerajax.php";
					url=url+"?status="+status;
					
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponseproduct);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					}
					
					function handleHttpResponseproduct() {
					if (xmlHttp.readyState == 4) {
					//alert(xmlHttp.responseText);
					document.getElementById("productmanagerajax").innerHTML=xmlHttp.responseText;
					  
					}
				}
				
/*********************END *********************************************************************************************/

/**********************pageusermanager Written By Sreejish *************************************************************/
				function pageproductmanager(page,status){
					
					var url="productmanagerajax.php";
					url=url+"?page="+page;
					url=url+"&status="+status;
					
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponseproduct);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					
				}
				
/*********************END *********************************************************************************************/

/**********************statuschangefaq Written By Sreejish *************************************************************/
					function makechangestatusproduct(status,productid,page){
					var status = (status=='Active')? 'Inactive' : 'Active';
					con=confirm("Are you sure you want to make this  "+status+"?");
					if(con){
						var statuschangeproduct="Yes";
						var url="productmanagerajax.php";
						url=url+"?productid="+productid;
						url=url+"&page="+page;
						url=url+"&cstatus="+status;
						url=url+"&statuschangeproduct="+statuschangeproduct;
						
						var myRandom=parseInt(Math.random()*99999999);  // cache buster
						xmlHttp=GetXmlHttpObject(handleHttpResponseproduct);
						xmlHttp.open("GET",url);
						xmlHttp.send(null);
					 }
					}
					
					
				
/*********************END *********************************************************************************************/

/**********************pageusermanager Written By Sreejish *************************************************************/
				function categorystatus(status){
					
					var url="categorymanagerajax.php";
					url=url+"?status="+status;
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponsecategory);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					
				}
				
				function handleHttpResponsecategory() {
					if (xmlHttp.readyState == 4) {
					//alert(xmlHttp.responseText);
					document.getElementById("usermanagerajax").innerHTML=xmlHttp.responseText;
					  
					}
				}
/**********************pageusermanager Written By Sreejish *************************************************************/
				function categorypagination(limitst,status){
					
					var url="categorymanagerajax.php";
					url=url+"?limitst="+limitst;
					url=url+"&status="+status;
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponsecategory);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					
				}				
/*********************END *********************************************************************************************/
/**********************pageusermanager Written By Sreejish *************************************************************/
				function chnagestatuscategory(categoryid,status,limitst){
					var shstatus = (status=='Active')? 'Inactive' : 'Active';
					con=confirm("Are you sure you want to make this "+shstatus+"?");
					if(con){
					var changestatus="Yes";
					var url="categorymanagerajax.php";
					url=url+"?limitst="+limitst;
					url=url+"&status="+status;
					url=url+"&categoryid="+categoryid;
					url=url+"&changestatus="+changestatus;
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponsecategory);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					}
					
				}				
/*********************END *********************************************************************************************/
/**********************REPORT*************************************************************/
				function srchpickupreoprt(){
					startdate=document.getElementById("startdate").value;
					enddate=document.getElementById("enddate").value;
					var url="reportmanagerajax.php";
					url=url+"?startdate="+startdate;
					url=url+"&enddate="+enddate;
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponsereportq);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					
				}
				
				
/*********************END *********************************************************************************************/

/**********************REPORT*************************************************************/
				function srchmasspreoprt(){
					startdate=document.getElementById("startdate").value;
					enddate=document.getElementById("enddate").value;
					var url="reportonmassajax.php";
					url=url+"?startdate="+startdate;
					url=url+"&enddate="+enddate;
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponsereportq);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					
				}
				function handleHttpResponsereportq() {
					if (xmlHttp.readyState == 4) {
					//alert(xmlHttp.responseText);
					document.getElementById("usermanagerajax").innerHTML=xmlHttp.responseText;
					  
					}
				}
				
/*********************END *********************************************************************************************/


/**********************estoreproductstatus Written By meera *************************************************************/
					function estoreproductstatus(status){
					
					var url="estoremanagerajax.php";
					url=url+"?status="+status;
					
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponseestoreproduct);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					}
					
					function handleHttpResponseestoreproduct() {
					if (xmlHttp.readyState == 4) {
					//alert(xmlHttp.responseText);
					document.getElementById("estoremanagerajax").innerHTML=xmlHttp.responseText;
					  
					}
				}
				
/*********************END *********************************************************************************************/
/**********************estorepageproductmanager Written By meera *************************************************************/
				function estorepageproductmanager(page,status){
					
					var url="estoremanagerajax.php";
					url=url+"?page="+page;
					url=url+"&status="+status;
					
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponseestoreproduct);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					
				}
				
/*********************END *********************************************************************************************/

/**********************makechangestatusestore Written By meera *************************************************************/
					function makechangestatusestore(status,productid,page){
					var status = (status=='Active')? 'Inactive' : 'Active';
					con=confirm("Are you sure you want to make this  "+status+"?");
					if(con){
						var statuschangeestore="Yes";
						var url="estoremanagerajax.php";
						url=url+"?productid="+productid;
						url=url+"&page="+page;
						url=url+"&cstatus="+status;
						url=url+"&statuschangeestore="+statuschangeestore;
						
						var myRandom=parseInt(Math.random()*99999999);  // cache buster
						xmlHttp=GetXmlHttpObject(handleHttpResponseestoreproduct);
						xmlHttp.open("GET",url);
						xmlHttp.send(null);
					 }
					}
					
					
				
/*********************END *********************************************************************************************/

/**********************delFeetatus Written By meera *************************************************************/
					function delFeestatus(status){
					
					var url="deliveymanagerajax.php";
					url=url+"?status="+status;
					
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponsedelivery);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					}
					
					function handleHttpResponsedelivery() {
					if (xmlHttp.readyState == 4) {
					//alert(xmlHttp.responseText);
					document.getElementById("delmanagerajax").innerHTML=xmlHttp.responseText;
					  
					}
				}
				
//*********************END *********************************************************************************************/
/**********************pagedelsmanager Written By meera *************************************************************/
				function pagedelsmanager(page,status){
					
					var url="deliveymanagerajax.php";
					url=url+"?page="+page;
					url=url+"&status="+status;
					
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponsedelivery);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					
				}
				
/*********************END *********************************************************************************************/
/**********************statuschangefaq Written By meera *************************************************************/
					function makechangestatusdel(status,deliveryid,page){
					var status = (status=='Active')? 'Inactive' : 'Active';
					con=confirm("Are you sure you want to make "+status+"?");
					if(con){
						var statuschangenews="Yes";
						var url="deliveymanagerajax.php";
						url=url+"?deliveryid="+deliveryid;
						url=url+"&page="+page;
						url=url+"&cstatus="+status;
						url=url+"&statuschangenews="+statuschangenews;
						
						var myRandom=parseInt(Math.random()*99999999);  // cache buster
						xmlHttp=GetXmlHttpObject(handleHttpResponsedelivery);
						xmlHttp.open("GET",url);
						xmlHttp.send(null);
					 }
					}
					
					
				
/*********************END *********************************************************************************************/


/**********************REPORT*************************************************************/
				function srchpurchasepreoprt(){
					productid=document.getElementById("productid").value;
					deliveryid=document.getElementById("deliveryid").value;
					Stock=document.getElementById("Stock").value;
					var url="reportmanagerajax.php";
					url=url+"?productid="+productid;
					url=url+"&deliveryid="+deliveryid;
					url=url+"&Stock="+Stock;
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponseesotrereport);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					
				}
				
				function handleHttpResponseesotrereport() {
					if (xmlHttp.readyState == 4) {
					//alert(xmlHttp.responseText);
					document.getElementById("reportmanagerajax").innerHTML=xmlHttp.responseText;
					  
					}
				}
				
				
/*********************END *********************************************************************************************/

/**********************CATEGORY  Written By meera *************************************************************/
					function estoreCategorystatus(status){
					
					var url="catogorymanagerajax.php";
					url=url+"?status="+status;
					
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponseestoreCategory);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					}
					
					function handleHttpResponseestoreCategory() {
					if (xmlHttp.readyState == 4) {
					//alert(xmlHttp.responseText);
					document.getElementById("categorymanagerajax").innerHTML=xmlHttp.responseText;
					  
					}
				}
				
/*********************END *********************************************************************************************/
/**********************estorepageCategorymanager Written By meera *************************************************************/
				function estorepageCategorymanager(page,status){
					
					var url="catogorymanagerajax.php";
					url=url+"?page="+page;
					url=url+"&status="+status;
					
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponseestoreCategory);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					
				}
				
/*********************END *********************************************************************************************/
/**********************makechangestatusCategory Written By meera *************************************************************/
					function makechangestatusCategory(status,categoryid,page){
					var status1 = (status=='Active')? 'Inactive' : 'Active';
					con=confirm("Are you sure you want to make this  "+status1+"?");
					if(con){
						var statuschangeestore="Yes";
						var url="catogorymanagerajax.php";
						url=url+"?categoryid="+categoryid;
						url=url+"&page="+page;
						url=url+"&status="+status;
						url=url+"&statuschangeestore="+statuschangeestore;
						
						var myRandom=parseInt(Math.random()*99999999);  // cache buster
						xmlHttp=GetXmlHttpObject(handleHttpResponseestoreCategory);
						xmlHttp.open("GET",url);
						xmlHttp.send(null);
					 }
					}
					
					
				
/*********************END *********************************************************************************************/


/**********************CATEGORY  Written By meera *************************************************************/
					function Homedelstatus(invoicestatID){
					
					var url="homedeliverymngrajax.php";
					url=url+"?invoicestatID="+invoicestatID;
					
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponseestoreHomedeivery);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					}
					
					
					function handleHttpResponseestoreHomedeivery() {
					if (xmlHttp.readyState == 4) {
					//alert(xmlHttp.responseText);
					document.getElementById("homereportmanagerajax").innerHTML=xmlHttp.responseText;
					  
					}
				}
				
				
/*********************END *********************************************************************************************/

/**********************CATEGORY  Written By meera *************************************************************/
					function Pickupstatus(invoicestatID){
					
					var url="farmpickupmngrajax.php";
					url=url+"?invoicestatID="+invoicestatID;
					
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponseestorePickup);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					}
					
					
					function handleHttpResponseestorePickup() {
					if (xmlHttp.readyState == 4) {
					//alert(xmlHttp.responseText);
					document.getElementById("farmpickupmanagerajax").innerHTML=xmlHttp.responseText;
					  
					}
				}
				
				
/*********************END *********************************************************************************************/
/**********************CATEGORY  Written By meera *************************************************************/
					function Estoreproctsview(categoryid){
					
					var url="estore_productsajax.php";
					url=url+"?categoryid="+categoryid;
					
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponseestoreProd);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					}
					
					
					function handleHttpResponseestoreProd() {
					if (xmlHttp.readyState == 4) {
					//alert(xmlHttp.responseText);
					document.getElementById("prodajax").innerHTML=xmlHttp.responseText;
					  
					}
				}
				
				
/*********************END *********************************************************************************************/
/**********************FarmBasket  Written By meera *************************************************************/
					function updatecart(status){
					
					var url="estore_farmbasketajax.php";
					url=url+"?status="+status;
					
					
					var myRandom=parseInt(Math.random()*99999999);  // cache buster
					xmlHttp=GetXmlHttpObject(handleHttpResponseestoreFarmBasket);
					xmlHttp.open("GET",url);
					xmlHttp.send(null);
					}
					
					function handleHttpResponseestoreFarmBasket() {
					if (xmlHttp.readyState == 4) {
					//alert(xmlHttp.responseText);
					document.getElementById("farmbsketajax").innerHTML=xmlHttp.responseText;
					  
					}
				}
				
/*********************END *********************************************************************************************/
       function updatecart(ct_id,productid,ct_qty){
					
						var Update="Yes";
						var url="estore_farmbasketajax.php";
						url=url+"?ct_id="+ct_id;
						url=url+"&productid="+productid;
						url=url+"&ct_qty="+ct_qty;
						url=url+"&Update="+Update;
						
						var myRandom=parseInt(Math.random()*99999999);  // cache buster
						xmlHttp=GetXmlHttpObject(handleHttpResponsefarmbasket);
						xmlHttp.open("GET",url);
						xmlHttp.send(null);
					}
					
					function handleHttpResponsefarmbasket() {
					if (xmlHttp.readyState == 4) {
					//alert(xmlHttp.responseText);
					document.getElementById("farmbsketajax").innerHTML=xmlHttp.responseText;
					  
					}
				}
				
				/*********************END *********************************************************************************************/
       function minuscart(ct_id,productid,ct_qty){
					
						var minusct="Yes";
						var url="estore_farmbasketajax.php";
						url=url+"?ct_id="+ct_id;
						url=url+"&productid="+productid;
						url=url+"&ct_qty="+ct_qty;
						url=url+"&minusct="+minusct;
						
						var myRandom=parseInt(Math.random()*99999999);  // cache buster
						xmlHttp=GetXmlHttpObject(handleHttpResponsefarmbasket);
						xmlHttp.open("GET",url);
						xmlHttp.send(null);
					}
					
	function deletecart(ct_id){
					
						var deletect="Yes";
						var url="estore_farmbasketajax.php";
						url=url+"?ct_id="+ct_id;
						url=url+"&deletect="+deletect;
						
						var myRandom=parseInt(Math.random()*99999999);  // cache buster
						xmlHttp=GetXmlHttpObject(handleHttpResponsefarmbasket);
						xmlHttp.open("GET",url);
						xmlHttp.send(null);
					}
					
					

