ajax.prototype.sendRequest= function(url,callback){ 
	var xmlHttp = this.xmlHttp; 
	var connect_page_try=0;

	try {
		xmlHttp.open("GET", url, true);
		xmlHttp.send(null);
	}
	catch(e) {
		connect_page_try++;
		if(connect_page_try<3) {
			alert('¼­¹ö¿ÍÀÇ Åë½Å¿¡ ½ÇÆÐÇÏ¿´½À´Ï´Ù. Àç½Ãµµ ÇÕ´Ï´Ù. try : #' + connect_page_try);			
		}
		else {
			alert('¼­¹ö¿ÍÀÇ Åë½Å¿¡ ½ÇÆÐÇÏ¿´½À´Ï´Ù.');
			//location.href="/";
			return false;
		}
	}

    xmlHttp.onreadystatechange = function() {
		if(xmlHttp.readyState == 4&&xmlHttp.status == 200) {
			callback(xmlHttp);
		}
	}
}

ajax.prototype.check_made_xmlHttp= function(){ 
	if(!this.xmlHttp) return false; 
	else return true; 
}

ajax.prototype.debug= function(){ 
	alert(this.xmlHttp.responseText);
}
