/// ÀÌ¿Ã¶ó½º ÆÐÄ¡ ´ëÃ³
function jsActiveXobj(){
	for(i=0; i < document.all.length;i++){
		if(document.all[i].tagName=='EMBED'||document.all[i].tagName=='OBJECT'){
			document.all[i].outerHTML=document.all[i].outerHTML;
		}
	}
}

//FlashObject("bg.swf", "1100", "500", "#000000", "transparent");
function FlashObject(swf, width, height, bgcolor, wmode, flashvars)
{
    var strFlashTag = new String();
    if (navigator.appName.indexOf("Microsoft") != -1)
    {
        strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
        strFlashTag += 'codebase="http://download.macromedia.com/pub/shoc ¡¤¡¤¡¤ %2C0%2C0 " ';
     strFlashTag += 'width="' + width + '" height="' + height + '">';
        strFlashTag += '<param name="movie" value="' + swf + '"/>';
     if(flashvars != null) {strFlashTag += '<param name="flashvars" value="' + flashvars + '"/>'};
        strFlashTag += '<param name="quality" value="best"/>';
        strFlashTag += '<param name="bgcolor" value="' + bgcolor + '"/>';
     strFlashTag += '<param name="menu" value="false"/>';
     strFlashTag += '<param name="salign" value="LT"/>';
     strFlashTag += '<param name="scale" value="noscale"/>';
     strFlashTag += '<param name="wmode" value="'+wmode+'"/>';
    strFlashTag += '<param name="allowScriptAccess" value="always"/>';
        strFlashTag += '</object>';
    }
    else
    {
        strFlashTag += '<embed src="' + swf + '" ';
        strFlashTag += 'quality="best" ';
        strFlashTag += 'bgcolor="' + bgcolor + '" ';
        strFlashTag += 'width="' + width + '" ';
        strFlashTag += 'height="' + height + '" ';
     strFlashTag += 'menu="false" ';
     strFlashTag += 'scale="noscale" ';
     strFlashTag += 'salign="LT" ';
     strFlashTag += 'wmode="'+wmode+'" ';
     strFlashTag += 'allowScriptAccess="always" ';
     if(flashvars != null) {strFlashTag += 'flashvars="' + flashvars + '" '};
        strFlashTag += 'type="application/x-shockwave-flash" ';
        strFlashTag += 'pluginspage="http://www.macromedia.com/go/getflashplayer">' ;
        strFlashTag += '</embed>';
    }
 document.write(strFlashTag);
}


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// DereamWeaver Base Function
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_changeProp(objName,x,theProp,theValue) { //v3.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Cookies Function
/*
var expDays = 30;
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function getCookieVal(offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie(name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
			return getCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break;
	}
	return null;
}
function SetCookie(name, value) {
	var argv = SetCookie.arguments;
	var argc = SetCookie.arguments.length;
	var expires = (argc > 2) ? argv[2] : null;
	if (expires != null) {
		var endDate = new Date();
		endDate.setDate( endDate.getDate() + expires );
		expires = endDate;
	}
	var path = (argc > 3) ? argv[3] : null;
	var domain = (argc > 4) ? argv[4] : null;
	var secure = (argc > 5) ? argv[5] : false;
	document.cookie = name + "=" + escape (value) +
		((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
		((path == null) ? "" : ("; path=" + path)) +
		((domain == null) ? "" : ("; domain=" + domain)) +
		((secure == true) ? "; secure" : "");
}

function DeleteCookie(name) {
	var exp = new Date();
	exp.setTime (exp.getTime() - 1);
	var cval = GetCookie (name);
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
*/

function getCookie(name) {
	var nameOfCookie = name + "=";
	var x = 0;
	while (x <= document.cookie.length) {
		var y = (x+nameOfCookie.length);
		if (document.cookie.substring(x, y) == nameOfCookie) {
			if ((endOfCookie=document.cookie.indexOf(";", y)) == -1)
				endOfCookie = document.cookie.length;
			return unescape(document.cookie.substring(y, endOfCookie));
		}
		x = document.cookie.indexOf(" ", x) + 1;
		if (x == 0)
			break;
	}
	return "";
}

function setCookie( name, value, expiredays ) {
	var todayDate = new Date();

	todayDate.setDate( todayDate.getDate() + expiredays );

	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() +";";
}


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Data Function
function trim(s) {
	var is=0, ie=s.length;
	for(;s.charAt(is)==' ' && is<ie;is++);
	for(;s.charAt(ie-1)==' ' && ie>is;ie--);
	return s.substring(is,ie);
}

// ¼ýÀÚÀÎ°¡? (int) °ªÀÌ ºÎÀûÀýÇÒ °æ¿ì true¸®ÅÏ
function Numeric_chk(num) {
	if (parseInt(num) != num) return true;
	else return false;
}
// ¼ýÀÚÀÎ°¡? (float)
function Float_chk(num) {
	if (parseFloat(num) != num) return true;
	else return false;
}


//¹Ý¿Ã¸² ÇÔ¼ö
function myRound(num, pos) {
	var posV = Math.pow(10, (pos ? pos : 2))
	return Math.round(num*posV)/posV
}

// ¹®ÀÚ¿­
function strReplace(argStr, sourceStr, targetStr) {
	var reg = new RegExp(sourceStr, "ig");
	return argStr.replace(reg, targetStr);
}

function strSearch(argStr, argSearchTarget) {
	var reg = new RegExp(argSearchTarget, "ig");
	return argStr.search(reg);
}


//// ³¯Â¥ ¼±ÅÃ Ã¢
function calendarOpen(el)
{
	var nX =  window.event.screenX;
	var nY =  window.event.screenY;
	nX  -=40;
	nY  +=10;
	//Window.status =  " X:" + nX + " ,Y:" + nY
	var returnValue = window.showModalDialog("/common/control/calendar/calendar.htm","calendarobj","dialogwidth:200px;dialogheight:205px;dialogleft="+nX+";dialogtop="+nY+";status=no;help=no;scroll=no");

	if(typeof(returnValue) != "undefined")
	{
		el.value = returnValue
	}
}

// ·¹ÀÌ´õ ¼û±â±â/º¸ÀÌ±â
function laToggleDisplay(laObj) {
	var curStatus = laObj.style.display
	if (curStatus == "none") {
		laObj.style.display = '';
	} else {
		laObj.style.display = 'none';
	}
}

// ÀÌ¹ÌÁö Å©±â Á¶Á¤    <img src="..."     onLoad="resizeImage(this, 720)">
function resizeImage(oImg, nSize) {
    if (oImg.width > nSize)
       oImg.width = nSize;
}

/*
function img_resize(){
	for(i=1;i<2;i++){
		if ( eval('document.upfile' + i + '.width > 720') ) {
			eval('document.upfile' + i + '.width = 720');
		}
	}
}
*/

// querystring.js
// Maakt associatieve array van QueryString...
// ... in client-side code.
//
// A.E.Veltstra
// 19/12/2002
//	unescape(QueryString["IetsBeschikbaar"])

var QueryString = new Array(0);
var strQS = new String(document.location);

if (strQS.indexOf('?')>0) {
	strQS = strQS.slice(strQS.indexOf('?')+1);

	QueryString = MakeArray(strQS);
} else {
	strQS = "";
}

function MakeArray(someString) {
	var AssociativeArray = new Array(0);
	var someArray = new Array(0);
	var someValue = new Array(2);
	if (someString.indexOf('&')>1) { //more name=value pairs
		someArray = someString.split('&');
		if (someArray.length) {
			for (var k=0; k<someArray.length; k++) {
				someValue = someArray[k].split('=');
				AssociativeArray.length = (k+1);
				AssociativeArray[someValue[0]] = someValue[1];
			}
		}
	} else { //just one name=value pair
		someValue = someString.split('=');
		AssociativeArray.length = 1;
		AssociativeArray[someValue[0]] = someValue[1];
	}
	return AssociativeArray;
}



function getDateStr() {
	var today = new Date()
	var t_month = (today.getMonth()+1).toString()
	if (t_month.length == 1) {
		t_month = "0" + t_month;
	}

	var t_date = (today.getDate()).toString()
	if (t_date.length == 1) {
		t_date = "0" + t_date;
	}

	return (today.getYear() +"-"+ t_month +"-"+ t_date)
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// »õÃ¢ Á¦¾î
// ¸ð´ÞÃ¢ ¶ç¿ì±â
function openModal(pUrl, pWidth, pHeight) {
	var objModal = new Object();
	objModal.opener = self;

	var vRetVal = window.showModalDialog (pUrl, objModal,"dialogwidth:"+pWidth+"px;dialogheight:"+(pHeight+20)+"px;center:yes;status=no; help=no; scroll=yes; unadorned:yes; edge;sunken; dialogHide:yes;resizable:yes;");

	if(typeof(pEle) == "object") {
		if(typeof(vRetVal) != "undefined")
		{
			pEle.value = vRetVal
		}
	}
	return vRetVal;
}

// »õÃ¢ ¶ç¿ì±â
function openNewWin(pUrl, pWinName, pWidth, pHeight) {
	var objWin = window.open(pUrl, pWinName, "scrollbars=no,status=no,toolbar=no,resizable=yes,location=no,menu=no,width=" + pWidth + ",height=" + pHeight);
	objWin.focus();
	return;
}

// ÇÑ°¡¿îµ¥ »õÃ¢ ¶ç¿ì±â
function openNewWinCenter(pUrl, pWinName, pWidth, pHeight) {
	var objWin = window.open(pUrl, pWinName, "scrollbars=no,status=no,toolbar=no,resizable=yes,location=no,menu=no,width=" + pWidth + ",height=" + pHeight + ",top=" + screenCenterTop(pHeight) + ",left=" + screenCenterLeft(pWidth));
	objWin.focus();
	return;
}

// ÇØ»óµµ °¡¿îµ¥
function screenCenterLeft(objWidth){
	var left = window.screen .availWidth  - objWidth;
	if ( left < 2 ) left =0;
	else left /= 2;
	return left;
}
function screenCenterTop(objHeight){
	var top = window.screen .availHeight  - objHeight ;
	if ( top < 2) top = 0;
	else top /= 2;
	return top;
}

// ºê¶ó¿ìÀú °¡¿îµ¥
function bodyCenterLeft(objWidth){
	var left = document.body.clientWidth  - objWidth;
	if ( left < 2 ) left =0;
	else left /= 2;
	return document.body.scrollLeft + left;
}
function bodyCenterTop(objHeight){
	var top = document.body.clientHeight - objHeight ;
	if ( top < 2) top = 0;
	else top /= 2;
	return document.body.scrollTop + top;
}


// ÇÏÀ§ iframeÃ¢¿¡¼­ º» ºê¶ó¿ìÀú °¡¿îµ¥
function parentBodyCenterLeft(objWidth){
	var left = parent.document.body.clientWidth  - objWidth;
	if ( left < 2 ) left =0;
	else left /= 2;
	return parent.document.body.scrollLeft + left;
}
function parentBodyCenterTop(objHeight){
	var top = parent.document.body.clientHeight - objHeight ;
	if ( top < 2) top = 0;
	else top /= 2;
	return parent.document.body.scrollTop + top;
}

// ÃÖ´ëÇÑ Å« »õÃ¢ ¶ç¿ì±â
function openWinFull(pUrl, pWinName) {
	var pWidth = window.screen.availWidth;
	var pHeight = window.screen.availHeight;

    var oWin = window.open(pUrl, pWinName, "left=0,top=0,width="+pWidth+",height="+pHeight+",status=no,help=no,resizable=yes");
    oWin.focus();
}

// ÃÖ´ëÇÑ Å« »õÃ¢ ¶ç¿ì±â
function openWinFullBase(pUrl, pWinName) {
	var pWidth = window.screen.availWidth;
	var pHeight = window.screen.availHeight;

    var oWin = window.open(pUrl, pWinName, "left=0,top=0,width="+pWidth+",height="+pHeight+",status=no,help=no,resizable=yes,scrollbars=yes");
    oWin.focus();
}

// ¸¶¿ì½º ÀÌº¥Æ® ÁÂÇ¥ ±â·Ï
//document.onmousedown = setConByMouseDown

//var sc_eventType
//var sc_screenX
//var sc_screenY
//function setConByMouseDown() {
//	sc_eventType = window.event.type
//	sc_screenX = window.event.screenX
//	sc_screenY = window.event.screenY
//	sc_pageY = window.event.pageY
//	return true;
//}

///////////////////////////////////////////////////////////////////////////////////////////////// »óÀ§ IFRAME Å©±â º¯°æ Type1
function getPageSize_header() {
	document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" height=\"100%\"><tr><td valign=\"top\">")
}

function getPageSize_footer() {
	document.write("</td><td width=\"1\"><img src=\"/common/blank.gif\" id=\"imgConHeight\" name=\"imgConHeight\" height=\"100%\" width=\"1\"></td></tr><tr><td colspan=2 height=\"1\"><img id=\"imgConWidth\" name=\"imgConWidth\" width=\"100%\" height=\"1\" src=\"/common/blank.gif\"></td></tr></table>")
}

function getPageSize_getWidth() {
	return getObject("imgConWidth").width;
}

function getPageSize_getHeight() {
	return getObject("imgConHeight").height;
}

function resizeParentLa(argFixWidth, argFixHeight, argAddWidth, argAddHeight) {
	//<iframe id=argWinName name=argWinName frameborder=0 scrolling=no marginwidth=0 marginheight=0 style="width:30px;height:30px;" src="<%=htmUrl%>"></iframe>

	if (getObject("imgConWidth")
		&& getObject("imgConHeight")
		&& parent.document
	) {
		if (argFixWidth != null) {
			thisWidth = argFixWidth
		} else {
			var thisWidth = getPageSize_getWidth()
		}
		if (argFixHeight != null) {
			argFixHeight = argAddHeight
		} else {
			var thisHeight = getPageSize_getHeight()
		}
		if (argAddWidth != null) {
			thisWidth += argAddWidth
		} else {
			thisWidth += parseInt(thisWidth*10/100)
		}
		if (argAddHeight != null) {
			thisHeight += argAddHeight
		} else {
			thisHeight += parseInt(thisHeight*10/100)
		}
		if (thisWidth >= window.screen .availWidth) {
			thisWidth = window.screen .availWidth - 100
		}
		if (thisHeight >= window.screen .availHeight) {
			thisHeight = window.screen .availHeight - 100
		}

		var pWin = getObjectParent(self.name)
		pWin.style.width = thisWidth
		pWin.style.height = thisHeight
	}
}

function resizeNewWin(argFixWidth, argFixHeight, argAddWidth, argAddHeight) {

	if (getObject("imgConWidth")
		&& getObject("imgConHeight")
	) {
		if (argFixWidth != null) {
			thisWidth = argFixWidth
		} else {
			var thisWidth = getPageSize_getWidth()
		}
		if (argFixHeight != null) {
			thisHeight = argFixHeight
		} else {
			var thisHeight = getPageSize_getHeight()
		}

		if (argAddWidth != null) {
			thisWidth += argAddWidth
		} else {
			thisWidth += parseInt(thisWidth*10/100)
		}
		if (argAddHeight != null) {
			thisHeight += argAddHeight
		} else {
			thisHeight += parseInt(thisHeight*10/100)
		}
		if (thisWidth >= window.screen .availWidth) {
			thisWidth = window.screen .availWidth - 50
			document.body.scroll='auto';
		}
		if (thisHeight >= window.screen .availHeight) {
			thisHeight = window.screen .availHeight - 50
			document.body.scroll='auto';
		}
		window.resizeTo(thisWidth, thisHeight)
		//window.moveTo((window.screen .availWidth - thisWidth) / 2, (window.screen .availHeight - thisHeight) /2)
	}
}


///////////////////////////////////////////////////////////////////////////////////////////////// »óÀ§ IFRAME Å©±â º¯°æ Type2
function resizeIframe(name, applyMinSize, frmMinWidth, frmMinHeight, applyMaxSize, frmMaxWidth, frmMaxHeight) {
    if (name == null || name == "") {
	   name = "winMainCon";
    }

	if (document.all)
	    var oBody   = document.frames(name).document.body;
	else
	    var oBody = document.getElementById(name).contentDocument.body;
	var oIFrame = document.getElementById(name);

	var frmWidth  = oBody.scrollWidth;
	var frmHeight = oBody.scrollHeight + 18;  // ½ºÅ©·Ñ Å©±â °í·Á

	if (applyMinSize) {
	    frmWidth  = Math.max(frmWidth, frmMinWidth);
	    frmHeight = Math.max(frmHeight, frmMinHeight);
	}
	if (applyMaxSize)
	{
	    frmWidth  = Math.min(frmWidth, frmMaxWidth);
	    frmHeight = Math.min(frmHeight, frmMaxHeight);
	}

	if (oIFrame.style.height != frmHeight) { oIFrame.style.height = frmHeight; }
	if (oIFrame.style.width != frmWidth) { oIFrame.style.width = frmWidth; }
}

function resizeIframeHiehgt(name, applyMinSize, frmMinHeight, applyMaxSize, frmMaxHeight) {
    if (name == null || name == "") {
	   name = "winMainCon";
    }

	if (document.all)
	    var oBody   = document.frames(name).document.body;
	else
	    var oBody = document.getElementById(name).contentDocument.body;
	var oIFrame = document.getElementById(name);

	var frmHeight = oBody.scrollHeight + 18;  // ½ºÅ©·Ñ Å©±â °í·Á

	if (applyMinSize) {
	    frmHeight = Math.max(frmHeight, frmMinHeight);
	}
	if (applyMaxSize)
	{
	    frmHeight = Math.min(frmHeight, frmMaxHeight);
	}

	if (oIFrame.style.height != frmHeight) { oIFrame.style.height = frmHeight; }
}


/** °´Ã¼ ¾ò±â */
function getObject(objectId){
	// checkW3C DOM, then MSIE 4, then NN 4.
	if(document.getElementById && document.getElementById(objectId)){
		return document.getElementById(objectId); // ´ëºÎºÐÀÇ ºê¶ó¿ìÀú
	}else if (document.all && document.all(objectId)){
		return document.all(objectId); // IE4¿Í 5.0
	}else if (document.layers && document.layers[objectId]){
		return document.layers[objectId];  // Netscape 4.x
	}else{
		return false;
	}
}

function getObjectOpener(objectId){
	// checkW3C DOM, then MSIE 4, then NN 4.
	if(opener.document.getElementById && opener.document.getElementById(objectId)){
		return opener.document.getElementById(objectId); // ´ëºÎºÐÀÇ ºê¶ó¿ìÀú
	}else if (opener.document.all && document.all(objectId)){
		return opener.document.all(objectId); // IE4¿Í 5.0
	}else if (opener.document.layers && document.layers[objectId]){
		return opener.document.layers[objectId];  // Netscape 4.x
	}else{
		return false;
	}
}


function getObjectParent(objectId){
	// checkW3C DOM, then MSIE 4, then NN 4.
	if(parent.document.getElementById && parent.document.getElementById(objectId)){
		return parent.document.getElementById(objectId); // ´ëºÎºÐÀÇ ºê¶ó¿ìÀú
	}else if (parent.document.all && document.all(objectId)){
		return parent.document.all(objectId); // IE4¿Í 5.0
	}else if (parent.document.layers && document.layers[objectId]){
		return parent.document.layers[objectId];  // Netscape 4.x
	}else{
		return false;
	}
}


function getObjectTop(objectId){
	// checkW3C DOM, then MSIE 4, then NN 4.
	if(top.document.getElementById && top.document.getElementById(objectId)){
		return top.document.getElementById(objectId); // ´ëºÎºÐÀÇ ºê¶ó¿ìÀú
	}else if (top.document.all && document.all(objectId)){
		return top.document.all(objectId); // IE4¿Í 5.0
	}else if (top.document.layers && document.layers[objectId]){
		return top.document.layers[objectId];  // Netscape 4.x
	}else{
		return false;
	}
}


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// XML
function importXML(objXmlDoc, strXmlUrl, strLoadFunc)
{
	if (document.implementation && document.implementation.createDocument) {
		objXmlDoc = document.implementation.createDocument("", "", null);
		eval("objXmlDoc.onload = "+strLoadFunc+";");
	}
	else if (window.ActiveXObject) {
		objXmlDoc = new ActiveXObject("Microsoft.XMLDOM");
		objXmlDoc.onreadystatechange = function () {
			eval("if (objXmlDoc.readyState == 4) "+strLoadFunc+"();")
		};
 	}
	else {
		alert('Your browser can\'t handle this script');
		return;
	}
	objXmlDoc.load(strXmlUrl);

	return objXmlDoc;
}

// URLÀÇ HTML ¼Ò½º ¾ò±â
// getData=getHttpUrl("http://www.phpschool.com/");
var objHttp = new ActiveXObject("Microsoft.xmlhttp");

function getHttpUrl(szURL) {
  objHttp.open("get",szURL,false);
  objHttp.setRequestHeader("Content-type:", "application/x-www-form-urlencoded");
  objHttp.setRequestHeader("Content-Encoding:", "euc-kr");


  objHttp.onreadystatechange = onRetriveComplete;
  try{
   objHttp.send("code=tnt2");
  }
  catch(e) {
      return ("Not exist");
  }

  if (objHttp.status > 200) {
	return("not exist<br>");
  } else
   return(objHttp.responseText);

}

function onRetriveComplete() {
  objHttp.onreadystatechange = noop; //re-entrant gate
  if (objHttp.readyState == 4) {
  }
}

function noop() {
  return false;
}



// POS-XML
var http_request = false;
function makePOSTRequest(url, parameters) {
   http_request = false;
   if (window.XMLHttpRequest) { // Mozilla, Safari,...
      http_request = new XMLHttpRequest();
      if (http_request.overrideMimeType) {
      	// set type accordingly to anticipated content type
         //http_request.overrideMimeType('text/xml');
         http_request.overrideMimeType('text/html');
      }
   } else if (window.ActiveXObject) { // IE
      try {
         http_request = new ActiveXObject("Msxml2.XMLHTTP");
      } catch (e) {
         try {
            http_request = new ActiveXObject("Microsoft.XMLHTTP");
         } catch (e) {}
      }
   }
   if (!http_request) {
      alert('Cannot create XMLHTTP instance');
      return false;
   }

   http_request.onreadystatechange = alertContents;
   http_request.open('POST', url, true);
   http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
   http_request.setRequestHeader("Content-length", parameters.length);
   http_request.setRequestHeader("Connection", "close");
   http_request.send(parameters);
}
/*
function alertContents() {
   if (http_request.readyState == 4) {
      if (http_request.status == 200) {
         //alert(http_request.responseText);
         result = http_request.responseText;
         document.getElementById('myspan').innerHTML = result;
      } else {
         alert('There was a problem with the request.');
      }
   }
}
*/



// ÀÌº¥Æ® Ãß°¡ Á¦°Å ÇÔ¼ö
function addEvent(obj, type, fn)
{
	if (obj.addEventListener)
		obj.addEventListener( type, fn, false );
	else if (obj.attachEvent)
	{
		obj["e"+type+fn] = fn;
		obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
		obj.attachEvent( "on"+type, obj[type+fn] );
	}
}

function removeEvent( obj, type, fn )
{
	if (obj.removeEventListener)
		obj.removeEventListener( type, fn, false );
	else if (obj.detachEvent)
	{
		obj.detachEvent( "on"+type, obj[type+fn] );
		obj[type+fn] = null;
		obj["e"+type+fn] = null;
	}
}

// ¸¶¿ì½º ÁÂÇ¥ ¾Ë¾Æ³»±â
//	http://www.webreference.com/programming/javascript/mk/column2/
//var mousePos = getEventMouseCoords(ev);
//nX =  mousePos.x;
//nY =  mousePos.y;
function getEventMouseCoords(ev){
	if (ev.pageX || ev.pageY){
		return {x:ev.pageX, y:ev.pageY};
	} else if (ev.clientX || ev.clientY) {
		return {
			x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,
			y:ev.clientY + document.body.scrollTop  - document.body.clientTop
		};
	}
}

//Which key has been pressed?
function getEventKeyCode(e) {
	var code;
	if (!e) var e = window.event;

	if (e.keyCode) code = e.keyCode;
	else if (e.which) code = e.which;

	return code;

	var character = String.fromCharCode(code);

	return character;
}

function getCodeToChar(code) {
	return String.fromCharCode(code);
}

//What is the type of the event?
function getEventType(e) {
	if (!e) var e = window.event;

	return e.type;
}

//Which HTML element is the target of the event?
function getEventTarget(e) {
	var targ;
	if (!e) var e = window.event;
	if (e.target) targ = e.target;
	else if (e.srcElement) targ = e.srcElement;
	if (targ.nodeType == 3) // defeat Safari bug
		targ = targ.parentNode;

	return targ;
}

//The <BLINK> works only on Netscape browser, IE doesn't support it. One workaround is to use timer.
function blinkIt() {
 if (!document.all) return;
 else {
   for(i=0;i<document.all.tags('blink').length;i++){
      s=document.all.tags('blink')[i];
      s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
   }
 }
}

function linkTarget(strUrl, strTarget) {
	if (strTarget == "") {
		location.href = strUrl;
	} else {
		window.open(strUrl, strTarget);
	}
}
