﻿<!--
var xmlhttp

function bodyview(qry,ref,linkdir,linkfile)
{
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  }
	var url="../"+linkdir+"/"+linkfile;
	url=url+"?qry="+qry+"&ref="+ref;
	url=url+"&sid="+Math.random();
	xmlhttp.onreadystatechange=stateChanged;
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}

function stateChanged()
{
	if (xmlhttp.readyState==4)
	  {
	  	document.getElementById("insert").innerHTML=xmlhttp.responseText;
	  }
}

function GetXmlHttpObject()
{
	if (window.XMLHttpRequest)
	  {
		  // code for IE7+, Firefox, Chrome, Opera, Safari
		  return new XMLHttpRequest();
    }
	if (window.ActiveXObject)
	  {
		  // code for IE6, IE5
		  return new ActiveXObject("Microsoft.XMLHTTP");
	  }
	return null;
}

function WinOpens(qry,link){ 
	alert('회원전용 페이지입니다.\n\n회원가입을 하시면 \n\n다양한 혜택을 누릴수 있습니다!!');
	window.moveTo(0,0);
	window.resizeTo(screen.availWidth,screen.availHeight); 
	window.location=link;
}

	function clickIE() { 
		if (document.all) { 
			return false; 
		} 
	} 
	function clickNS(e) { 
		if (document.layers||(document.getElementById&&!document.all)) { 
			if (e.which==2||e.which==3) { 
				return false; 
			} 
		} 
	} 
	if (document.layers) { 
		document.captureEvents(Event.MOUSEDOWN); 
		document.onmousedown=clickNS; 
	} 
	else{ 
		document.onmouseup=clickNS; 
		document.oncontextmenu=clickIE; 
	} 
	document.oncontextmenu=new Function("return false"); 

-->
