//////////////////////////////////////// ÆË¾÷ °ü·Ã ÇÔ¼ö ¸ðÀ½ ////////////////////////////////////////

/*#################################################################################################
   + popup(u, t, w, h, s)
   - Arguments  :
   - Return     :
   - Usage      : 
   - Content    : ÆË¾÷Ã¢À» È­¸é °¡¿îµ¥·Î ¿ÀÇÂ. u=url, t=target, w=width, h=height
#################################################################################################*/
function popup(u, t, w, h, s){
	var opt="height=" + h + ",innerHeight=" + h + ",width=" + w + ",innerWidth=" + w;
  	if(window.screen) { 
    		var ah = screen.availHeight - 30;
    		var aw = screen.availWidth - 10;
    		var xc = (aw - w) / 2; 
    		var yc = (ah - h) / 2; 
    		opt += ",left=" + xc + ",screenX=" + xc; 
    		opt += ",top=" + yc + ",screenY=" + yc; 
    		opt += ",scrollbars=" + s;
  	}
	var win=window.open(u,t,opt);
	if(win) win.focus();
}
/*#################################################################################################
   + autoResizePopup()
   - Arguments  :
   - Return     :
   - Usage      : 
   - Content    : ÆË¾÷Ã¢ ÀÚµ¿ Å©±âÁ¶Àý
#################################################################################################*/
function autoResizePopup() {
	var winW, winH, sizeToW, sizeToH;
	if ( parseInt(navigator.appVersion) > 3 ) {
 		if ( navigator.appName=="Netscape" ) {
  			winW = window.innerWidth;
			winH = window.innerHeight;
 		}
 		if ( navigator.appName.indexOf("Microsoft") != -1 ) {
  			winW = document.body.scrollWidth;
  			winH = document.body.scrollHeight;
 		}
	}
	sizeToW = 0;
	sizeToH = 0;
	if ( winW > 600 ) {
		sizeToW = 600 - document.body.clientWidth;
	} else if ( Math.abs(document.body.clientWidth - winW ) > 3 ) {
		sizeToW = winW - document.body.clientWidth;
	}
	if ( winH > 680 ) {
		sizeToH = 680 - document.body.clientHeight;
	} else if ( Math.abs(document.body.clientHeight - winH) > 4 ) {
		sizeToH = winH - document.body.clientHeight;
	}
	if ( sizeToW != 0 || sizeToH != 0 )
		window.resizeBy(sizeToW, sizeToH);

}


function popwindow01(win,pop,width,height,top,left)
	{
			var wname = win;
			var url = pop;
			var wd = width;
			var he = height;
			var to = top;
			var le = left;

			window.open(url,wname,"toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ",top=" + to + ",left=" + le + ";")
	}