 function Changecate(){
  document.Form1.action="in_list.php";
  document.Form1.submit();
 }
 function Changecate2(){
  document.Form2.action="out_list.php";
  document.Form2.submit();
 }
 function sendViewForm(tmp){
	 var tmp;
	 var form2=document.viewForm;
	 if(form2.dpUniv.value=="" )	 {
		alert("도서관 인증아이디가 없습니다! \n\n 문의사항은 관리자에게 문의바랍니다.");
		return false;
	 }else if(form2.dpUniv.value=="kongjulib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST") ){//공주대
		MM_openBrWindow('logint_kongjulib.htm','','width=300,height=121,left=400,top=400');
		return false;
	 }else if(form2.dpUniv.value=="djulib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){ //대전대
		MM_openBrWindow('logint_djulib.htm','','width=300,height=121,left=400,top=400');
		return false;
	 }else if(form2.dpUniv.value=="uhsunivlib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//협성대
		MM_openBrWindow('logint_uhsunivlib.htm','','width=300,height=121,left=400,top=400');
		return false;
	 }else if(form2.dpUniv.value=="kynmlib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//경남대
		MM_openBrWindow('logint_kynmlib.htm','','width=300,height=121,left=400,top=400');
		return false;
     // }else if(form2.dpUniv.value=="dongalib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//동아대
	//	MM_openBrWindow('logint_dongalib.htm','','width=300,height=121,left=400,top=400');
	//	return false;
	  }else if(form2.dpUniv.value=="hangkonglib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//한국항공대
		MM_openBrWindow('logint_hangkonglib.htm','','width=300,height=121,left=400,top=400');
		return false;
	 }else if(form2.dpUniv.value=="jnueunivlib080619" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//전주교육대학교
		MM_openBrWindow('logint_jnueunivlib080619.htm','','width=300,height=121,left=400,top=400');
		return false;
     }else if(form2.dpUniv.value=="hannamlib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//한남대학교
		MM_openBrWindow('logint_hannamlib.htm','','width=300,height=121,left=400,top=400');
		return false;
     }else if(form2.dpUniv.value=="qnrud09e05og2kr2ry" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//부경대학교
		MM_openBrWindow('logint_bukyung.htm','','width=300,height=121,left=400,top=400');
		return false;
	 }else if(form2.dpUniv.value=="r0kd9^ki_0r-j8d^ad1ffd9as" ){//강동도서관일 경우 2009.12.31까지는 도서신청불가 
		alert("강동도서관 리모델링 공사로 인하여 \n\n 휴관하는 기간동안 자료대출이 중단되오며 \n\n 비치희망서비스도 중단됨을 알려드립니다.");
		return false;
     }else if(form2.dpUniv.value=="rh1kdcj0a^a0s3rhdr1hdeh1sv" || form2.dpUniv.value=="rh1^a0kd0ap3sd_d2aoie3qa_daf" ){
		 //광천공공도서관,광명하안도서관일 경우 로그인 아이디가 없어도 도서신청이 되도록 조치 
		 //신청단계에서 대출자번호로 검증한다. 
		 document.viewForm.action="request.php"
		 document.viewForm.submit();
	 
	 }else if(form2.pUser.value=="" || form2.pUser.value=="guest" || form2.pUser.value=="GUEST"  || form2.pUser.value=="id" )	 {
		alert("로그인 아이디가 없습니다! \n\n 현재창을 닫고 로그인 하신 후 새로 창을 열고 이용하십시오.");
		return false;
      }else if(form2.dpUniv.value=="dylib" )	 {
		alert('테스트 도서관은 신청하실 수 없습니다.');
		return false;
	 }else if(form2.pUser.value=="test_dayang" || form2.pUser.value=="dylib" || form2.pUser.value=="master" || form2.pUser.value=="bointech"  )	 {
		alert('테스트아이디는 신청하실 수 없습니다.');
		return false;
	 }
	 if(tmp=="1"){
		 if(confirm("현재 소장중인 도서입니다.\n\n 신청하시겠습니까?")){
		 document.viewForm.action="request.php"
		 document.viewForm.submit();
		 }
	 }else if(tmp=="2"){
	     if(confirm("이미 신청중인 도서입니다.\n\n 신청하시겠습니까?")){
		 document.viewForm.action="request.php"
		 document.viewForm.submit();
		 }
	 }else{
	     document.viewForm.action="request.php"
		 document.viewForm.submit();
	 }

 }
 function backForm(){
 document.charset = "euc-kr";
 document.viewForm2.submit();
 }
 function sendRequestForm(){
	 if(document.RequestForm.dpUniv.value=="" || document.RequestForm.pUser.value=="")
	 {
      alert("도서신청은 로그인후 이용가능합니다!");
	  return false;
	 }
 
 }
 function sendForm(val1,val2,val3,val4,val5){
 document.moreFrm.nation_gb.value=val1;
 document.moreFrm.pKeyWord1.value=val2;
 document.moreFrm.pDyTitle.value=val3;
 document.moreFrm.pDyAuthor.value=val4;
 document.moreFrm.pDyPublisher.value=val5;
 document.moreFrm.submit();
 }
 function sendForm2(val1,val2,val3,val4,val5,val6,val7,val8){
	 var form2=document.moreFrm;
	 if(form2.dpUniv.value=="" )	 {
		alert("도서관 인증아이디가 없습니다! \n\n 문의사항은 관리자에게 문의바랍니다.");
		return false;
	 }else if(form2.dpUniv.value=="kongjulib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST") ){//공주대
		MM_openBrWindow('logint_kongjulib.htm','','width=300,height=121,left=400,top=400');
		return false;
	 }else if(form2.dpUniv.value=="djulib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){ //대전대
		MM_openBrWindow('logint_djulib.htm','','width=300,height=121,left=400,top=400');
		return false;
	 }else if(form2.dpUniv.value=="uhsunivlib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//협성대
		MM_openBrWindow('logint_uhsunivlib.htm','','width=300,height=121,left=400,top=400');
		return false;
	 }else if(form2.dpUniv.value=="kynmlib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//경남대
		MM_openBrWindow('logint_kynmlib.htm','','width=300,height=121,left=400,top=400');
		return false;
     // }else if(form2.dpUniv.value=="dongalib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//동아대
	//	MM_openBrWindow('logint_dongalib.htm','','width=300,height=121,left=400,top=400');
	//	return false;
	  }else if(form2.dpUniv.value=="hangkonglib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//한국항공대
		MM_openBrWindow('logint_hangkonglib.htm','','width=300,height=121,left=400,top=400');
		return false;
	 }else if(form2.dpUniv.value=="jnueunivlib080619" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//전주교육대학교
		MM_openBrWindow('logint_jnueunivlib080619.htm','','width=300,height=121,left=400,top=400');
		return false;
     }else if(form2.dpUniv.value=="hannamlib" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//한남대학교
		MM_openBrWindow('logint_hannamlib.htm','','width=300,height=121,left=400,top=400');
		return false;
     }else if(form2.dpUniv.value=="qnrud09e05og2kr2ry" && (form2.pUser.value==""  || form2.pUser.value=="guest" || form2.pUser.value=="GUEST")){//부경대학교
		MM_openBrWindow('logint_bukyung.htm','','width=300,height=121,left=400,top=400');
		return false;
	 }else if(form2.dpUniv.value=="r0kd9^ki_0r-j8d^ad1ffd9as" ){//강동도서관일 경우 2009.12.31까지는 도서신청불가 
		alert("강동도서관 리모델링 공사로 인하여 \n\n 휴관하는 기간동안 자료대출이 중단되오며 \n\n 비치희망서비스도 중단됨을 알려드립니다.");
		return false;
	 }else if(form2.pUser.value=="" || form2.pUser.value=="guest" || form2.pUser.value=="GUEST"  || form2.pUser.value=="id" )	 {
		alert("로그인 아이디가 없습니다! \n\n 현재창을 닫고 로그인 하신 후 새로 창을 열고 이용하십시오.");
		return false;
      }else if(form2.dpUniv.value=="dylib" )	 {
		alert('테스트 도서관은 신청하실 수 없습니다.');
		return false;
	 }else if(form2.pUser.value=="test_dayang" || form2.pUser.value=="dylib" || form2.pUser.value=="master" || form2.pUser.value=="bointech"  )	 {
		alert('테스트아이디는 신청하실 수 없습니다.');
		return false;
	 }else{
	 document.moreFrm.nation_gb.value=val1;
	 document.moreFrm.pKeyWord1.value=val2;
	 document.moreFrm.pDyTitle.value=val3;
	 document.moreFrm.pDyAuthor.value=val4;
	 document.moreFrm.pDyPublisher.value=val5;
	 document.moreFrm.ret_Url.value=val6;
	 document.moreFrm.param.value=val7;
	 document.moreFrm.pDySTitle.value=val8;
	 document.charset = "euc-kr";
	 document.moreFrm.submit();
	 }
 }
 function sendFormView(val1,val2,val3,val4,val5,val6,val7,val8){
 
	 document.moreFrm.nation_gb.value=val1;
	 document.moreFrm.pKeyWord1.value=val2;
	 document.moreFrm.pDyTitle.value=val3;
	 document.moreFrm.pDyAuthor.value=val4;
	 document.moreFrm.pDyPublisher.value=val5;
	 document.moreFrm.ret_Url.value=val6;
	 document.moreFrm.param.value=val7;
	 document.moreFrm.pDySTitle.value=val8;
	 document.charset = "euc-kr";
	 document.moreFrm.submit();
	
 }

 function sub2mit(){
    if(document.serform2.SearchText.value==""){
        alert('검색어를 입력 하셔야 합니다');
		document.serform2.SearchText.focus();
		return false;
	}
	//document.serform2.action="result.php";
	document.serform2.submit();
}
function SearchCheck(){
  if(document.serform3.title.value=="" && document.serform3.author.value=="" && document.serform3.chulpansa.value=="" && document.serform3.chulpanil1.value=="" && document.serform3.chulpanil2.value=="" && document.serform3.isbn.value=="" ){
  alert('검색할 항목을 하나라도 입력 하셔야 합니다');
  document.serform3.title.focus();
  return false;
  }
  //document.serform3.action="result.php";
  document.serform3.submit();
}
function windowclose(){
	//쿠키 해제
	//SetCookie("dpUser","",time()-3600); 
	//SetCookie("dpUniv","",time()-3600); 
	//SetCookie("dpUName","",time()-3600); 
	
	window.close();
}
function gotopage(univid,val){
	//var univid;
	//var val;
	//ff="http://210.123.38.20/search/person/req/Req.jsp" + val;
	//alert(ff);
	if(univid=='kkmlib'){// 국민대학교
	opener.location.href="http://210.123.38.20/search/person/req/Req.jsp" + val;
	}else if(univid=='skkulib'){ //성균관대학교
	opener.location.href="http://203.252.35.6/search/person/req/Req.jsp" + val;
	}
	//window.close();
}

