var posX;
var posY;
document.onmousedown = ch_pos;
function ch_pos(evnt)
{
posX = event.x + document.body.scrollLeft;
posY = event.y + document.body.scrollTop;
return true;
}
var objUserInfo = null;
//document.writeln("
");
document.writeln("");
function User(usrid, usr_nm, mst_key, blg_addr, blg_opn_yn, gubun)
{
this.usrid = usrid;
this.usr_nm = usr_nm;
this.mst_key = mst_key;
this.blg_addr = blg_addr;
this.blg_opn_yn = blg_opn_yn;
this.gubun = gubun;
this.pX = posX;
this.pY = posY;
this.strMenu = "";
this.viewMenu = viewMenu;
this.hideMenu = hideMenu;
this.setDiv = setDiv;
this.div_info = document.all.div_userInfo;
function setDiv()
{
this.div_info.innerHTML = strMenu;
this.div_info.style.left = posX - 30;
this.div_info.style.top = posY + 10;
}
function viewMenu()
{
strMenu = "\n"
+"\n"
+" | "+this.usr_nm+" | \n"
+" | \n"
+"
\n";
if(this.gubun == 'T')
{
strMenu +="\n"
+" | ¼±»ý´Ô ¼Ò°³ | \n"
+"
\n"
+"\n"
+" | ¼±»ý´Ô°Áº¸±â | \n"
+"
\n"
+"\n"
+" | ¼±»ý´Ô¹®Á¦º¸±â | \n"
+"
\n";
}
if((this.blg_opn_yn == 'Y' || this.blg_opn_yn == 'O') && this.blg_addr != '')
{
strMenu +="\n"
+" | ºí·Î±× °¡±â | \n"
+"
\n";
+"
\n";
} else
{
strMenu +="\n"
+" | ºí·Î±× ¾øÀ½ | \n"
+"
\n";
+"\n";
}
this.setDiv();
this.div_info.style.visibility = "visible";
}
function hideMenu()
{
this.usrid = null;
this.mst_key = null;
this.gubun = null;
this.pX = null;
this.pY = null;
this.strMenu = "";
this.div_info.style.visibility = "hidden";
}
}
function view_userMenu(usrid, usr_nm, mst_key, blg_addr, blg_opn_yn, gubun)
{
objUserInfo = new User(usrid, usr_nm, mst_key, blg_addr, blg_opn_yn, gubun);
objUserInfo.viewMenu();
/*try
{
parent.reSizeFrm();
parent.reSizeFrm4();
}catch(e){}*/
}
function hide_userMenu(usrid)
{
objUserInfo.hideMenu();
objUserInfo = null;
}
function user_js_pop(url, name, x, y)
{
window.open(url, name, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no, resizable=yes,copyhistory=no ,width='+x+', height='+y+', left=100,top=100');
}