/*
<!-- BLANK SPACE --><SCRIPT> blank_space('5');</SCRIPT>

<!-- Title Å×ÀÌºí -->
<SCRIPT>title_table('549','title_549','°ÔÀÓ¿£Á© ÃßÃµ °ÔÀÓ');</SCRIPT>

<!--¶ó¿îµå ¹Ú½º »ó´Ü-->
<SCRIPT>top_round('500','#CCCCCC','#FFFFFF');</SCRIPT>
<!--¶ó¿îµå ¹Ú½º ÇÏ´Ü-->
<SCRIPT>bottom_round('500','#CCCCCC','#FFFFFF');</SCRIPT>

<!--¶ó¿îµå ¹Ú½º Áß´Ü--><SCRIPT> center_round('500','#CCCCCC','#FFFFFF', '³»¿ë','style');</SCRIPT>
<SCRIPT> center_round('500','#CCCCCC','#FFFFFF', '','height:1px;');</SCRIPT>

¶Ç´Â ¾Æ·¡¿Í °°ÀÌ »ç¿ë.
<TABLE  width="100%">
  <TR>
    <TD style="border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; background-color:#FFFFFF; background-color:#FFFFFF;"  align="center">
	³»¿ë
	</TD>
  </TR>
</TABLE>

<!--¹Ú½º »ó´Ü-->
<SCRIPT> top_table('500','#CCCCCC','#FFFFFF');</SCRIPT>
<!--¹Ú½º ÇÏ´Ü-->
<SCRIPT> bottom_table('500','#CCCCCC','#FFFFFF');</SCRIPT>

*/
function top_round(w,c,bg) {
var top_html;
top_html ="<TABLE width=\""+w+"\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
top_html +="  <TR>";
top_html +="    <TD colspan=\"3\"></TD>";
top_html +="    <TD bgcolor=\""+c+"\"></TD>";
top_html +="    <TD colspan=\"3\"></TD>";
top_html +="  </TR>";
top_html +="  <TR>";
top_html +="    <TD colspan=\"2\"></TD>";
top_html +="    <TD style=\"width:2px; height:1px; background-color:"+c+";\"></TD>";
top_html +="    <TD bgcolor=\""+bg+"\"></TD>";
top_html +="    <TD style=\"width:2px; height:1px; background-color:"+c+";\"></TD>";
top_html +="    <TD colspan=\"2\"></TD>";
top_html +="  </TR>";
top_html +="  <TR>";
top_html +="    <TD width=\"1\"></TD>";
top_html +="    <TD style=\"width:1px; height:2px; background-color:"+c+";\"></TD>";
top_html +="    <TD colspan=\"3\" bgcolor=\""+bg+"\"></TD>";
top_html +="    <TD style=\"width:1px; height:2px; background-color:"+c+";\"></TD>";
top_html +="    <TD width=\"1\"></TD>";
top_html +="  </TR>";
top_html +="</TABLE>";
document.write(top_html);
}

function bottom_round(w,c,bg) {
var bottom_html;
bottom_html="<TABLE width=\""+w+"\" cellpadding=0 cellspacing=0 border=0>";
bottom_html +="  <TR>";
bottom_html +="    <TD width=\"1\"></TD>";
bottom_html +="    <TD style=\"width:1px; height:2px; background-color:"+c+";\"></TD>";
bottom_html +="    <TD colspan=\"3\" bgcolor=\""+bg+"\"></TD>";
bottom_html +="    <TD style=\"width:1px; height:2px; background-color:"+c+";\"></TD>";
bottom_html +="    <TD width=\"1\"></TD>";
bottom_html +="  </TR>";
bottom_html +="  <TR>";
bottom_html +="    <TD colspan=\"2\"></TD>";
bottom_html +="    <TD style=\"width:2px; height:1px; background-color:"+c+";\"></TD>";
bottom_html +="    <TD bgcolor=\""+bg+"\"></TD>";
bottom_html +="    <TD style=\"width:2px; height:1px; background-color:"+c+";\"></TD>";
bottom_html +="    <TD colspan=\"2\"></TD>";
bottom_html +="  </TR>";
bottom_html +="  <TR>";
bottom_html +="    <TD colspan=\"3\"></TD>";
bottom_html +="    <TD bgcolor=\""+c+"\"></TD>";
bottom_html +="    <TD colspan=\"3\"></TD>";
bottom_html +="  </TR>";
bottom_html +="</TABLE>";
document.write(bottom_html);
}

