//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
																	//°øÅëº¯¼ö
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var xmlHttp;

//Create XMLHttpRequest 
function createXMLHttpRequest(){
	if(window.ActiveXObject){
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}else if(window.XMLHttpRequest){
		xmlHttp = new XMLHttpRequest();
	}
}

//ÀÛ¾÷¿äÃ»[Not Return]
function ExecRunHttp(url,param){
	var thisValue;
	createXMLHttpRequest();
	xmlHttp.onreadystatechange = thisValue = runProcess;
	xmlHttp.open("POST",url, false);
	xmlHttp.setrequestHeader("Content-Type","application/x-www-form-urlencoded;");
	xmlHttp.send(param);
	return thisValue;
}

//ÀÛ¾÷¿äÃ»[return-Text]
function ExecReturnHttp(url,parma){
	var thisValue;
	createXMLHttpRequest();
	xmlHttp.onreadystatechange =  returnProcess;
	xmlHttp.open("POST",url, false);
	xmlHttp.setrequestHeader("Content-Type","application/x-www-form-urlencoded;");	
	xmlHttp.send(parma);
	return  xmlHttp.responseText;
}

//ÀÛ¾÷¿äÃ»[return-Object]
function ExecReturnXml(url,parma){
	var thisValue;
	createXMLHttpRequest();
	xmlHttp.onreadystatechange =  returnProcess;
	xmlHttp.open("POST",url,false);
	xmlHttp.setrequestHeader("Content-Type","application/x-www-form-urlencoded;");	
	xmlHttp.send(parma);
	return xmlHttp;
}
//ÀÛ¾÷¿äÃ»[¸®ÅÏ°ªÀÌ ´ÜÀÏ°ª]
function runProcess(){
	if(xmlHttp.readyState == 4){	
		if(xmlHttp.status == 200)	{			
			if(xmlHttp.responseText =="1"){
				return  true;
			}else if(xmlHttp.responseText =="0"){
				return false;
			}			
		}
	}
}

//ÀÛ¾÷¿äÃ»[¸®ÅÏ°ªÀÌ ´ÙÁß°ª]
function returnProcess(){
	switch(xmlHttp.readyState){
		case 1:
			 
		break;
		case 2:

		break;
		case 3:

		break;
		case 4:
			if(xmlHttp.status == 200)	{
				return  xmlHttp;
			}else{			


			}
		break;
	}
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Member °ü·Ã
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//¾ÆÀÌµð|°³ÀÎ¹øÈ£(ÁÖ¹Î/»ç¾÷ÀÚ)|  Áßº¹Ã¼Å©
function httpRequest_overlapingAccountCheck(checkType,checkValue){
	var url,param;
	var returnValue = "x";
	url		= "/logic/member/overlapingAccount_proc.asp";
	param	=				  "checkType="		 + checkType;
	param	= param + "&checkValue="	 + checkValue;	
	returnValue = ExecReturnHttp(url,param);
	//alert(returnValue);
	if(returnValue == "o"){
		return true
	}else{
		return false
	}
}

//¸ÞÀÏ¸®½ºÆ® ¹Þ¾Æ¿À±â
function httpRequest_mailList(searchKey,searchText,temp){
	var url,param;
	var returnValue = "x";
	url		= "/logic/member/xml_mailList_proc.asp";
	param	=				  "searchKey="		 + searchKey;
	param	= param + "&searchText="	 + searchText;	
	return  ExecReturnXml(url,param);
}


//BBS- ±ÛÁ¦¸ñ Å¬¸¯½Ã HITÃß°¡
function httpRequest_hitPlus(idx,bbs_code){
	var url,param;
	url		= "/logic/bbs/hitCount_proc.asp";
	param	=				  "idx="					+ idx;
	param	= param + "&bbs_code="	+ bbs_code;	
	return  ExecRunHttp(url,param)
}


