﻿// JScript 파일
function idMake(id)
{
    serverStr = "ctl00$ContentPlaceHolder1$";
    Id = serverStr + id;
    return Id;
}

function centerPopup(url, cw, ch)
{              
    //새창의 크기
    //cw=630;
    //ch=400;
    //스크린의 크기
    sw=screen.availWidth;
    sh=screen.availHeight;
    //열 창의 포지션
    px=(sw-cw)/2;
    py=(sh-ch)/2;
    //창을 여는부분
    window.open(url , 'popup', 'left='+px+',top='+py+',width='+cw+',height='+ch+',toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no');
              
    void(0);
} 

function centerPopupscrollbars(url, cw, ch)
{              
    //새창의 크기
    //cw=630;
    //ch=400;
    //스크린의 크기
    sw=screen.availWidth;
    sh=screen.availHeight;
    //열 창의 포지션
    px=(sw-cw)/2;
    py=(sh-ch)/2;
    //창을 여는부분
    window.open(url , 'popup', 'left='+px+',top='+py+',width='+cw+',height='+ch+',toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no');
              
    void(0);
} 

function centerPopupscrollbars2(url)
{              
    window.open(url , 'popup','');
              
    void(0);
} 