String.prototype.trim = function() {
    var x = this;
    x = x.replace(/^\s*(.*)/, "$1");
    x = x.replace(/(.*?)\s*$/, "$1");
    return x;
}


// Ã¤¿ë¸µÅ©
function hr() {
    hrWindow = window.open('https://hr.donga.co.kr', '_blank');
}

// ¾àº¸ÃÖ±Ù´Þ
function webzine() {
    location.href = "/webzine/201002/index.jsp";
}
// µ¿¾Æ»çº¸ ¾àÁø
//function webzine02(){
//webzin02Window = window.open('http://www.tjworld.com/donga/vol10/main.html', 'DONGA','height=710px,width=980px, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no');
//}

// µ¿¾Æ»çº¸ ¾àÁø
function webzine02() {
    webzin02Window = window.open('http://webzine.donga.co.kr', '_blank');
}

// ¾àº¸¿¡¼­ ¸ÞÀÎÀ¸·Î
function index() {
    location.href = "../../index.jsp";
}
// ÇÃ·¡½Ã
function showSwf(src, w, h) {
    html = '';
    html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="' + w + '" height="' + h + '">';
    html += '<param name="movie" value="' + src + '">';
    html += '<param name="quality" value="high">';
    html += '<param name="menu" value="0">';
    html += '<param name="wmode" value="transparent">';
    html += '<embed src="' + src + '" quality=high bgcolor="#ffffff" width="' + w + '" height="' + h + '" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
    html += '<\/object>';
    document.write(html);
}
function dwrite(str) {
    document.write(str);
}

// À¥Áø°ú¿ùÈ£
function popOldWebzine(y, m) {
    var w = 750;
    var h = 600;
    webzinWindow = window.open('../old/webzin_old.jsp?year=' + y + '&month=' + m, 'brain119', 'top=' + (screen.height - h) / 2 + ',left=' + (screen.width - w) / 2 + ',toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=' + w + ', height=' + h);
    if (webzinWindow == null) {
        alert("ÆË¾÷ÀÌ Â÷´ÜµÇ¾î À¥ÁøÀ» º¼ ¼ö ¾ø½À´Ï´Ù..\nÂ÷´ÜµÈ ÆË¾÷À» Çã¿ëÇØ ÁÖ½Ê½Ã¿À.");
    } else {
        webzinWindow.opener = self;
        webzinWindow.focus();
    }
}


// »çÀÌ¹ö °¨»ç½Ç

function cyber() {
    var w = 700;
    var h = 520;
    window.open('/audit/main.jsp', 'brain119', 'top=' + (screen.height - h) / 2 + ',left=' + (screen.width - w) / 2 + ',toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=' + w + ', height=' + h);
}



function getProductList(getItcl) {
    var lf = document.pFrm;
    lf.action = "/Product/product02_02.jsp";
    lf.itcl.value = getItcl;

    // ÀÇ·á±â±â¶ó¸é ÀÇ·á±â±â »çÀÌÆ®·Î ÀÌµ¿ÇÑ´Ù.
    if (getItcl == "007") {
        goUrl = "http://medical.donga.co.kr/product/product01_01.jsp";
        window.open(goUrl, "medi");
    } else {
        lf.submit();
    }

}

//Á¦Ç° ¹Ì´ÏÈ¨ÇÇ ÆË¾÷//
/*
function goMini(){
var l = (screen.width-1014)/2;
var t = (screen.height-582)/2;
auditWindow = window.open('http://test.donga.co.kr/micro/zydena/index.jsp', 'audit', 'top='+t+',left='+l+',toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=1014, height=684');
auditWindow.opener = self; 
}
*/

function downEBrochure(type) {
    var lf = document.eFrm;
    lf.eType.value = type;
    lf.target = "eDown";
    lf.submit();
}