function createRequestObject(){
	var request_o; //declare the variable to hold the object.
	var browser = navigator.appName; //find the browser name
	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 request_o; //return the object
}
var http = createRequestObject(); 
/* Function called to get the product categories list */

function getLoginId(value,val){
	if(val==1)
	{
	http.open('get', 'internal_request.php?option=2&cat='+value);	
	}
	else
	{
	http.open('get', 'internal_request.php?option=1&cat='+value);	
	}
	
			http.onreadystatechange = function(){
 	if(http.readyState == 4){ //Finished loading the response
		var response = http.responseText;	
		
		document.getElementById("front").innerHTML=response;
 	} 
	}
	http.send(null);
 }
 