function showComment() {
	var NameId = document.getElementById('showComment');
	NameId.style.display = 'inline';
	document.frmInfo.submit.focus();
}

function calculate(value) {
    var req = new JsHttpRequest();
	var checked_reg=0;
	document.getElementById('spinner').style.display = 'block';
	document.getElementById('button').style.display = 'none';
	req.onreadystatechange = function() {
        if (req.readyState == 4) {
			document.getElementById('result').innerHTML = req.responseJS.result;
        }
    }
    req.open(null, '/JsHttpRequest/express.php', true);
    req.send( { q: value } );
}

