//Å¬¸¯ÇÏ¸é È­¸é À§·Î ½ºÅ©·Ñ
function goTop(orix,oriy,desx,desy) {
	var Timer;
	var winHeight = document.body.scrollTop;
	if(Timer) clearTimeout(Timer);
	startx = 0;
	starty = winHeight;
	if(!orix || orix < 0) orix = 0;
	if(!oriy || oriy < 0) oriy = 0;
	var speed = 7;
	if(!desx) desx = 0 + startx;
	if(!desy) desy = 0 + starty;
	desx += (orix - startx) / speed;
	if (desx < 0) desx = 0;
	desy += (oriy - starty) / speed;
	if (desy < 0) desy = 0;
	var posX = Math.ceil(desx);
	var posY = Math.ceil(desy);
	window.scrollTo(posX, posY);
	if((Math.floor(Math.abs(startx - orix)) < 1) && (Math.floor(Math.abs(starty - oriy)) < 1)){
		clearTimeout(Timer);
		window.scroll(orix,oriy);
	}else if(posX != orix || posY != oriy){
		Timer = setTimeout("goTop("+orix+","+oriy+","+desx+","+desy+")",15);
	}else{
		clearTimeout(Timer);
	}
}





//»õÃ¢¶ç¿ì±â
function poper(URL,N,W,H) {
window.open(URL,N,'width='+W+',height='+H+',top=10,left=10');
}

function poper2(URL,N,W,H) {
window.open(URL,N,'width='+W+',height='+H+',top=10,left=10,scrollbars=yes');
}


//»õÃ¢¶ç¿ì±â
function popener(URL,N,W,H,S) {
window.open(URL,N,'width='+W+',height='+H+',top=10,left=10,scrollbars='+S);
}

//ÅØ½ºÆ®area ±ÛÀÚÁö¿ì±â
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
        thefield.value = ""
}

//»õÃ¢¶ç¿ì±â
function pop_bondang() {
	//window.open(URL,N,'width='+W+',height='+H+',top=10,left=10');
	window.open('/local/pop_bondang.php','pop_bondang','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=585,height=689');
}







function viewInMain(url) {
var str = url ;
self.close() ;
window.opener.location.href = str ;
}
