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
}


/* The variable http will hold our new XMLHttpRequest object. */
var http = createRequestObject(); 


/* approve an applicant */
function get_advanced_search(){

	http.open('get', 'get_advanced_member_search.php');
	http.onreadystatechange  = function() { get_advanced_search_action() }
	//confirm("Are you sure you want to approve this applicant?")
	// alert(cat_id);
	http.send(null);
}
/* approve an applicant part 2*/
function get_advanced_search_action(){

	if(http.readyState == 4){ //Finished loading the response
		var response = http.responseText;
		// alert(app_id);
		document.getElementById('form_area').innerHTML = response;
	}
}
function get_advanced_search_index(){

	http.open('get', 'get_advanced_member_search.php?link=home');
	http.onreadystatechange  = function() { get_advanced_search_index_action() }
	//confirm("Are you sure you want to approve this applicant?")
	// alert(cat_id);
	http.send(null);
}
/* approve an applicant part 2*/
function get_advanced_search_index_action(){

	if(http.readyState == 4){ //Finished loading the response
		var response = http.responseText;
		// alert(app_id);
		document.getElementById('form_area_index').innerHTML = response;
	}
}
function get_basic_search(){

	http.open('get', 'get_basic_member_search.php');
	http.onreadystatechange  = function() { get_basic_search_action() }
	//confirm("Are you sure you want to approve this applicant?")
	// alert(cat_id);
	http.send(null);
}
/* approve an applicant part 2*/
function get_basic_search_action(){

	if(http.readyState == 4){ //Finished loading the response
		var response = http.responseText;
		// alert(app_id);
		document.getElementById('form_area').innerHTML = response;
	}
}
function get_basic_search_index(){

	http.open('get', 'get_basic_member_search.php?link=home');
	http.onreadystatechange  = function() { get_basic_search_index_action() }
	//confirm("Are you sure you want to approve this applicant?")
	// alert(cat_id);
	http.send(null);
}
/* approve an applicant part 2*/
function get_basic_search_index_action(){

	if(http.readyState == 4){ //Finished loading the response
		var response = http.responseText;
		// alert(app_id);
		document.getElementById('form_area_index').innerHTML = response;
	}
}