
// ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------
// This software is copyright ? 2006 onwards by soniktechnologies.in
// Sonik Technologies Pvt Ltd - technical internet software security strategy consultants
// 
// Intellectual property rights and copyright title are vested with Sonik Technologies.
// Title to copyright in this software and any associated documentation will at all times //remain
// with the copyright holder.
// 
// This source file may contain confidential information or data and may be Legally //Privileged.
// Reproduction is not authorised without prior written agreement from the copyright holder.
// 
// Originally developed by Nischal Soni  (nischal.soni@gmail.com).
// www.soniktechnologies.in
// ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------

// declare new variables for each new div that you add, and link to the div by ID
// var region_div = document.getElementById("region_div");
var doc = null;

function ajax()
{
    if (window.XMLHttpRequest) {
        try {
            doc = new XMLHttpRequest();
        } catch(e)  {}
    } else if (window.ActiveXObject) {
        try {
            doc = new ActiveXObject('Msxml2.XMLHTTP');
        } catch(e)  {
          try {
              doc = new ActiveXObject('Microsoft.XMLHTTP');
          } catch(e)  {}
        }
    }
}
function Subcheck(sub_id){
	
	 ajax();
		alert(sub_id);
		// Load the result from the response page
		// ** As far a I know firefox will only load a document on the SAME domain!!	
	    if (doc){
	       //destination.innerHTML = "Loading data...";	
	       doc.open("GET", "location.php?section=subcategory&sub_id="+sub_id, false);
	       doc.send(null);
	    	// Write the response to the div	    	
			//alert(doc.responseText);
			//document.getElementById('subcat_div').style.display = 'block';
	       document.getElementById('subcat_div').innerHTML = doc.responseText;
           
	    }	 
	 
	 }

function bus(id){
	
	  ajax();
		//alert(id);
		// Load the result from the response page
		// ** As far a I know firefox will only load a document on the SAME domain!!	
	  if (doc){
	       //destination.innerHTML = "Loading data...";	
	       doc.open("GET", "location.php?section=business_category&id="+id, false);
	       doc.send(null);
	    	// Write the response to the div	    	
			//alert(doc.responseText);
			//document.getElementById('subcat_div').style.display = 'block';
	       document.getElementById('sub_category').innerHTML = doc.responseText;
           
	    }	
	 
	 }






