
		function logout(){
		window.location.href='/zlib/proc/logout.asp';
		}
// JScript source code
document.write("<meta http-equiv=\"imagetoolbar\" content=\"no\">");
//		플래쉬 코드 
function printSWF(fn, w, h)
{
	var arg = arguments;
	var argc =  arguments.length;
	str   = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\"width=\""+w+"\" height=\""+h+"\">";
	str += "        <param name=\"SRC\" value=\""+fn+"\">";
	str += "        <param name=\"wmode\" value=\"transparent\">";
	for(i = 3; i < argc ; i++){
		str += "        <param name=\""+arg[i++]+"\" value=\""+arg[i]+"\">";
	}
	str += "        <embed wmode='transparent' src=\""+fn+"\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" type=\"application/x-shockwave-flash\" width=\""+w+"\" height=\""+h+"\">";
	str += "        </embed> ";
	str += "</object>";
	document.write(str);
}


//		애플릿 코드 
function get_applet(apt_codebase, apt_code, apt_arch, apt_width, apt_height, apt_param)
{
	var scnt = cnt_string(apt_param,",") ;
	var split_str = apt_param.split(",") ;

	document.writeln("<applet codebase='"+apt_codebase+"' code='"+apt_code+"' archive='"+apt_arch+"' width='"+apt_width+"' height='"+apt_height+"' name='IpixViewer' viewastext id=Applet1>") ;
	for (i=0;i<=scnt;i++)
	{
//		alert("<param name='"+split_str[i].split("@")[0]+"' value='"+split_str[i].split("@")[1]+"'>") ;
		document.writeln("<param name='"+split_str[i].split("@")[0]+"' value='"+split_str[i].split("@")[1]+"'>") ;
	}
	document.writeln("</applet>") ;
}


//	문자열내의 컴마 수를 체크하는 함수
function cnt_string(ostring, chkstr)
{
	var lngPos = 1 ;
	var lngCount = 0 ;

	do
	{
		lngPos = ostring.indexOf(chkstr) ;

		if (lngPos>0)
		{
         lngCount = lngCount + 1 ;
         ostring = ostring.substring(lngPos+chkstr.length, ostring.length) ;
		}
	}
	while (lngPos>0)

	return lngCount ;
}
function ch()
{
alert("준비중입니다.");
}
onlineView=function(hrefz){
	window.open(hrefz);
}
orderBook=function(hrefz){
	shopWin = window.open("/shop.asp?shopurl="+escape(hrefz), "shopWin");
	if(shopWin) shopWin.focus();
}
preview=function(tbl, seq){
	switch(tbl){
		case "book" :
			fn = "d_index";
			b_type = "dan";
			break;
		case "magazine_monthly" :
			fn = "d_index";
			b_type = "jab_m";
			break;
		case "magazine_monthly_incontent":
			fn = "d_index";
			b_type = "jab_mc";
			break;
	};
	strUrl = '/view/'+fn+'.asp?seq='+seq+'&tbl='+tbl+'&b_type='+b_type;
	//prompt(strUrl, strUrl);
//	window.open(strUrl,'','width=1200,height=925');845 588
	window.open(strUrl,'preview','top=0,left=0,width=1280,height=960,toolbar=no,statue=no,lovation=no,scrollbars=no');
}
magazineLink=function(wh, lnk)
{
	if(wh == "cyworld");
	if(wh == "nate");
	window.open(lnk);
}
addLoadEvent=function(func){
	var oldonload = window.onload;
	if( typeof window.onload != 'function'){
			window.onload = func;
	} else {
			window.onload = function(){
				oldonload();
				func();
			}
	}
}
LoadScript=function(strSrc)
{
	document.write("<script src='"+strSrc+"' language='javascript'></script>");
}

LoadStyleSheet=function(strHref)
{
	document.write("<link href='"+strHref+"' rel='stylesheet'/>");
}
//LoadStyleSheet("/zlib/css/default.css");
//LoadStyleSheet("/css/default.css");
LoadScript("/zlib/js/validata.js");
LoadScript("/zlib/js/util.js");
LoadScript("/zlib/js/table.js");
LoadScript("/zlib/js/cookie.js");
LoadScript("/zlib/js/calendar_dtp/xwz.datepick.v2.js");
LoadScript("/zlib/js/zload.js");


LoadScript("/zlib/js/jquery/jquery-1.3.2.min.js");
LoadScript("/zlib/js/jquery/jquery-ui-1.7.2.custom/js/jquery-ui-1.7.2.custom.min.js");
LoadScript("/zlib/js/jquery/jqueryRolling_1/jquery.rolling.js");

printAnyProcId=function(hostname){
//	alert(hostname);
	document.write('<object width="0" height="0" id="AnyProcID" classid="clsid:CB0352CE-581B-4CFD-B159-AF1F78AEE430" codebase="http://'+hostname+'/zobject/Any3Proc.cab#version=1,0,0,1"></object>');
}
 
