function jsCommonMagMain(YearNo, MonthNo) {
    location.href = "/contents/magazine/magazineMain.asp?YearNo=" + YearNo + "&MonthNo=" + MonthNo;
}

function jsCommonMagList(conts_cls) {
    location.href = "/contents/magazine/magazineList.asp?ContsCls=" + conts_cls;
}

function jsCommonMagView(mag_seq) {
    location.href = "/contents/magazine/magazineView.asp?MagSeq=" + mag_seq;
}

function jsCommonEventView(event_seq,event_cls) {
    location.href = "/contents/event/eventView.asp?EventSeq=" + event_seq + "&eventCls="+ event_cls;
}

function jsCommonGallView(gallery_seq) {
    location.href = "/contents/gallery/galleryView.asp?GallerySeq=" + gallery_seq;
}

function jsContGallView(gallery_seq) {
    location.href = "/contents/gallery/galleryView.asp?ActionFlag=ConMODIFY&GallerySeq=" + gallery_seq;
}

function jsCommonForumView(forum_seq) {
    location.href = "/contents/cgforum/cgforumView.asp?ForumSeq=" + forum_seq;
}

function jsCommonJobEngagementView(job_seq) {
    location.href = "/contents/job/jobEngagementView.asp?JobSeq=" + job_seq;
}

function jsCommonJobBrainView(job_seq) {
    location.href = "/contents/job/jobBrainView.asp?JobSeq=" + job_seq;
}

function jsCommonNoticeView(notice_seq) {
    location.href = "/contents/customer/notice/noticeView.asp?NoticeSeq=" + notice_seq;
}

function jsCommonQnaView(aud_board_seq) {
    location.href = "/contents/cgforum/oldForumView.asp?No=" + aud_board_seq;
}

function jsCommonPollView(poll_seq) {
    location.href = "/contents/customer/poll/pollView.asp?PollSeq=" + poll_seq;
}

function jsCommonPollVote(poll_seq) {
    location.href = "/contents/customer/poll/pollVote.asp?PollSeq=" + poll_seq;
}

function jsCommonDownload(seq, dirStr,tbStr,colStr) {
    location.href = "/common/inc/common/incDownload.asp?seq="+ seq + "&dirStr=" + dirStr + "&tbStr=" + tbStr + "&colStr=" + colStr;
}

function jsCommonPage(PageNo) {
    document.frmParam.PageNo.value = PageNo;

    document.frmParam.method = "get";
    document.frmParam.target = "_self";
    document.frmParam.action = "";
    document.frmParam.submit();
}

function jsCommonOrder() {
    document.frmParam.OrderField.value = document.frmOrder.OrderField.value;
    document.frmParam.PageNo.value     = 1;

    document.frmParam.method = "get";
    document.frmParam.target = "_self";
    document.frmParam.action = "";
    document.frmParam.submit();
}

function jsGetCheckedValues(objEle, strDilim) {
    var strRtn = "";

    if (jsIsEmpty(strDilim)) strDilim = ",";

    if (objEle.length) {
        for (var i=0; i < objEle.length; i++) {
            if (objEle[i].checked) {
                strRtn = strRtn + objEle[i].value + strDilim;
            }
        }
    } else {
        if (objEle.checked) strRtn = strRtn + objEle.value;
    }

    return strRtn.replace(new RegExp("[" + strDilim + "]$"), "");
}

function jsLPad(strText, intLen, strChar) {
    if (strText.length < intLen) {
        var strTemp = "";

        for (var i=strText.length; i < intLen; i++) {
            strTemp = strTemp + strChar;
        }

        strText = strTemp + strText;
    }

    return strText;
}

function jsFormatDate(dtDate, strFormat) {
    var strYear  = String(dtDate.getFullYear());
    var strMonth = String(dtDate.getMonth() + 1);
    var strDate  = String(dtDate.getDate());

    strFormat = strFormat.replace("%YYYY", strYear);
    strFormat = strFormat.replace("%YY",   strYear.substring(2, 4));
    strFormat = strFormat.replace("%MM",   jsLPad(strMonth, 2, "0"));
    strFormat = strFormat.replace("%M",    strMonth);
    strFormat = strFormat.replace("%DD",   jsLPad(strDate, 2, "0"));
    strFormat = strFormat.replace("%D",    strDate);

    return strFormat;
}