function getStatistic(themeId) { 
	var form = document.getElementById('voiceForm' + themeId);
	var req = new JsHttpRequest();
	req.onreadystatechange = function() {
    	if (req.readyState == 4) {
        	if (req.responseJS.message)
        		alert(req.responseJS.message);
        	else
        		document.getElementById('voiceFrame' + themeId).innerHTML = req.responseJS.statistic;
		}
	}
	req.open(null, 'voice/statistic.php', true);
	req.send({form: form});
	//req.send({themeId: document.getElementById('themeId').value});
}

function makeVoice(themeId) {
	var form = document.getElementById('voiceForm' + themeId);
	var req = new JsHttpRequest();
	req.onreadystatechange = function() {
    	if (req.readyState == 4) {
        	if (req.responseJS.message)
        		alert(req.responseJS.message);
        	else
        		document.getElementById('voiceFrame' + themeId).innerHTML = req.responseJS.statistic;
		}
	}
	req.open(null, 'voice/voice.php', true);
	req.send({form: form});
}