var errmsg = "";
var errfld;

function del(href) {
  if(confirm("Á¤¸» ÁÖ¹®Ãë¼Ò ÇÏ½Ã°Ú½À´Ï±î?")) {
    document.location.href = href;
  }
}

function del1(href) {
  if(confirm("Á¤¸» »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?")) {
    document.location.href = href;
  }
}


 function popupzip(frm_name, frm_zip1, frm_zip2, frm_addr, relative_dir) {
      window.open(relative_dir+'/zip.php?frm_name='+frm_name+'&frm_zip1='+frm_zip1+'&frm_zip2='+frm_zip2+'&frm_addr='+frm_addr, 'winzip', 'scrollbars=yes,width=470,height=200,top=0,left='+(screen.width-482));
    }

function largeimage(it_id,width,height) {
		var top = 10;
        var left = 10;
        url = "largeimage.php?it_id=" + it_id;
        width = width + 18;
        height = height + 5;
        opt = 'scrollbars=yes,width='+width+',height='+height+',top='+top+',left='+left;
      window.open(url, "largeimage", opt);
    }

// »õ Ã¢
function popup_window(url, winname, opt)
{
    window.open(url, winname, opt);
}

// Æû¸ÞÀÏ Ã¢
function popup_formmail(url)
{
	opt = 'scrollbars=yes,width=417,height=385,top=10,left=20';
	popup_window(url, "wformmail", opt);
}


// E-Mail °Ë»ç
function email_check(email) 
{
    if (email.value.search(/(\S+)@(\S+)\.(\S+)/) == -1)
        return false;
    else
        return true;
}

// ÂÊÁö Ã¢
function win_note()
{
	window.open("pse_note.php", "psenote", "left=200,top=200,width=640,height=460,scrollbars=1");
}


self.onError=null; 
currentX = currentY = 0; 
whichIt = null; 
lastScrollX = 0; lastScrollY = 0; 
NS = (document.layers) ? 1 : 0; 
IE = (document.all) ? 1: 0; 

function heartBeat() 
{ 
	//spaceTop : È­¸é »ó´Ü ¿©¹é ³ôÀÌ 
	//spaceBottom : È­¸é ÇÏ´Ü ¿©¹é ³ôÀÌ 
	//barHeight : ÀÌµ¿ Äü¹ÙÀÇ ³ôÀÌ 
	spaceTop = 200 ; 
	spaceBottom = 00 ; 
	barHeight = 300 ; 
	DIV_MAX_Y = document.documentElement.scrollHeight - barHeight - spaceTop - spaceBottom ; 

	if(IE) { 
		diffY = document.documentElement.scrollTop; 
		diffX = 0; 
	} 
	if(NS) { 
		diffY = self.pageYOffset; 
		diffX = self.pageXOffset; 
	}  
	if(diffY != lastScrollY) { 
		if( !((diffY >= lastScrollY) && (document.all.quickbar.style.pixelTop >= DIV_MAX_Y)) ) 
		{ 
			percent = .1 * (diffY - lastScrollY); 

			if(percent > 0) { 
				percent = Math.ceil(percent); 
			} 
			else { 
				percent = Math.floor(percent); 
			} 

			if(IE) document.all.quickbar.style.pixelTop += percent; 
			if(NS) document.quickbar.top += percent; 
			lastScrollY = lastScrollY + percent; 
		} 
	} 
	if(diffX != lastScrollX) { 
		percent = .1 * (diffX - lastScrollX); 

		if(percent > 0) percent = Math.ceil(percent); 
		else percent = Math.floor(percent); 

		if(IE) document.all.quickbar.style.pixelLeft += percent; 
		if(NS) document.quickbar.left += percent; 
		lastScrollX = lastScrollX + percent; 
	} 
} 

if(NS || IE) action = window.setInterval("heartBeat()",1); 