// HTTP通信用、共通関数

function wget(url)
{
	// 準備
	var http = null;
	if (window.XMLHttpRequest) {	// Safari, Firefox など
		http = new XMLHttpRequest();
	}
	else if (window.ActiveXObject) {	// IE
		try { http = new ActiveXObject("Msxml2.XMLHTTP"); }	// IE6
		catch (e) {
			try { http = new ActiveXObject("Microsoft.XMLHTTP"); }	// IE5
			catch (e) { return null; }	// Error
		}
	}

	// 同期通信
	http.open("GET", url, false);
	http.send(null);
	return http.responseText;
}


function dc(Q,J,C,CT)
{
	//wget("http://localhost/atarjp/cp2wa.php?q=" + Q + "&j=" + J + "&c=" + C + "&ct=" + CT);
	wget("http://atar.jp/cp2wa.php?q=" + Q + "&j=" + J + "&c=" + C + "&ct=" + CT);
}