// 윈도우를 리사이즈 하는 스크립트
function maximize() {
  //  self.moveTo (0, 0);
  //  var w = screen.availWidth;
  //  var h = screen.availHeight;
  
  if(document.winsize.ws.value=="" || document.winsize.ws.value=="620") {
  var ww = 800;	
  var hh = 700;
  document.winsize.ws.value="800";  
  }else if(document.winsize.ws.value=="800"){
  var ww = 630;	
  var hh = 580;
  document.winsize.ws.value="620";    
  }
  
    self.resizeTo (ww,hh);
}

// 링크 클릭시 이미지 alt창 보이는 스크립트 start
var ie=document.all
var ns6=document.getElementById&&!document.all

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat" && !window.opera)? document.documentElement : document.body
}

function enlarge(which, e, position, imgwidth, imgheight){
    if (ie||ns6){
        crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
    if (position=="center"){
        pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
        horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
        vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
    if (window.opera && window.innerHeight) //compensate for Opera toolbar
        vertpos=pgyoffset+window.innerHeight/2-imgheight/2
        vertpos=Math.max(pgyoffset, vertpos)
    }
    else{
    var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
    var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
    }
    crossobj.style.left=(horzpos+10)+"px"
    crossobj.style.top=(vertpos-10)+"px"
	//crossobj.style.left="150px"
    //crossobj.style.top="100px"
  //  crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">Close</span> </div><img src="'+which+'">'
    crossobj.innerHTML='<img src="'+which+'" width="'+150+'"  height="'+215+'" >'
    crossobj.style.visibility="visible"
return false
}
else 
return true
}

