<!--
var AjaxQuery = {};
AjaxQuery.msgResponse = function()
{
	var xHTTP=this.newRequest();
	var xHTTP_URL='../incs_ajax/ajax_check.php?'+
	'ajax_mode='+arguments[0]+''+
	'&sql_one='+arguments[1]+''+
	'&sql_two='+arguments[2]+''+
	'&sql_three='+arguments[3];
	xHTTP.onreadystatechange = function() 
	{
		if(xHTTP.readyState == 4) 
		{
			if(xHTTP.status == 200)
			{
				openAjaxMsg(decodeURIComponent(xHTTP.responseText));
			}
		}
	}
	xHTTP.open('GET', xHTTP_URL);
	xHTTP.send(null);
}
AjaxQuery.licResponse = function()
{
	var xHTTP=this.newRequest();
	var xHTTP_URL='../incs_ajax/ajax_check.php?'+
	'ajax_mode='+arguments[0]+''+
	'&sql_one='+arguments[1]+''+
	'&sql_two='+arguments[2]+''+
	'&sql_three='+arguments[3];
	xHTTP.onreadystatechange = function() 
	{
		if(xHTTP.readyState == 4) 
		{
			if(xHTTP.status == 200)
			{
				openAjaxMsgLic(decodeURIComponent(xHTTP.responseText));
			}
		}
	}
	xHTTP.open('GET', xHTTP_URL);
	xHTTP.send(null);
}
AjaxQuery.postResponse = function()
{
	var xHTTP=this.newRequest();
	var xHTTP_URL='../incs_ajax/ajax_'+arguments[0]+'.php?'+
	'ajax_mode='+arguments[1]+''+
	'&sql_one='+arguments[2]+''+
	'&sql_two='+arguments[3];
	xHTTP.onreadystatechange = function() 
	{
		if(xHTTP.readyState == 4) 
		{
			if(xHTTP.status == 200)
			{
				openAjaxPostMsg(decodeURIComponent(xHTTP.responseText));
			}
		}
	}
	xHTTP.open('GET', xHTTP_URL);
	xHTTP.send(null);
}
AjaxQuery.newRequest = function()
{
	var x = null; 
	if(window.XMLHttpRequest)
    {	
        x = new XMLHttpRequest();
    }
    else if(window.ActiveXObject)
    {
		try
		{
			x = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			x = new ActiveXObject("Microsoft.XMLHTTP");
		}
    }
	return x;
}
function openWindow(win_url, win_name, win_propertys, win_left, win_top)
{
	var winObj = null;
	if(win_name)
	{
		winObj = window.open(win_url, win_name, win_propertys);
		if(userAgentCheck() !=4)
		{
			winObj.moveTo(win_left,win_top);
		}
	}
	else
	{
		winObj = window.open(win_url);
	}
	if(!winObj)
	{
		window.alert('ÆË¾÷Â÷´ÜÀ» ÇØÁ¦ÇØÁÖ¼¼¿ä.');
		return;
	}
}
function openSmsPage()
{
	var frm = document.getElementById('sms_form');
	var phone_num;
	var SmsMsg;
	if(frm.sms_user.value =='')
	{
		window.alert('¼º¸íÀ» Àû¾îÁÖ¼¼¿ä');
		frm.sms_user.focus();
		return;
	}
	if(frm.phone_1.value =='')
	{
		window.alert('Áö¿ª¹øÈ£/ÇÚµåÆù±¹¹øÀ» Àû¾îÁÖ¼¼¿ä');
		frm.phone_1.focus();
		return;
	}
	else
	{
		if(frm.phone_1.length < 2)
		{
			window.alert('Áö¿ª¹øÈ£/ÇÚµåÆù±¹¹øÀ» ´Ù½ÃÀû¾îÁÖ¼¼¿ä');
			frm.phone_1.value='';
			frm.phone_1.focus();
			return;
		}
		if(InspectData.checkNum(frm.phone_1.value) == false)
		{
			alert('¼ýÀÚ¸¸À» Àû¾îÁÖ¼¼¿ä.');
			frm.phone_1.value='';
			frm.phone_1.focus();
			return;
		}
	}
	if(frm.phone_2.value =='')
	{
		window.alert('±¹¹øÀ» Àû¾îÁÖ¼¼¿ä');
		frm.phone_2.focus();
		return;
	}
	else
	{
		if(InspectData.checkNum(frm.phone_2.value) == false)
		{
			alert('¼ýÀÚ¸¸À» Àû¾îÁÖ¼¼¿ä.');
			frm.phone_2.value='';
			frm.phone_2.focus();
			return;
		}
	}
	if(frm.phone_3.value =='')
	{
		window.alert('¹øÈ£¸¦ Àû¾îÁÖ¼¼¿ä');
		frm.phone_3.focus();
		return;
	}
	else
	{
		if(InspectData.checkNum(frm.phone_3.value) == false)
		{
			alert('¹øÈ£¸¦ Àû¾îÁÖ¼¼¿ä.');
			frm.phone_3.value='';
			frm.phone_3.focus();
			return;
		}
	}
	if(frm.post_sido3.value =='')
	{
		window.alert('°ÅÁÖÁö¸¦ Àû¾îÁÖ¼¼¿ä');
		frm.post_sido3.focus();
		return;
	}
	if(frm.post_sido4.value =='')
	{
		window.alert('ÀÌ»çÁö¸¦ Àû¾îÁÖ¼¼¿ä');
		frm.post_sido4.focus();
		return;
	}
	if(frm.sql_3.value =='')
	{
		window.alert('ÀÌ»çÀÏÀ» Àû¾îÁÖ¼¼¿ä');
		frm.sql_3.focus();
		return;
	}
	phone_num = frm.phone_1.value+frm.phone_2.value+frm.phone_3.value;
	SmsMsg = frm.sms_user.value + " : " + frm.big_no.value + " : " + frm.post_sido3.value + " : " + frm.post_sido4.value + " : " + frm.sql_3.value
	frm.title.value=frm.sms_user.value;
	frm.smsbody.value=SmsMsg;
	frm.callback.value=phone_num;
	frm.submit();
}
function viewFlash(u, w, h)
{
	document.write("<embed src='"+u+"' width='"+w+"' height='"+h+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>");
}
function userAgentCheck()
{
	var userAppName = navigator.userAgent;
	var userAppCheck;
	if(userAppName.indexOf('MSIE') !=-1)
	{
		userAppCheck=0;
	}
	else if(userAppName.indexOf('Firefox') !=-1)
	{
		userAppCheck=1;
	}
	else if(userAppName.indexOf('Opera') !=-1)
	{
		userAppCheck=2;
	}
	else if(userAppName.indexOf('Safari') !=-1)
	{
		userAppCheck=3;
		if(userAppName.indexOf('Chrome') !=-1)
		{
			userAppCheck=4;
		}
	}
	else
	{
		userAppCheck=5;
	}
	return userAppCheck;
};
function freesize(v, s, size_1, size_2)
{
	var sizeform=document.getElementById(s);
	var sizeform_value=parseInt(sizeform.style.height);
	if(v == 1) 
	{
		if(sizeform_value > parseInt(size_1))
		{
			sizeform.style.height = (sizeform_value - parseInt(size_2))+'px';
		}
	}
	else if(v == 2) 
	{
		sizeform.style.height = (sizeform_value + parseInt(size_2))+'px';
	}
	else
	{
		sizeform.style.height = parseInt(size_1)+'px';
	}
}
function scrollPos()
{
	var d;
	if(userAgentCheck() < 3)
	{
		d=document.documentElement;
	}
	else
	{
		d=document.body;
	}
	d.scrollTop=0;
}
//-->