/* window.open */
function fopen_window(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

/* °¡¿îµ¥ ÆË¾÷ */
function fopen_center (url, pname, w, h, s) {
	var popw = (screen.width - w) / 2; 
	var poph = (screen.height - h) / 2; 
	var tempWin;
	if (s=="" || s == null)
	{
		popft = 'height='+h+',width='+w+',top='+poph+',left='+popw+',scrollbars=yes';
	}
	else {
		popft = 'height='+h+',width='+w+',top='+poph+',left='+popw+',scrollbars='+s;
	}	
	tempWin = window.open(url, pname, popft);
	tempWin.focus();
	}

function fpage_move(PageNum,Argument)
	{ 
		switch (Argument)
		{
		case 'onStartPage' :
			frmList.h_PageNum.value = PageNum;
			frmList.h_MovePage.value = 0 ;
			frmList.submit();
			break;

		case 'onEndPage' :
			var Cnt;
			var arg=frmList.nPageCount.value;
			Cnt = arg.length;

			var intvalue=((PageNum-1) / 20);
			MovePage =parseInt(intvalue % 20)  ;//¼öÁ¤

			if (arg.charAt(Cnt-1) == 0)
			{
				PageNum=10;
			} 
			else  
			{
				PageNum=arg.charAt(Cnt-1);
			}

			frmList.h_PageNum.value = PageNum ;
			frmList.h_MovePage.value = MovePage;
			frmList.submit();
			break;

		case 'UrlPage' :
			frmList.h_PageNum.value = PageNum ;
			frmList.submit();
			break;
		}
	}
	
function ffile_down(filefullname){	
	document.hframe.location.href = "/product/library/file_download.asp?filefullname="+filefullname;
}

function textHttp(setUrl,setQuery) {
    var xh;
    var rs;

    if (window.ActiveXObject) {
        xh = new ActiveXObject("Microsoft.XMLHTTP");
    } else if (window.XMLHttpRequest) {
        xh = new XMLHttpRequest();
    }

    // ºñµ¿±âÀû Á¢±Ù
    xh.open("POST",setUrl,false);
    xh.setRequestHeader('Accept-Language','ko');
    xh.setRequestHeader('Content-Type','application/x-www-form-urlencoded;charset=UTF-8');
    xh.setRequestHeader('Cache-Control','no-cache');
    xh.send(setQuery);

    if (xh.readyState == 4) {
        if (xh.status == 200) {
            rs = xh.responseText;
        } else {
            rs = xh.responseText;
        }
    }

    xh = null;
    return rs;
}