function open_cal(frm){
	var str = "";
	var x=0, y=0;
	x = event.clientX + document.body.scrollLeft;
	y = event.clientY + document.body.scrollTop;
	str = '<iframe src="../common/com_calendar.aspx?flag='+frm+'&g_checkDate=&type", id="frm_cal" width="170" height="170" frameborder="0" topmargin="0" leftmargin="0" scrolling="no"></iframe>';
	output_cal.innerHTML = str;
	popup_cal.style.display = "block";
	popup_cal.style.top=y;
	popup_cal.style.left=x;	
	
	return false;
}

function open_cal2(frm, chkDate, type) {
	var str = "";
	var x=0, y=0;
	x = event.clientX + document.body.scrollLeft;
	y = event.clientY + document.body.scrollTop;
	str = '<iframe src="../common/com_calendar.aspx?flag='+frm+'&g_checkDate='+chkDate+'&type='+type+'", id="frm_cal" width="170" height="170" frameborder="0" topmargin="0" leftmargin="0" scrolling="no"></iframe>';
	output_cal.innerHTML = str;
	popup_cal.style.display = "block";
	popup_cal.style.top=y;
	popup_cal.style.left=x;	
	
	return false;
}

function open_c_jubsu_no(org,frm) {
	var str = "";
	var x=0, y=0;
	x = event.clientX + document.body.scrollLeft-100;
	y = event.clientY + document.body.scrollTop;
	str = '<iframe src="../common/com_c_jubsu_no.aspx?org_path='+org+'&frm='+frm+'", id="frm_cal" width="380" height="150" frameborder="0" topmargin="0" leftmargin="0" scrolling="no"></iframe>';
	output.innerHTML = str;
	popup_c_jubsu_no.style.display = "block";
	popup_c_jubsu_no.style.top=y;
	popup_c_jubsu_no.style.left=x;	
}

function open_hope_ymd(base_class, custom_code, frm) {
	if (base_class == "")
	{
		alert("Çü½Ä¹øÈ£¸¦ ¸ÕÀú ¼±ÅÃÇÏ¼¼¿ä.");
		return;
	}
	var str = "";
	var x=0, y=0;
	x = event.clientX + document.body.scrollLeft-125;
	y = event.clientY + document.body.scrollTop-280;
	str = '<iframe src="../common/com_hope_ymd.aspx?base_class='+base_class+'&custom_code='+custom_code+'&frm='+frm+'", id="frm_hope_ymd" width="200" height="310" frameborder="0" topmargin="0" leftmargin="0" scrolling="no"></iframe>';
	output_hope_ymd.innerHTML = str;
	popup_hope_ymd.style.display = "block";
	popup_hope_ymd.style.top=y;
	popup_hope_ymd.style.left=x;	
}

function open_tank(path, reload_yn){
	popUpWin = window.open ('../common/tank_popup.aspx?org_path='+path+'&reload_yn='+reload_yn, 'tankwin', 'toolbar=0, location=no,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=520,height=550');
	
	if(navigator.appName == 'Netscape')
    {
      popUpWin.focus();
    }
    else
    {
      popUpWin.opener = self;
      popUpWin.focus();
    }	
}
function open_tank2(path, reload_yn, tank_gb){
	popUpWin = window.open ('../common/tank_popup.aspx?org_path='+path+'&reload_yn='+reload_yn+'&gb='+tank_gb, 'tankwin', 'toolbar=0, location=no,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=520,height=550');
	
	if(navigator.appName == 'Netscape')
    {
      popUpWin.focus();
    }
    else
    {
      popUpWin.opener = self;
      popUpWin.focus();
    }	
}
function open_post(c_zipcode, c_addr){
	popUpWin = window.open ('../common/post_popup.aspx?zipcode='+c_zipcode+'&addr='+c_addr, 'postwin', 'toolbar=0, location=no,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=350,height=400');
	
	if(navigator.appName == 'Netscape')
    {
      popUpWin.focus();
    }
    else
    {
      popUpWin.opener = self;
      popUpWin.focus();
    }	
}
function open_model_no(path, biz_gb, c_model_no) {
	popUpWin = window.open ('../common/model_no_popup.aspx?org_path='+path+'&biz_gb='+biz_gb+'&c_model_no='+c_model_no, 'postwin', 'toolbar=0, location=no,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=500,height=400');
	
	if(navigator.appName == 'Netscape')
    {
      popUpWin.focus();
    }
    else
    {
      popUpWin.opener = self;
      popUpWin.focus();
    }	
}
function open_jejo(path, reload_yn){
	popUpWin = window.open ('../common/jejo_popup.aspx?org_path='+path+'&reload_yn='+reload_yn, 'tankwin', 'toolbar=0, location=no,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=520,height=550');
	
	if(navigator.appName == 'Netscape')
    {
      popUpWin.focus();
    }
    else
    {
      popUpWin.opener = self;
      popUpWin.focus();
    }	
}
function open_gigwan(path, reload_yn){
	popUpWin = window.open ('../common/gigwan_popup.aspx?org_path='+path+'&reload_yn='+reload_yn, 'tankwin', 'toolbar=0, location=no,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=520,height=550');
	
	if(navigator.appName == 'Netscape')
    {
      popUpWin.focus();
    }
    else
    {
      popUpWin.opener = self;
      popUpWin.focus();
    }	
}


