// 부르는 함수
function selectClientPopup() {
var clientId = document.f.clientId;
var clientName = document.f.clientName;
var clientOrg = document.f.clientOrg;
var divClientName = document.getElementById("divClientName");
var divClientOrg = document.getElementById("divClientOrg");
var retVal = window.showModalDialog("select_client_popup.jsp", [clientId, clientName, clientOrg, divClientName, divClientOrg], "dialogWidth:630px");
if(typeof(retVal) == "undefined")
return false;
return retVal;
}
// 불리는 화면
window.name = "thisModalDlg";
window.returnValue = false;
function clickUser(userId, userOrg, userName) {
var args = window.dialogArguments;
var clientId = args[0];
var clientName = args[1];
var clientOrg = args[2];
var divClientName = args[3];
var divClientOrg = args[4];
clientId.value = userId;
clientName.value = userName;
clientOrg.value = userOrg;
divClientName.innerHTML = userName;
divClientOrg.innerHTML = userOrg;
window.returnValue = true;
window.close();
}