function record_close(the_id){	var rqst_link = "http://lawyerswellbeing.com/php_inc/record_close.php";	var postData = "id="+the_id;//	alert("record close: "+rqst_link+"?"+postData);	sendRequest(rqst_link,record_close_process,postData);}function record_close_process(req) {	var this_response = req.responseText;	//	alert(this_response);	}var http;// contact external php script, return datafunction sendRequest(url,callback,postData) {	var req = createXMLHTTPObject();	if (!req) return;	var method = (postData) ? "POST" : "GET";	req.open(method,url,true);	req.setRequestHeader('User-Agent','XMLHTTP/1.0');	if (postData)		req.setRequestHeader('Content-type','application/x-www-form-urlencoded');	req.onreadystatechange = function () {		if (req.readyState != 4) return;		if (req.status != 200 && req.status != 304) {//			alert('header: '+req.setRequestHeader+'; HTTP error ' + req.status);			return;		}		var the_response = req.responseText;		callback(req);	}//	window.alert("req.readyState: "+req.readyState);	if (req.readyState == 4) return;	req.send(postData);//	alert("url: "+url+"?"+postData);}var XMLHttpFactories = [	function () {return new XMLHttpRequest()},	function () {return new ActiveXObject("Msxml2.XMLHTTP")},	function () {return new ActiveXObject("Msxml3.XMLHTTP")},	function () {return new ActiveXObject("Microsoft.XMLHTTP")}];// make connection to external filefunction createXMLHTTPObject() {	var xmlhttp = false;	for (var i=0;i<XMLHttpFactories.length;i++) {		try {			xmlhttp = XMLHttpFactories[i]();		}		catch (e) {			continue;		}		break;	}	return xmlhttp;}function toggle_more(more_id){	var the_box = document.getElementById(more_id);	var the_summ = document.getElementById(more_id + "_summ");	var the_link = document.getElementById(more_id + "_lnk");	if(the_box.style.display != "block"){		the_box.style.display = "block";		the_summ.style.display = "none";		the_link.innerHTML = "hide";	}else{		the_box.style.display = "none";		the_link.innerHTML = "more...";		the_summ.style.display = "block";	}}function toggle_author(author_id){	var the_box = document.getElementById(author_id);	if(the_box.style.display != "block"){		the_box.style.display = "block";	}else{		the_box.style.display = "none";	}}