function closepreview(){
    crossobj.style.visibility="hidden"
}

function drag_drop(e){
    if (ie&&dragapproved){
        crossobj.style.left=tempx+event.clientX-offsetx+"px"
        crossobj.style.top=tempy+event.clientY-offsety+"px"
    }
    else if (ns6&&dragapproved){
        crossobj.style.left=tempx+e.clientX-offsetx+"px"
        crossobj.style.top=tempy+e.clientY-offsety+"px"
    }
return false
}

function initializedrag(e){
    if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
        offsetx=ie? event.clientX : e.clientX
        offsety=ie? event.clientY : e.clientY
        tempx=parseInt(crossobj.style.left)
        tempy=parseInt(crossobj.style.top)

        dragapproved=true
        document.onmousemove=drag_drop
    }
}

document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")

// 링크 클릭시 이미지 alt창 보이는 스크립트 end

function zoomin(obj,fuc){
var w = screen.availWidth;
var h = screen.availHeight;
w=w * 0.05;
h=h * 0.05;
var zoomstate;
	if(fuc=='in'){
	SettingCookie('zoomstate','big'); 	
	aaa.style.zoom = 1.5;
	self.resizeTo(920,850);
	location.reload();
	}else if(fuc=='out'){
	SettingCookie('zoomstate','small'); 
	aaa.style.zoom = 1;
	self.resizeTo(630,580);
	location.reload();

	}
		
}
function SettingCookie(sName, sValue){
	document.cookie = sName + "=" + escape(sValue) ;
	}
