/************************************************************************************************ * 공통 변수 ************************************************************************************************/ var onblur_flag = false; var http = null; var ignore = 1; /************************************************************************************************ * 공통 함수 ************************************************************************************************/ /*---------------------------------------------------------------------- * 설명 : 개인 정보 동의 체크 * 작성자 : 정동호 * 작성일 : 2012.06.12 *-----------------------------------------------------------------------*/ function AgreementCheck() { var flag = false; var i = 0; var docAgree = document.getElementsByName( "agree" ); for ( i = 0; i < docAgree.length; i++ ) { if (i == ignore) continue; if ( docAgree[i].type == "checkbox" ) { if ( docAgree[i].checked == false ) { flag = true; } else { var docAgreeLayer = document.getElementById( "Agreement" + ( i + 1 ) ); docAgreeLayer.innerHTML = '
' + document.getElementById("text" + ( i + 1 ) ).innerHTML + '하셨습니다.
'; } } } if ( flag == false ) { document.getElementById( "submit" ).disabled = false; } } /*---------------------------------------------------------------------- * 설명 : 현재 윈도우 창 닫기 * 작성자 : 정동호 * 작성일 : 2012.06.12 *-----------------------------------------------------------------------*/ function AgreementCancel() { top.name = 'CLOSE_WINDOW'; wid = window.open( '', 'CLOSE_WINDOW' ); top.close(); } /*---------------------------------------------------------------------- * 설명 : XPLATFORM 런타임시 동의서 창 종료 * 작성자 : 정동호 * 작성일 : 2012.06.15 *-----------------------------------------------------------------------*/ function QuitWhenXPlatformRuntime() { if ( onblur_flag == true ) { top.name = 'CLOSE_WINDOW'; wid = window.open( '', 'CLOSE_WINDOW' ); top.close(); } } /*---------------------------------------------------------------------- * 설명 : 동의서 로드 * 작성자 : 정동호 * 작성일 : 2012.06.12 *-----------------------------------------------------------------------*/ function AgreeLoad() { var docAgree = document.getElementsByName("DocumentAgree"); var i = 0; for ( i = 0; i < docAgree.length; i++ ) { var file = "/jsp/tc/tcz/web/TCZ_A0" + ( i + 2 ) + ".jsp"; //docAgree[i].src = file; DU.LConnect.syncRequest('POST', file, { success: function(e) { var data = (e.responseText).trim(); //var frame = ; DU.get(eval("frame" + (i + 1))).html(data); }}, '', {} ); } } /*---------------------------------------------------------------------- * 설명 : XPlatform 실행 * 작성자 : 정동호 * 작성일 : 2012.06.12 *-----------------------------------------------------------------------*/ function loadXPlatform(flag) { var url; if ( flag == "web" ) { url = '/jsp/tc/tcz/web/index.jsp'; var option = ""; option += "width=1024"; option += ",scrollbars=no"; option += ",fullscreen=no"; option += ",statusbar=no"; option += ",toolbar=no"; option += ",menubar=no"; option += ",status=no"; option += ",resizable=no"; option += ",location=no"; option += ",directories=no"; option += ",copyhistory=no"; // 브라우져 별로 팝업 사이즈 설정 if (DU.browser.msie) { option += ",height=668"; } else if (DU.browser.chrome) { option += ",height=660"; } else { option += ",height=668"; } wid = window.open( url, "_blank", option); if(wid) { AgreementCancel(); } else { DU.alert({ text: cfGetMsg("pbf.info.com.callAdmin") , handler: QuitWhenXPlatformRuntime }); } } /*else { if ( flag == "dev" ) { url = "http://codev.doosan.com:7001/pbf/common/login/OpenXpl.dev?appSysCode=cp&BRANCH=op1&BRANCHPAGE=null&otherParams=&userId=tcbasic&tUserPassword=123qwer@"; } else if ( flag == "run" ) { url = "http://dsccp.doosan.com:8009/pbf/common/login/OpenXpl.dev?appSysCode=cp&BRANCH=op1&BRANCHPAGE=null&otherParams=&userId=cpbasic&tUserPassword=123qwer@"; } document.getElementById('dooit').src = url; self.resizeBy(-19, -299); document.getElementById('main').innerHTML = '