function httpRequestFunc(value, contentBoxId, target) {

	// Create new JsHttpRequest object.
	var req = new JsHttpRequest();
	// Code automatically called on load finishing.
	req.onreadystatechange = function() {

		if (req.readyState == 2) {
			//$('$contentBoxId').innerHTML = '1';
		}
		if (req.readyState == 3) {
			//$('$contentBoxId').innerHTML = '2';
		}
		if (req.readyState == 4) {
			$(contentBoxId).innerHTML = req.responseText.length ? req.responseText : req.responseJS.content;
		}
	}

	// Prepare request object (automatically choose GET or POST).
	req.open(null, target, true);
	// Send data to backend.
	req.send( value );
}
