var farwindow = null;
function sWindow(open_file, w, h){
      farwindow = window.open('','','width='+w+',height='+h+',scrollbars=0,resizable=0, status=0');
      if(farwindow != null){
         if(farwindow.opener == null){
            farwindow.opener = self;
         }
         farwindow.location.href = open_file;
      }
}

function new_window(open_file, w, h)
{
	new_win = window.open(open_file,'','width='+w+',height='+h+',scrollbars=1,resizable=1, status=1, menubar=1, toolbar=1');
}


function cnj(id,after) 
{ 
	eval(id+'.filters.blendTrans.stop();'); 
	eval(id+'.filters.blendTrans.Apply();'); 
	eval(id+'.src="'+after+'";'); 
	eval(id+'.filters.blendTrans.Play();'); 
} 

var farwindow = null;
function aWindow(open_file, w, h){
      farwindow = window.open('','','width='+w+',height='+h+',scrollbars=1 ,resizable=0, status=0, toolbar=0, menubar=0');
      if(farwindow != null){
         if(farwindow.opener == null){
            farwindow.opener = self;
         }
         farwindow.location.href = open_file;
      }
}

function logout()
{
	ret = confirm("·Î±× ¾Æ¿ô ÇÏ½Ã°Ú½À´Ï±î?");

	if(ret)
		location.href="/login/logout.asp";
}

function view(p_id, co_id, ca_id, page, skin, used)
{
	var url= 'http://realview.nenia.co.kr/ebook/viewer/view.asp?p_id=' + p_id + '&co_id=' + co_id + '&ca_id=' + ca_id + '&page=' + page + '&skin=' + skin + '&used=' + used;
	window.open(url,'','fullscreen=0, width=200, height=200, scrollbars=0,resizable=0, status=0, menubar=0, toolbar=0, location=0, directories=0');
}