function handleHttpResponseall()

{

  if (http.readyState == 4) {

    // Split the comma delimited response into an array

    results = http.responseText.split("$");

	

	document.getElementById("exRelatedDiv").innerHTML = "";

	document.getElementById("exRelatedDiv").innerHTML = results[0];

	//alert(results[0]);

	 results[0]="";

  }

}



function showallcategory()
{

  var urlall="catlist.php";
  http.open("GET",urlall, true); 

  http.onreadystatechange = handleHttpResponseall;
	document.getElementById('subcatid').style.display='none';
	document.getElementById('catid').style.display='block';

	 
  	http.send(null);

}
function showallsubcategory(a)
{

  var urlall="subcatlist.php?id="+a;
  http.open("GET",urlall, true); 

  http.onreadystatechange = handleHttpResponseall;
	document.getElementById('subcatid').style.display='block';
	document.frm1.id.value=a;
	document.getElementById('catid').style.display='none';
	 
  	http.send(null);

}
function dyl_get_subcategories()
{

  var urlall="sub_cat.php";
  http.open("GET",urlall, true); 

  http.onreadystatechange = handleHttpResponseall;
 
  	http.send(null);

}

function getHTTPObject() {
	  var xmlhttp;
	  /*@cc_on
	  @if (@_jscript_version >= 5)
		try {
		  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
		  try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		  } catch (E) {
			xmlhttp = false;
		  }
		}
	  @else
	  xmlhttp = false;
	  @end @*/
	  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		try {
		  xmlhttp = new XMLHttpRequest();
		} catch (e) {
		  xmlhttp = false;
		}
	  }
	  return xmlhttp;
	}

	var http = getHTTPObject(); // We create the HTTP Object
