/* onfocus-='this.blur()'*/
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

/* ·Ñ¿À¹ö ÀÌ¹ÌÁö */
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/* iframe ÀÚµ¿Á¶Àý ¼¼·Î */
function iframe_autoresize(arg) {
    arg.height = 
eval(arg.name+".document.body.scrollHeight");
}


function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}


/* ¹öÆ° Ã³¸® show.hieden block*/
var previd = null;

function displaySub(subID)
{
if (previd != null)
{
if (previd != subID)
{
previd.style.display = "none";
}
}

if (subID.style.display == "none") 
{
subID.style.display = "block";
}
else
{
subID.style.display = "none";
}
previd = subID;
//titleID.style.bold = true;
}


/* menu °øÅë ½ºÅ©¸³Æ® */

function showhide(num) {
for (i=1; i<=main_cnt; i++) {
menu=eval("document.all.block"+i+".style");
imgch=eval("document.menu"+i);
if (num==i) {
if (menu.display=="block") {
menu.display="none";

}else {
menu.display="block";

}
//}else {
// menu.display="none";
// imgch.src="+.gif";
}
}
}

function show(num) {
for (i=1; i<=main_cnt; i++) {
menu=eval("document.all.block"+i+".style");
imgch=eval("document.menu"+i);
if (num==i) {
menu.display="block";

}else {
menu.display="none";

}
}
}



/* iframe  °¡·ÎÁ¶Àý*/

function iframe_autoresize(arg) {
    arg.height = 
eval(arg.name+".document.body.scrollHeight");
}

/* ÀÌ¸ÞÀÏ Ã¼Å© */

function check_email(str) {
    if (str=="") return false;
    re = new RegExp("^(\w+\.)*(\w+)@(\w+\.)+([a-zA-Z]{2,4})$");
    if (!re.test(str)){ 
        return true;
    } else
        return false;
}

/**
 * ÀÔ·Â°ª¿¡ ¼ýÀÚ¸¸ ÀÖ´ÂÁö Ã¼Å©
 */
function isNumber(input) {
    var chars = "0123456789";
    return containsCharsOnly(input,chars);
}

/**
 * ÀÔ·Â°ªÀÌ Æ¯Á¤ ¹®ÀÚ(chars)¸¸À¸·Î µÇ¾îÀÖ´ÂÁö Ã¼Å©
 * Æ¯Á¤ ¹®ÀÚ¸¸ Çã¿ëÇÏ·Á ÇÒ ¶§ »ç¿ë
 * ex) if (!containsCharsOnly(form.blood,"ABO")) {
 *         alert("Ç÷¾×Çü ÇÊµå¿¡´Â A,B,O ¹®ÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
 *     }
 */
function containsCharsOnly(input,chars) {
    for (var inx = 0; inx < input.value.length; inx++) {
       if (chars.indexOf(input.value.charAt(inx)) == -1)
           return false;
    }
    return true;
}


var myimages=new Array()
		function preload(){
		for (i=0;i<preload.arguments.length;i++){
		myimages[i]=new Image()
		myimages[i].src=preload.arguments[i]
		        }
		}
		preload(
		// ÀÌ¹ÌÁö Ä³½¬ ÇÁ¸®·Îµå ¿É¼ÇÀ» ÁÝ´Ï´Ù. //
		
		"/idaehan/images/common/logo.gif"
		)

function bt(id,after) 
{ 
eval(id+'.filters.blendTrans.stop();'); 
eval(id+'.filters.blendTrans.Apply();'); 
eval(id+'.src="'+after+'";'); 
eval(id+'.filters.blendTrans.Play();'); 
} 


function openwin1(theURL){
window.open(theURL,"cyber","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=800,height=588");
}

function openwin111(theURL){
window.open(theURL,"cyber2","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=800,height=588");
}

function openwin2(theURL){
window.open(theURL,"history","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=800,height=500");
}

function openwin222(theURL){
window.open(theURL,"history2","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=800,height=500");
}

function openwin3(theURL){
window.open(theURL,"webzine","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=700,height=695");
}



 function OpenBookFullScreen1(bc, co, gp, sbp, sep, ui, ct){
        OpenEBook.winStyle  = 0  ;  //full screen mode·Î À©µµ¿ì Ã¢ÀÌ ¶á´Ù.
        OpenEBook.OpenBook(bc, co, gp, sbp, sep, ui, ct);
      }


 function OpenBookFullScreen2(bc, co, gp, sbp, sep, ui, ct){
        OpenEBook.winStyle  = 0  ;  //full screen mode·Î À©µµ¿ì Ã¢ÀÌ ¶á´Ù.
        OpenEBook.OpenBook(bc, co, gp, sbp, sep, ui, ct);
      }


 function OpenBookFullScreen3(bc, co, gp, sbp, sep, ui, ct){
        OpenEBook.winStyle  = 0  ;  //full screen mode·Î À©µµ¿ì Ã¢ÀÌ ¶á´Ù.
        OpenEBook.OpenBook(bc, co, gp, sbp, sep, ui, ct);
      }

 function OpenBookFullScreen4(bc, co, gp, sbp, sep, ui, ct){
        OpenEBook.winStyle  = 0  ;  //full screen mode·Î À©µµ¿ì Ã¢ÀÌ ¶á´Ù.
        OpenEBook.OpenBook(bc, co, gp, sbp, sep, ui, ct);
      }
 function popup(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
      }

function man_01() 
{
	var url='man_01.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_02() 
{
	var url='man_02.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_03() 
{
	var url='man_03.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_04() 
{
	var url='man_04.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_05() 
{
	var url='man_05.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_06() 
{
	var url='man_06.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_07() 
{
	var url='man_07.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_08() 
{
	var url='man_08.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_09() 
{
	var url='man_09.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_10() 
{
	var url='man_10.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_11() 
{
	var url='man_11.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_12() 
{
	var url='man_12.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_13() 
{
	var url='man_13.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_14() 
{
	var url='man_14.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_15() 
{
	var url='man_15.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_16() 
{
	var url='man_16.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_17() 
{
	var url='man_17.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_18() 
{
	var url='man_18.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_19() 
{
	var url='man_19.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_20() 
{
	var url='man_20.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_21() 
{
	var url='man_21.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_22() 
{
	var url='man_22.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_23() 
{
	var url='man_23.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_24() 
{
	var url='man_24.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_25() 
{
	var url='man_25.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_26() 
{
	var url='man_26.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_27() 
{
	var url='man_27.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_28() 
{
	var url='man_28.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}

function man_29() 
{
	var url='man_29.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_30() 
{
	var url='man_30.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_31() 
{
	var url='man_31.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_32() 
{
	var url='man_32.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_33() 
{
	var url='man_33.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_34() 
{
	var url='man_34.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_35() 
{
	var url='man_35.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_36() 
{
	var url='man_36.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_37() 
{
	var url='man_37.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_41() 
{
	var url='man_41.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_42() 
{
	var url='man_42.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_43() 
{
	var url='man_43.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_44() 
{
	var url='man_44.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_45() 
{
	var url='man_45.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_46() 
{
	var url='man_46.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_47() 
{
	var url='man_47.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
function man_48() 
{
	var url='man_48.htm';
	window.open(url, 'newl', 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=360,top=10,left=30');
}
