function ahlView(mdno) {
       // var srch_key;
       // srch_key=document.form1.keyword.value
		//srch_key = encodeURIComponent('srch_key');
//	window.open('http://www.knowledge.go.kr/cmm/kix.do?method=summuryKix&mdno=' + mdno + '&searchkey=' + srch_key, 'summury_view', 'location=no,directories=no,resizable=no,status=no,toolbar=no,menubar=no,width=635,height=550,scrollbars=yes');
//	window.open('http://www.knowledge.go.kr/summury/SummuryView.do?method=summuryView&mdno=' + mdno, 'summury_view', 'location=no,directories=no,resizable=no,status=no,toolbar=no,menubar=no,width=635,height=550,scrollbars=yes');
//	2008.07.10 곽재윤 - KADO 관리자(손기문) 요청에 의해 URL변경 
	window.open('http://www.knowledge.go.kr/SearchSF1/search_view.jsp?mdno=' + mdno, 'summury_view', 'location=no,directories=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
}
function open_link(url_info) {
  window.open(url_info,"","width=750,height=660,scrollbars=yes,resizable=1,toolbar=0");
}
function viewBook(xName, pagenum, xCtg)
{
	
	var width =  window.screen.width - 10;
	var height = window.screen.height;// - 34;  
	if ( width > height*2) width = width / 2;
	var title = "";					 //타이틀 네임
	var pname = xName;
	var pleft = pname.substring(xName,1,2);
	
	var argVar = new Array();
	argVar[0] = window;
	argVar[1] = width;  	       
	argVar[2] = height; 	
	argVar[3] = "";
	argVar[4] = title;
	argVar[5] = pname;
	argVar[6] = pagenum;

    try {
		if ( g_dlgEbook )  g_dlgEbook.close();
	} catch ( e ) { }

    if (pleft == 'E'){
		if(xCtg) {
			if (width == '1270'){
			//alert('aaa');
			g_dlgEbook = StartView("http://scourt2.booktopia.com/scourt2/new_ibook.asp", width, height, xName, pagenum, width);
			}
			else{
			//alert('222');
			g_dlgEbook = StartView("http://scourt2.booktopia.com/scourt2/new_ibook.asp", width, height, xName, pagenum, width);
			}
		}
		else {
			if (width == '1270'){
			//alert('aaa');
			g_dlgEbook = StartView("http://scourt2.booktopia.com/scourt2/new_ibook.asp", width, height, xName, pagenum, width);
			}
			else{
			//alert('222');
			g_dlgEbook = StartView("http://scourt2.booktopia.com/scourt2/new_ibook.asp", width, height, xName, pagenum, width);
			}
		}
    }
	else{
		if(xCtg) {
			if (width == '1270'){
			//alert('aaa');
			g_dlgEbook = StartView("http://scourt.booktopia.com/scourt/ibook.asp", width, height, xName, pagenum, width);
			}
			else{
			//alert('222');
			g_dlgEbook = StartView("http://scourt2.booktopia.com/scourt/ibook.asp", width, height, xName, pagenum, width);
			}
		}
		else {
			if (width == '1270'){
			//alert('aaa');
			g_dlgEbook = StartView("http://scourt.booktopia.com/scourt/ibook.asp", width, height, xName, pagenum, width);
			}
			else{
			//alert('222');
			g_dlgEbook = StartView("http://scourt2.booktopia.com/scourt/ibook.asp", width, height, xName, pagenum, width);
			}
		}
	}

	
}

var g_dlgEbook = null;
function StartView( targetURL, width, height, varArg, pagenum, web_size )
{
	var dlgWin = null;

	dlgWin = window.open(targetURL+"?book_code="+varArg+"&start="+pagenum+"&web_size="+web_size,"BookMaker","FULLSCREEN");
	dlgWin.blur();
	dlgWin.focus();
	
	return dlgWin;
}
function view_content_window(url, hn)
	{
		var f = document.selectForm;
//		window.open('http://www.naver.com','content','width=850, height=900, top=20, left=20,scrollbars=yes'); 
		//window.open('about:blank','content','width=850, height=900, top=20, left=20,scrollbars=yes'); 
//		return false;

		f.target = "original_link_iframe";
		f.action = "./stat.file/original_link_chk.php?host_no="+hn+"&UID="+15392312;
		f.submit();

			//alert("22");
				window.open(url,'content','width=850, height=900, top=20, left=20, status=yes, scrollbars=yes, resizable=yes');
		
		//	cgi 파일 반별(WESTLAWView.cgi)
		var url_arr1 = url.split('?');
		var url_tmp = url_arr1[0];
		var url_arr2 = url_tmp.split('/');

		if (url_arr2[url_arr2.length-1] == "WESTLAWView.cgi")
		{
			window.open('./Loading.html','Loading','width=300, height=150, status=no, scrollbars=no, resizable=yes, toolbar=no'); 
		}
		//return false;
	}


