/*
	new Ajax.Request·Î WiseLog RequetÇÏÁö ¸¶½Ã°í
	wiseLogByAjax.CallAjaxPage·Î RequestÇÕ½Ã´Ù

	¿¹Á¦)
	new Ajax.Request("/wiseLog/?ST=blahblah", { method:"get" });
	-> wiseLogByAjax.CallAjaxPage("ST=blahblah");
*/

var wiseLogByAjax = new function _wiseLogByAjax () {
    this.CallAjaxPage = function(url, method, oncomplete) {
		var xmlhttp;
		var method = method == null ? "get" : method;
		var url = '/wiselog/?' + url;
		var callback = oncomplete == null ? this.CallBack_WiseLogByAjax : oncomplete;

		if (window.XMLHttpRequest) {
			// code for IE7+, Firefox, Chrome, Opera, Safari
			xmlhttp = new XMLHttpRequest();
		} else {
			// code for IE6, IE5
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}

		xmlhttp.open(method, url, true);
		xmlhttp.send(null);

		xmlhttp.onreadystatechange = function() {
			if (xmlhttp.readyState == 4) {
				callback(xmlhttp);
			}
		}
	}

    this.CallBack_WiseLogByAjax = function(res) {
		return false;
	}
}