function rate_idol(_idol_id, _rating) {
	var _xmlhttp;
	try {
		_xmlhttp = new XMLHttpRequest();
	} catch(e) {
		try {
			_xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			try {
				_xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e) {
				document.getElementById("submit_rate").style.display = "";
				return false;
			}
		}
	}
	if(_idol_id) {
		_url = "http://" + window.location.hostname + "/library/action/rate.php?id\75" + _idol_id + "\46rating\75" + _rating + "\46js\751";
		_xmlhttp.open("GET", _url, true);
		_xmlhttp.onreadystatechange = function() {
			if(_xmlhttp.readyState == 4) {
				document.getElementById("rating").options[0].selected = true;
				document.getElementById("rate_result").innerHTML = _xmlhttp.responseText;
			}
		}
		_xmlhttp.send(null);
	}
}

