<!--
// È¸¿ø°¡ÀÔ ÀÌ¿ë¾à°ü
function cancel() { if (name='cancel') {history.go(-1);}  }

function agree() { if (name='agree') {location.href="join_cookie.html";} }

//¸ÞÀÏ º¸³»±â
  function OnEnter( field ) { if( field.value == field.defaultValue ) { field.value = ""; } }

  function OnExit( field )  { if( field.value == "" ) { field.value = field.defaultValue; } }


//¾à°üµ¿ÀÇ º¸ÀÌ±â
function Recommend() {
	if (document.all.item('tRecommend').style.display=="") {
		document.all.item('tRecommend').style.display="none";
	} else {
		document.all.item('tRecommend').style.display="";
	}
}


// ÇÏ´Ü¸Þ´º ºê·»µù ·Ñ¿À¹ö ¸Þ´º
function bt(id,after)
{
eval(id+'.filters.blendTrans.stop();');
eval(id+'.filters.blendTrans.Apply();');
eval(id+'.src="'+after+'";');
eval(id+'.filters.blendTrans.Play();');
}

// ¸Þ´º ·Ñ¿À¹ö ¸Þ´º1

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_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_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];}
}


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_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; }
}


// ¸Þ´º ·Ñ¿À¹ö ¸Þ´º2
function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  }
}

function na_preload_img()
{
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null)
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i]     = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  }
}

function na_change_img_src(name, nsdoc, rpath, preload)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  }
}

// ¸¶¿ì½º¿À¹ö½Ã ·¹ÀÌ¾î ¼³¸í º¸ÀÌ±â skylife/premium.html
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_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;
    }
}


// »õÃ¢ ¶ç¿ì±â
function openSetup(url)
{
	mySetup = window.open(url,'setup','width=665,height=510,top=20,left=30,resizable=no,scrollbars=yes');
	mySetup.window.focus()
}

function openSetup2(url)
{
	mySetup = window.open(url,'setup','width=466,height=450,top=20,left=30,resizable=no,scrollbars=yes');
	mySetup.window.focus()
}

function openSetup3(url)
{
	mySetup = window.open(url,'setup','width=662,height=580,top=20,left=30,resizable=no,scrollbars=yes');
	mySetup.window.focus()
}

function openSetup4(url)
{
	mySetup = window.open(url,'setup','width=450,height=460,top=20,left=30,resizable=no');
	mySetup.window.focus()
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


// È¸¿ø°¡ÀÔ ¼Ò½º
var isNav = (navigator.appName.indexOf("Netscape") != -1);
var isIE = (navigator.appName.indexOf("Microsoft") != -1);
window.document.onkeypress = getKey;

function getKey(keyStroke) {
	keyHit = (isNav) ? keyStroke.which : event.keyCode;
	whichKey = String.fromCharCode(keyHit).toLowerCase();
	checkKey()
}

function checkKey(){
	if (keyHit=="67C" || keyHit=="86V") return false;
	else return;
}

function login_check()
{
f = document.login;
user_id=f.user_id.value;
user_pass=f.user_pass.value;

if(user_id=='' || user_id.length < 4) {
				window.alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
				f.user_id.focus();
				return;
				}
else if(user_pass=='' || user_pass.length < 4) {
				window.alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
				f.user_pass.focus();
				return;
				}
else {
	f.action='../login_post.html';
	f.submit();
	return true;
	}
}



// ¼­ºñ½º °¡ÀÔ½ÅÃ»¼­ °ü·Ã ¼Ò½º

function onlyNumKey() {
	if(((event.keyCode > 64)&&(event.keyCode < 91))||((event.keyCode > 106)&&(event.keyCode < 123)))
	event.returnValue=false;
}

function onlyNumber(loc,string) {
	if(string.length > 0) {
						if(/\D/g.test(string)){
												loc.value = "";
												loc.focus();
												}
							}
	}

function AddressWindow(url)
{
    var hWnd = window.open(url,"HelpWindow","width=500,height=400,resizable=yes,scrollbars=yes");
        if (!hWnd.opener) hWnd.opener = self;
}

function AddressWindow2(url)
{
    var hWnd = window.open(url,"HelpWindow","width=450,height=300,resizable=yes,scrollbars=yes");
        if (!hWnd.opener) hWnd.opener = self;
}

function AddressWindow3(url)
{
	var url2=url+document.boracheck.dong.value;
    var hWnd = window.open(url2,"HelpWindow","width=450,height=300,resizable=yes,scrollbars=yes");
        if (!hWnd.opener) hWnd.opener = self;
}

function login_check()
{
f = document.login;
user_id=f.user_id.value;
if(user_id=='' || user_id.length < 4) {
				alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
				f.user_id.focus();
				return;
				}

user_pass=f.user_pass.value;
if(user_pass=='' || user_pass.length < 4) {
				alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
				f.user_pass.focus();
				return;
				}
	f.submit();
}

function item_sort() {
		document.item_sortform.submit();
}

function goto_byselect(sel)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
       window.location = sel.options[index].value;
  }
}
function Recommend() {
	if(!document.inputform.iche.checked)   {
		document.all.item('tRecommend').style.display="none";
	} else {
		document.all.item('tRecommend').style.display="";
	}
}

