function getXMLHTTP() { 
		var xmlhttp=false;	
		try{
			xmlhttp=new XMLHttpRequest();
		}
		catch(e)	{		
			try{			
				xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e){
				try{
				req = new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch(e1){
					xmlhttp=false;
				}
			}
		}
		 	
		return xmlhttp;
    }
	
	
	
	
	//submarket list show 
	
	function marketCall(id) {	
		
		
		var strURL="test.php?market="+id;
		strURL=strURL+"&sid="+Math.random()
		var req = getXMLHTTP();
		
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4 || req.readyState == "complete") {
					// only if "OK"
					if (req.status == 200) {						
						document.getElementById('submarket').innerHTML=req.responseText;						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}		
	}
	
	//sub category  list show 	
	
	function categoryCall(id) {		
		
		var strURL="test.php?category="+id;
		strURL=strURL+"&sid="+Math.random()
		var req = getXMLHTTP();
		
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4 || req.readyState == "complete") {
					// only if "OK"
					if (req.status == 200) {						
						document.getElementById('subcat').innerHTML=req.responseText;						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}		
	}
	


//Here is call Registration chek member type

function goldCall(id){
	
	var strURL="test.php?membertype="+id;
		strURL=strURL+"&sid="+Math.random()
		var req = getXMLHTTP();
		
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4 || req.readyState == "complete") {
					// only if "OK"
					if (req.status == 200) {						
						document.getElementById('member').innerHTML=req.responseText;						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}		
	
}


//Here is call productCall chek member type and product image Validation

function productCall(id){
	
	var strURL="test.php?productimage="+id;
		strURL=strURL+"&sid="+Math.random()
		var req = getXMLHTTP();
		
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4 || req.readyState == "complete") {
					// only if "OK"
					if (req.status == 200) {						
						document.getElementById('member').innerHTML=req.responseText;						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}		
	
}

//Here is call callsubcat display the list of subcate

function callsubcat(id){
	
	var strURL="test.php?catid="+id;
		strURL=strURL+"&sid="+Math.random()
		var req = getXMLHTTP();
		
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4 || req.readyState == "complete") {
					// only if "OK"
					if (req.status == 200) {						
						document.getElementById(id).innerHTML=req.responseText;						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}		
	
}
	
//Here is call callsubcat display the list of subcate

function bannertype(id){
		
	
	var strURL="test.php?banner="+id;
		strURL=strURL+"&sid="+Math.random()
		var req = getXMLHTTP();
		
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4 || req.readyState == "complete") {
					// only if "OK"
					if (req.status == 200) {						
						document.getElementById('display').innerHTML=req.responseText;						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}		
	
}
	
	
	

//submarket list show on Registration page
	
	function marketCalllist(id) {	
		
		
		var strURL="test.php?market="+id;
		strURL=strURL+"&sid="+Math.random()
		var req = getXMLHTTP();
		
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4 || req.readyState == "complete") {
					// only if "OK"
					if (req.status == 200) {						
						document.getElementById('submarketlist').innerHTML=req.responseText;						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}		
	}
	
	
	
	
	
	
	