function center_round(w,c,bg,content,style) {
var html;
html ="<TABLE  cellpadding=0 cellspacing=0 border=0  width=\""+w+"\" >";
html +="  <TR>";
html +="    <TD style=\"width:1px; background-color:"+c+";\"></TD>";
html +="    <TD style=\"background-color:"+bg+"; "+style+"\" align=\"center\">";
html += content;
html +="    </TD>";
html +="    <TD style=\"width:1px; background-color:"+c+";\"></TD>";
html +="  </TR>";
html +="</TABLE>";
document.write(html);
}

function blank_space(h) {
var html;
html ="		<TABLE>\n		  <TR>\n				<TD style=\"height:"+h+"px\"><!--blank space--></TD>\n		  </TR>\n		</TABLE>";
document.write(html);
}

/* Å×ÀÌºí »ó´Ü Á¦¸ñ ºÎºÐ ¸¸µé±â (Æø,Å¬·¡½º,Á¦¸ñ)*/
function title_table(w,c,title) {
var title_html;
title_html ="<TABLE width=\""+w+"\">\n	<TR>\n		<TD class=\""+c+"\" >"+title+"</TD>\n	</TR>\n</TABLE>";
document.write(title_html);
}

/* Å×ÀÌºí »ó´Ü Á¦¸ñ ºÎºÐ ¸¸µé±â (Æø,³ôÀÌ,Å¬·¡½º,Á¦¸ñ)*/
function home_title_table(w,h,s,c,bg,title) {
html ="<TABLE width=\""+w+"\">";
html +="  <TR>";
html +="    <TD colspan=\"3\" style=\""+s+" border-top: 1px solid "+c+"; border-left: 1px solid "+c+"; border-right: 1px solid "+c+"; background-color:"+bg+"; height:"+h+";\">"+title+"</TD>";
html +="  </TR>";
html +="  <TR>";
html +="    <TD style=\"width:6px; height:1px; border-left: 1px solid "+c+"; background-color:"+bg+"\"></TD>";
html +="    <TD style=\"width:"+(w-12)+"px; height:1px\" bgcolor=\""+c+"\"></TD>";
html +="    <TD style=\"width:6px; height:1px; border-right: 1px solid "+c+"; background-color:"+bg+"\"></TD>";
html +="  </TR>";
html +="</TABLE>";
document.write(html);
}

function top_table(w,c,bg) {
html ="<TABLE width=\""+w+"\">";
html +="  <TR>";
html +="    <TD colspan=\"3\" style=\"height:1px; background-color:"+c+"\"></TD>";
html +="  </TR>";
html +="  <TR>";
html +="    <TD style=\"width:1px; background-color:"+c+"\"></TD>";
html +="    <TD style=\"height:3px\" bgcolor=\""+bg+"\"></TD>";
html +="    <TD style=\"width:1px; background-color:"+c+"\"></TD>";
html +="  </TR>";
html +="</TABLE>";
document.write(html);
}

function bottom_table(w,c,bg) {
html ="<TABLE width=\""+w+"\">";
html +="  <TR>";
html +="    <TD style=\"width:1px; background-color:"+c+"\"></TD>";
html +="    <TD style=\"height:3px\" bgcolor=\""+bg+"\"></TD>";
html +="    <TD style=\"width:1px; background-color:"+c+"\"></TD>";
html +="  </TR>";
html +="  <TR>";
html +="    <TD colspan=\"3\" style=\"height:1px; background-color:"+c+"\"></TD>";
html +="  </TR>";
html +="</TABLE>";
document.write(html);
}

