var htmlcode;

function createXmlHttp() {
	if(window.XMLHttpRequest) { return new XMLHttpRequest();
	} else if(window.ActiveXObject) {
		try { return new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) { return new ActiveXObject("Microsoft.XMLHTTP"); }
	}
	return null;
}

function Vote_Boy(value) {
	var xmlHttp = createXmlHttp();

	if ( xmlHttp == null ) { return null; }

	xmlHttp.open("GET",'in.cgi?cd='+value);
	xmlHttp.onreadystatechange = function() {
		if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
			data = xmlHttp.responseText;
			alert(data);
		}
	}
	xmlHttp.send(null);
}

function Vote_Lady(value) {
	var xmlHttp = createXmlHttp();

	if ( xmlHttp == null ) { return null; }

	xmlHttp.open("GET",'on.cgi?cd='+value);
	xmlHttp.onreadystatechange = function() {
		if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
			data = xmlHttp.responseText;
			alert(data);
		}
	}
	xmlHttp.send(null);
}

