


//==================================================================
//                        ·Î±×¾Æ¿ô
//==================================================================
function FN_LogOut(){
	var result = confirm("·Î±×¾Æ¿ô ÇÏ½Ã°Ú½À´Ï±î?")
	if (result) {
		document.location.href = "/include/login/logout.asp";
	}
}



//==================================================================
//                        XMLHTTP
//==================================================================
function FN_XmlHttpPost(url, returnFunction)
{
	var xmlhttp = false;
	if(window.XMLHttpRequest)
	{
		xmlhttp = new XMLHttpRequest();
	}
	else
	{
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}

	xmlhttp.open("POST", url, true);
	xmlhttp.onreadystatechange = function()
	{
		if(xmlhttp.readyState == 0)
		{//UNINITIALIZED
		}
		else if(xmlhttp.readyState == 1)
		{//LOADING
		}
		else if(xmlhttp.readyState == 2)
		{//LOADED
		}
		else if(xmlhttp.readyState == 3)
		{//INTERACTIVE
		}
		else if(xmlhttp.readyState == 4)
		{//COMPLETE
			if(xmlhttp.status == 200)   //200 = Á¤»óÃ³¸®
			{
				eval(returnFunction + '(xmlhttp.responseText);');
			}
			else
			{
				alert('¿À·ù : ' + xmlhttp.responseText);
			}
		}
	}
	xmlhttp.send();
}



function FN_GetXmlDom() {
	var xmlDomProgIDs = [
							"MSXML2.DOMDocument.6.0",
							"MSXML2.DOMDocument.5.0",
							"MSXML2.DOMDocument.4.0",
							"MSXML2.DOMDocument.3.0",
							"MSXML2.DOMDocument",
							"Microsoft.XmlDom"];

	for(var i = 0; i < xmlDomProgIDs.length; i++)
	{
		try
		{
			var xmlDom = new ActiveXObject(xmlDomProgIDs[i]);
			return xmlDom;
		}
		catch(e)
		{
			// ¹«½Ã
		}
	}
	throw new "MSXML ÀÌ ¼³Ä¡µÇ¾î ÀÖÁö ¾Ê½À´Ï´Ù!";
}
