/* The following function creates an XMLHttpRequest object... */function createRequestObject(){	//declare the variable to hold the object.	var request_o;		//find the browser name	var browser = navigator.appName; 		if(browser == "Microsoft Internet Explorer")	{		/* Create the object using MSIE's method */		request_o = new ActiveXObject("Microsoft.XMLHTTP");	}	else	{		/* Create the object using other browser's method */		request_o = new XMLHttpRequest();	}		//return the object	return request_o; }/* The variable http will hold our new XMLHttpRequest object. */var http = createRequestObject(); /* Function called to get the product categories list */function getLogs(myvalue){	/* Create the request. The first argument to the open function is the method (POST/GET) */	http.open('get', 'globals/scripts/mallbuild.php?category='+ myvalue);	/* Define a function to call once a response has been received */	http.onreadystatechange = handleLogs; 	/* Send the data. We use something other than null when we are sending using the POST		method. */	http.send(null);}/* Function called to handle the list that was returned from the internal_request.php file.. */function handleLogs(){	/* Make sure that the transaction has finished. The XMLHttpRequest object 		has a property called readyState with several states:		0: Uninitialized		1: Loading		2: Loaded		3: Interactive		4: Finished */	if(http.readyState == 4)	{		//Finished loading the response		/* We have got the response from the server-side script */		var response = http.responseText;		/* And now we want to change the logs contenet */		document.getElementById('link_detail').innerHTML = response;	}}