/*ÀÌ¹ÌÁöÃ¢ ¶ç¿ì±â */
function imgWin(ref,src,w,h) 
{
	ref = ref+'/popwin/image_view.html.php?src='+src+'&width='+w+'&height='+h+'';
	var window_left = (screen.width-w)/2;
	var window_top = (screen.height-h)/2-50;
	if(h >= 740) {
		h = 740;
		scroll = "yes";
	}
	var openwin = window.open(ref,"imgWin",'width='+w+',height='+h+', resizable=no, scrollbars='+scroll+', status=no, top=' + window_top + ',left=' + window_left + '');

	openwin.focus();
}

/*°ÔÀÓ¸Þ´º, °ÔÀÓ¾÷·Îµå ÂÊ*/
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_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.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; }
}

/*·Î±×ÀÎ È­¸éÀ¸·Î*/
function jumplogin(ref) 
{
	if (confirm("·Î±×ÀÎ ÇÏ½Ã°Ú½À´Ï±î?"))
		parent.location.href=ref;

}

/* ½Å°íÇÏ±âÃ¢ ¶ç¿ì±â */
function complainWin(ref,type,id) 
{
	var window_left = (screen.width-800)/2;
	var window_top = (screen.height-600)/2;
	var ref = ref+ "/popwin/complain.html.php?id="+id+"&type="+type;
	var openwin = window.open(ref,"complainWin",'width=460,height=300, resizable=$resize, status=no, top=' + window_top + ',left=' + window_left + '');
	openwin.focus();
}

/* ÀÏ¹Ý Ã¢ ¶ç¿ì±â  460*300 */
function PopWin(Win_name,ref) 
{
	var window_left = (screen.width-800)/2;
	var window_top = (screen.height-600)/2;
	var openwin = window.open(ref,Win_name,'width=460,height=300, resizable=no, status=no, top=' + window_top + ',left=' + window_left + '');
	openwin.focus();
}

/* ÀÏ¹Ý Ã¢ ¶ç¿ì±â */
function PopWin2(Win_name,ref, width, height) 
{
	var window_left = (screen.width-800)/2;
	var window_top = (screen.height-800)/2;
	var openwin = window.open(ref,Win_name,'width='+width+',height='+height+', resizable=no, status=no, top=' + window_top + ',left=' + window_left + '');
	openwin.focus();
}

/* »èÁ¦ ÇÒ²¸? */

function goDel(ref,comment) 
{

	if(confirm(comment)) location.href=ref;

}



/* 
[¾×Æ¼ºê¿¢½º ÆÐÄ¡ ½ºÅ©¸³Æ®]

- »ç¿ë¹æ¹ý

<TEXTAREA id="µ¶¸³ÀûÀÎÀÌ¸§" style="display:none;" rows="0" cols="0">
¾×Æ¼ºê¾×½º ±¸¹® µé¾î°¡´Â °÷
</TEXTAREA>
<SCRIPT LANGUAGE="JavaScript">PrintEmbed('µ¶¸³ÀûÀÎÀÌ¸§');</SCRIPT> : ¾×Æ¼ºê¿¢½º¸¦ È£ÃâÇÒ À§Ä¡¿¡ »ðÀÔÇÕ´Ï´Ù.

*/
function PrintEmbed(EmbID)
{
	document.write(document.getElementById(EmbID).value);
}



	/* url ·Î ÇØ´çÆäÀÌÁö¿¡¼­ »Ñ·ÁÁÖ´Â°ªÀ»°¡Á®¿Â´Ù*/
    function getHttprequest(URL) {
        var xmlhttp = null;
        if(window.XMLHttpRequest) {
            xmlhttp = new XMLHttpRequest();
        } else {
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        xmlhttp.open('GET', URL,false);
        xmlhttp.onreadystatechange = function() {
            if(xmlhttp.readyState==4 && xmlhttp.status == 200 && xmlhttp.statusText=='OK') {
                responseText = xmlhttp.responseText;
            }
        }
        xmlhttp.send('');
        return responseText = xmlhttp.responseText;
    }