function zoomin2(){

	var strReturn;
	strReturn = GetCookie('zoomstate');
	
	if(strReturn =='big'){
	aaa.style.zoom = 1.5;
	self.resizeTo(920,850);
	}else if(strReturn =='small'){
	aaa.style.zoom = 1;
	self.resizeTo(630,580);
	}else{
	aaa.style.zoom = 1;
	self.resizeTo(630,580);
	}
}
// 자바스크립트용 쿠키 설정 처리부분
function GetCookie(sName){
	var aCookie = document.cookie.split(";");
	for(var i=0; i<aCookie.length; i++){
	var aCrumb = aCookie[i].split("=");
	if(sName == aCrumb[0])
	  return unescape(aCrumb[1]);
	}
	return null;
}
// body 에 onUnload 사용시 쿠키 삭제
function closeWin() 
{ 
SettingCookie('zoomstate','');
self.close(); 
}

//==========zSERVER 검색용 스크립트 시작

function checkF()
{
	/*if ( document.zsearch_form.term1.value == "" && document.zsearch_form.term2.value == "" && document.zsearch_form.term3.value == "" )
	{
		alert( "검색어를 넣어 주세요!" );
		return false;
		document.zsearch_form.term1.focus();
	}*/
	return true;
}

function loginF(n)
{  
   zForms1=document.zsearch_form;
   zForms2=document.zsearch_form2;
    if( n == 1){
		//alert(n);
	   if (!checkF() ) return;
	   if( zForms1.term1.value == "" && zForms1.term2.value == "" && zForms1.term3.value == ""){
	   alert("최소 1개 이상의 검색어를 입력하세요!");
	//   return false;
	   zForms1.term1.focus();
	   }else{
 	   zForms1.submit();
	   }
	}else if( n == 2){
       if(zForms2.term1.value==""){
	       alert("검색어를 입력하세요!");
	       zForms2.term1.focus();
		     return false;
	    }else{
        if(zForms2.field1.options[3].selected){
	          zForms2.action="search_result.php";
		      zForms2.submit();
		     }else{
	          zForms2.action="zsrch.php";
		      zForms2.submit();
		     }
	     }
	  }else if( n == 3){
       if(zForms2.term1.value==""){
	       alert("검색어를 입력하세요!");
	       zForms2.term1.focus();
		     return false;
	    }else{
	          zForms2.action="search_result.php";
		      zForms2.submit();
		     
	     }
	  } else{
	   zForms1.reset();
	  }
}

