function showUser(txtValue, txtDisplay) {
	var txt = eval(txtValue);
  window.open('/include/selectuser.jsp?value=' + txtValue + '&name='
    + txtDisplay + '&userid=' + txt.value, 'selectuser',
    'width=340,height=260,status=no,resizable=no,top=200,left=200');
}
function showUserList(lstUser) {
  window.open('/include/selectuser.jsp?lst=' + lstUser, 'selectuser',
    'width=340,height=260,status=no,resizable=no,top=200,left=200');
}
function showLogOut()
{
  window.open('/portal/personal/login.jsp?logout=quit','logout',
  	'location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no,width=10,height=10,top=2000,left=2000');
}
function showKeyword(txtValue, txtDisplay) {
	var txt = eval(txtValue);
  window.open('/include/selectkeyword.jsp?value=' + txtValue + '&name='
    + txtDisplay + '&keyid=' + txt.value, 'selectkeyword',
    'width=240,height=260,status=no,resizable=no,top=200,left=200');
}
function showUserInfo(userid) {
  window.open('/include/user.jsp?id=' + userid, 'userinfo',
    'width=330,height=300,status=no,resizable=no,top=200,left=200');
}
function showNotice(infoid) {
  window.open('/portal/cms/detailcontent.jsp?id=' + infoid, '',
    'scrollbars=yes,resizable=yes');
}
function showLoginUserList() {
  window.open('/include/curuserlist.jsp', 'curuserlist',
    'width=330,height=300,status=no,scrollbars=yes,resizable=no,top=200,left=200');
}
function popMailWin(type, info) {
  window.open('/email.jsp?mailtype=' + type + "&mailinfo=" + info, 'email',
    'width=440,height=210,status=no,resizable=no,top=200,left=200');
}
function showChangeAttrs(infoid) {
  window.open('/cms_web/change_attrs.jsp?id=' + infoid,'chngattrs',
    'location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no,width=450,height=300');
}
function showDetail(infoid, column) {
  window.open('/cms_web/cmsdetail.jsp?id=' + infoid + '&column=' + column,'',
    'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=900,height=600');
}
function showComment(infoid) {
  window.open('/cms_web/comment.jsp?id=' + infoid,'',
    'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=700,height=560');
}
function showChangePerson(usrid) {
  window.open('/mine/chngpersoninfo.jsp?usrid=' + usrid,'changePerson',
    'location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no,width=450,height=320');
}
function fillSelectByInt(list, iBeg, iEnd, iDef) {
  for (var i = iBeg; i <= iEnd; i++) {
    list.options.length++;
    list.options[list.options.length - 1].value = i;
    list.options[list.options.length - 1].text = i;
    if (i == iDef) list.options[list.options.length - 1].selected = true;
  }
}
var tabLast = "";
function changeTab(iNo) {
  if (iNo >= 0) {
    var tabClick = eval("document.all.tab" + iNo);
    if (tabLast == "") document.all.tab0.style.display = "none";
    else tabLast.style.display = "none";
    tabClick.style.display = "block";
    tabLast = tabClick;
  }
}
function selectAll(chkAll, chkname) {
  var bAll = chkAll.checked;
  var frm = chkAll.form;
  for (var i = 0; i < frm.elements.length; i++) {
    if (frm.elements(i).name == chkname) frm.elements(i).checked = bAll;
  }
}
function showCMSInfor(column) {
  window.open("/cms/servlet/ServletGate?cur_page=TopPage&op=Forward&target=WebInforMain&column=" + column);
}
function changeBKGroundColor(obj, bChngColor) {
  obj.style.backgroundColor = bChngColor?"#cccccc":"";
}