function moveFocus(num,fromform,toform)
{
    var str = fromform.value.length;
    if(str == num)
       toform.focus();
}

function check_indent()
{
  // ÁÖ¹Î¹øÈ£ ÀÔ·Â½Ã ÀÚµ¿ »ý³â¿ùÀÏ ÀÔ·ÂµÇ´Â ÇÔ¼ö
  var identifier1 =  document.inputform.jumin1.value;
  var prefixForssn = 19;
  f = document.inputform;
  jumin1=f.jumin1.value;
  jumin2=f.jumin2.value;
  var year;
  if (jumin1.length==6)
  {
    year=prefixForssn+""+jumin1.substr(0,2);

    var month_temp=12;
    var month_input=jumin1.substr(2,2);

    if (month_input > month_temp)
    {
        alert ("ÀÔ·Â errorÀÔ´Ï´Ù.");
        document.inputform.jumin1.value="";
        document.inputform.jumin1.focus();
        return ;
    }
    var day_temp=31;
    var day_input=jumin1.substr(4,2);
    if (day_input > day_temp)
    {
        alert ("ÀÔ·Â errorÀÔ´Ï´Ù.");
        document.inputform.jumin1.value="";
        document.inputform.jumin1.focus();
        return ;
    }
  }

}

function paymethodck() {            //¿ä±Ý³³ºÎ ¹æ¹ý Ã¼Å©
    if(document.inputform.paymethod[0].checked)  {
        document.inputform.year.value="";
        document.inputform.month.value="";
        document.inputform.year.disabled=true;
        document.inputform.month.disabled=true;
		document.all.item('iche_bank1').style.display="";
		document.all.item('iche_bank2').style.display="";
		document.all.item('iche_bank3').style.display="";
		document.all.item('iche_card1').style.display="none";
		document.all.item('iche_card2').style.display="none";
		document.all.item('iche_card3').style.display="none";
    }
    if(document.inputform.paymethod[1].checked)  {
        document.inputform.year.disabled=false;
        document.inputform.month.disabled=false;
		document.all.item('iche_bank1').style.display="none";
		document.all.item('iche_bank2').style.display="none";
		document.all.item('iche_bank3').style.display="none";
		document.all.item('iche_card1').style.display="";
		document.all.item('iche_card2').style.display="";
		document.all.item('iche_card3').style.display="";
    }
}


//¿À¸¥ÂÊ ¹è³Ê °ü·Ã
	var setImage = 'http://www.imagecd.com/img/home_icon_a.gif';
	var refreshImage = 'http://www.imagecd.com/img/home_icon_n.gif';

	function Refresh() {

		form = document.Form;

		form.image1.src = refreshImage;
		form.image2.src = refreshImage;
		form.image3.src = refreshImage;
		form.image4.src = refreshImage;

	}

	function Set( imageNumber ) {

		form = document.Form;

		Refresh();

		switch( imageNumber ) {

			case 'image1' :	form.image1.src = setImage; break;
			case 'image2' :	form.image2.src = setImage; break;
			case 'image3' :	form.image3.src = setImage; break;
			case 'image4' :	form.image4.src = setImage; break;

		}

	}

	function Location( openURL, target ) {

		window.open( openURL, target );

	}

	function Recommendation() {

        openURL = "mailer/mail.html";

    	window.open( openURL, '_recommend', 'width=550, height=370, scrollbars=no' );

	}




function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 



// ÀÌ¹ÌÁö ¿¡·¯¸¦ Ã¤Å©ÇÏ¿© ´Ù½Ã ¸®·Îµå ½ÃÄÑÁÖ´Â ÇÔ¼ö
function imgreload(imgobj) {
        re = 4;        // ÀÌ¹ÌÁö ¿¡·¯ÀÌº¥Æ®°¡ ¹ß»ýÇßÀ»¶§ ÀÌ¹ÌÁö¸¦ È£ÃâÇÏ´Â Ä«¿îÅÍ
        imgobj.recount++;
        if(imgobj.recount >= re) {
                imgobj.src = "noimage.gif";        // re Ä«¿îÅÍ ¸¸Å­ ÀÌ¹ÌÁö¸¦ ¸®·ÎµåÈÄ¿¡µµ ¿¡·¯°¡ ¹ß»ýÇÏ¸é ´Ù¸¥ ¿¡·¯ÀÌ¹ÌÁö¸¦ º¸¿©ÁØ´Ù.
                return;
        }
        imgobj.src=imgobj.src;
}


// -->