function check1()
{
 key = event.keyCode;
 if (key == 13) {
        loginF(1)
    }
}
function check2()
{
 key = event.keyCode;
 if (key == 13) {
        loginF(2)
    }
}

function checkConfirm(n){
	if(n == 1 ){
		document.zsearch_form._thesis.checked = 0 ;
		document.zsearch_form._serial.checked = 0 ; 
		document.zsearch_form._nonbook.checked = 0; 
	}
	if(n == 2 ){
		document.zsearch_form._book.checked = 0 ;
		document.zsearch_form._serial.checked = 0 ; 
		document.zsearch_form._nonbook.checked = 0; 
	}
	if(n == 3 ){
		document.zsearch_form._book.checked = 0 ;
		document.zsearch_form._thesis.checked = 0 ;
		document.zsearch_form._nonbook.checked = 0; 
	}
	if(n == 4 ){
		document.zsearch_form._book.checked = 0 ;
		document.zsearch_form._serial.checked = 0 ; 
		document.zsearch_form._thesis.checked = 0 ;
	}
}
function checkConfirm2(n){
	if(n == 1 ){
		document.zsearch_form2._thesis.checked = 0 ;
		document.zsearch_form2._serial.checked = 0 ; 
		document.zsearch_form2._nonbook.checked = 0; 
	}
	if(n == 2 ){
		document.zsearch_form2._book.checked = 0 ;
		document.zsearch_form2._serial.checked = 0 ; 
		document.zsearch_form2._nonbook.checked = 0; 
	}
	if(n == 3 ){
		document.zsearch_form2._book.checked = 0 ;
		document.zsearch_form2._thesis.checked = 0 ;
		document.zsearch_form2._nonbook.checked = 0; 
	}
	if(n == 4 ){
		document.zsearch_form2._book.checked = 0 ;
		document.zsearch_form2._serial.checked = 0 ; 
		document.zsearch_form2._thesis.checked = 0 ;
	}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function SetJapanCookie(value)

{

	document.japan.japan.value = value

//	alert("Cookie	: "	+ document.japan.japan.value)

}
function BigPicture_Of_NewWindow(theURL, winName, features)
   {
      window.open(theURL, winName, features);
   }

   function meta_edit(form, kdc, issn, isbn)
  {
   	 var state = 'height=640,width=800,scrollbars=1,toolbar=0,status=0,resizable=1,menubar=0,left=10,top=10';
   	 url       = '../m_BoardMeta/gate_meta/index_002.php?T_020_A_ISBN=' + isbn + '&T_022_A_ISSN=' + issn;
	 pop       = 'popupwindow1';
   	 win       = window.open(url, pop, state);
   	 win.focus();
  }
//=========zSERVER 검색용 스크립트 끝
function viewinfo(vs_url){
  var o_new_win;

  vs_width = 400;
  vs_height = 500;
  if(screen.width < vs_width) vs_width = screen.width - 10;
  if(screen.height < vs_height) vs_height = screen.height - 50;
  i_left = (screen.width - vs_width) / 2;
  i_top = (screen.height - vs_height) / 2;
  o_new_win = window.open(vs_url , "pop", "menubar=0,location=0,directories=0,toolbar=0," +
  "scrollbars=0,status=0,resizable=0,width=" + vs_width +
  ",height=" + vs_height + ",left=" + i_left + ",top=" + i_top);
  return o_new_win;
}

function viewinfo2(vs_url,widt,heit,nme){
  var o_new_win;

  vs_width = widt;
  vs_height = heit;
  if(screen.width < vs_width) vs_width = screen.width - 10;
  if(screen.height < vs_height) vs_height = screen.height - 50;
  i_left = (screen.width - vs_width) / 2;
  i_top = (screen.height - vs_height) / 2;
  o_new_win = window.open(vs_url , "pop2", "menubar=0,location=0,directories=0,toolbar=0," +
  "scrollbars=0,status=0,resizable=0,width=" + vs_width +
  ",height=" + vs_height + ",left=" + i_left + ",top=" + i_top);
  return o_new_win;
}

//배너 따라다니기
var forExplorer = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
function slideImage()
{

		  var startPos, endPos, yOffset, timeInterval

		  //x=660 + (document.body.clientWidth-752)/2; //좌측위치
		  x=670 ; //좌측위치
		  document.all["divMenu"].style.pixelLeft = x+10;


		 if ( forExplorer ) {
                startPos   = parseInt (document.all["divMenu"].style.top);
				
                endPos     = document.body.scrollTop + 2000; // 위쪽 위치 91
               // endPos = 250;
				//	alert(startPos);
				//	 alert(endPos);
        }

       if ( startPos != endPos ) {

					 yOffset = Math.floor(( endPos - startPos ) / 20 );

                if ( forExplorer )
                        document.all["divMenu"].style.top = parseInt (document.all["divMenu"].style.top, 10) + yOffset;

                timeInterval = 10;
        }

      //  setTimeout ("slideImage()", timeInterval);
}

function MouseMove()
{
        var y;

        if ( forExplorer ) {
                document.all["divMenu"].style.top = document.body.scrollTop + 120;
                document.all["divMenu"].style.visibility = "visible";
        }

        slideImage();
        return true;
}
//배너 따라 다니기 끝

//배너 따라 다니기 끝
//스크롤 마키 시작
var Toggle =1;

function DWtop(chk) {
Toggle = 0;
switch(chk) {
case 1: pf.stop(); break;
case 2: pf.stop(); break;
}
}

function DWstart(chk) {
Toggle = 1;
switch(chk) {
case 1: pf.start(); break;
case 2: pf.start(); break;
}
}
//스크롤 마키 끝
//메인 언론사 선정 보이기
function ShowCommDiv(page)
{
	for (var nIdx = 1; nIdx <= 4; nIdx++)
		eval("comm_div"+nIdx+".style.display = 'none'");

	eval("comm_div"+page+".style.display = 'block'");
}


/*------------------status bar 설정------------------------*/
function hidestatus() { 
    window.status='e-CIP Contents Service'; 
    return true; 
} 
function hiddenMenuShow(currMenu){ 
    if (document.all) { 
        thisMenu = eval("document.all." + currMenu + ".style") 
        if (thisMenu.display=="none"){ 
            thisMenu.display=""; 
        } else { 
            thisMenu.display="none"; 
        } return false; 
    } else { 
        return true; 
    } 
} 
if (document.layers) 
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) 
document.onmouseover=hidestatus 
document.onmouseout=hidestatus 
/*------------------status bar 설정 끝------------------------*/
function cartsave(kind, isbn, title, author,publisher,pubdate)
  {  var data = kind + '|' + isbn + '|' + title + '|' + author + '|' + publisher + '|' + pubdate;
   	 var state = 'height=0,width=0,scrollbars=1,toolbar=0,status=0,resizable=1,menubar=0,left=100,top=100';
   	 url       = './cartsave.php?data=' + data ;
	 pop       = 'cartsave';
   	 win       = window.open(url, pop, state);
   	 win.focus();
}
function gopage(URL){
	
	location.href=URL;
	
}

function golink(tmp,key){
  
  if (key=="")
  {
	  alert("인증키가 없습니다.");
	 
  }else{
	  if (tmp=="main")
	  {
		  var state = 'width=1024,height=650,scrollbars=1,toolbar=0,status=0,resizable=1,menubar=0,left=100,top=100';
		 url       = 'http://ecip.libbook.co.kr/?pUniv=' + key + '&pUser=&pRedirCode=main';
		 
	  }else if (tmp=="newarriv")
	  {
		 var state = 'width=1024,height=650,scrollbars=1,toolbar=0,status=0,resizable=1,menubar=0,left=100,top=100';
		 url       = 'http://ecip.libbook.co.kr/?pUniv=' + key + '&pUser=&pRedirCode=newarriv';
	  }else if (tmp=="chuchun")
	  {
		 var state = 'width=1024,height=650,scrollbars=1,toolbar=0,status=0,resizable=1,menubar=0,left=100,top=100';
		 url       = 'http://ecip.libbook.co.kr/?pUniv=' + key + '&pUser=&pRedirCode=chuchun';
	  }

	  pop       = 'openecip';
		 win       = window.open(url, pop, state);
		 win.focus();
	  }
}
