// iframe ³»¿¡¼ »çÀÌÁî Á¶Àý ¸Þ¼µå¸¦ È£ÃâÇÒ ½Ã
// ¾×¼½º°¡ °ÅºÎµÇ¾ú½À´Ï´Ù. ¶ó´Â ½ºÅ©¸³Æ® ¿À·ù ¹ß»ý½Ã ÇÊ¿ä
document.domain="keb.co.kr";
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}
// flashWrite(ÆÄÀϰæ·Î, °¡·Î, ¼¼·Î, ¾ÆÀ̵ð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå)
function flashWrite(url,w,h,id,bg,vars,win){
// Ç÷¡½Ã ÄÚµå Á¤ÀÇ
var flashStr=
"";
// Ç÷¡½Ã ÄÚµå Ãâ·Â
document.write(flashStr);
//iframeWrite(w,h,id);
}
function iframeWrite(w,h,id) {
if(navigator.userAgent.indexOf("MSIE") != -1) {
var iframeStr = "
";
document.write(iframeStr);
}
}
function handlerLnbFlashWidth(flashwidth) {
var objFlash = document.getElementById("LNB");
var objParent = objFlash.parentNode;
objFlash.style.width = flashwidth + "px";
objParent.style.width = flashwidth + "px";
if((navigator.userAgent.indexOf("Firefox") != -1) || (navigator.userAgent.indexOf("Opera") != -1)) {
var emobjFlash = document.getElementById("embedLNB");
emobjFlash.style.width = flashwidth + "px";
}
}
function handlerLnbFlashHeight(flashheight) {
var objFlash = document.getElementById("LNB");
var objParent = objFlash.parentNode;
objFlash.style.height = flashheight + "px";
objParent.style.height = flashheight + "px";
if((navigator.userAgent.indexOf("Firefox") != -1) || (navigator.userAgent.indexOf("Opera") != -1)) {
var emobjFlash = document.getElementById("embedLNB");
emobjFlash.style.height = flashheight + "px";
}
}
function handlerLnbFlashSize(flashwidth,flashheight) {
var objFlash = document.getElementById("LNB");
var objParent = objFlash.parentNode;
objFlash.style.width = flashwidth + "px";
objFlash.style.height = flashheight + "px";
if((navigator.userAgent.indexOf("Firefox") != -1) || (navigator.userAgent.indexOf("Opera") != -1)) {
var emobjFlash = document.getElementById("embedLNB");
emobjFlash.style.width = flashwidth + "px";
emobjFlash.style.height = flashheight + "px";
}
}
function handlerGnbFlashHeight(flashheight) {
var objFlash = document.getElementById("GNB");
var objParent = objFlash.parentNode;
objFlash.style.height = flashheight + "px";
if((navigator.userAgent.indexOf("Firefox") != -1) || (navigator.userAgent.indexOf("Opera") != -1)) {
var emobjFlash = document.getElementById("embedGNB");
emobjFlash.style.height = flashheight + "px";
}
}
function handleGnbFlash(fwidth, fheight, fleft) {
//if(navigator.userAgent.indexOf("MSIE") != -1) {
var objiFrame = document.getElementById("iframeGNB");
objiFrame.parentNode.style.left = (fleft - 2) + "px";
objiFrame.style.height = 70 + fheight + "px";
objiFrame.style.width = (fwidth - 2) + "px";
//}
}
function handleGnbOverFlash(openNum) {
//alert(openNum);
var objFlash = document.getElementById("GNB");
//el.style.display = (el.style.display == "none" ? "block" : "none");
var flashHeight = (openNum == 1 ? 400 : 70);
objFlash.height = flashHeight + "px";
if((navigator.userAgent.indexOf("Firefox") != -1) || (navigator.userAgent.indexOf("Opera") != -1)) {
var emobjFlash = document.getElementById("embedGNB");
emobjFlash.height = flashHeight + "px";
}
}
function handleLnbFlash(fwidth, fheight, ftop, flashheight) {
//alert("¸Þ´º °¡·ÎÅ©±â=" + fwidth + ", ¸Þ´º ¼¼·ÎÅ©±â=" + fheight+ ", ¸Þ´º ž À§Ä¡°ª=" + ftop+ "¼¼·Î»çÀÌÁî," + flashheight);
var objFlash = document.getElementById("LNB");
objFlash.style.height = flashheight + 10 + "px";
objFlash.style.width = 160 + fwidth + "px";
if(navigator.userAgent.indexOf("MSIE") != -1) {
var objiFrame = document.getElementById("iframeLNB");
objiFrame.parentNode.style.top = ftop + "px";
objiFrame.style.height = fheight + 1 + "px";
objiFrame.style.width = fwidth + "px";
}
if((navigator.userAgent.indexOf("Firefox") != -1) || (navigator.userAgent.indexOf("Opera") != -1)) {
var emobjFlash = document.getElementById("embedLNB");
emobjFlash.style.height = flashheight + 10 + "px";
emobjFlash.style.width = 160 + fwidth + "px";
}
}
//GoldageBanking Use...
function handleLnbFlashGAB(fwidth, fheight, ftop, flashheight) {
//alert("¸Þ´º °¡·ÎÅ©±â=" + fwidth + ", ¸Þ´º ¼¼·ÎÅ©±â=" + fheight+ ", ¸Þ´º ž À§Ä¡°ª=" + ftop+ "¼¼·Î»çÀÌÁî," + flashheight);
var objFlash = document.getElementById("LNB");
objFlash.style.height = flashheight + 10 + "px";
objFlash.style.width = 180 + fwidth + "px";
if(navigator.userAgent.indexOf("MSIE") != -1) {
var objiFrame = document.getElementById("iframeLNB");
objiFrame.parentNode.style.top = ftop + "px";
objiFrame.style.height = fheight + 1 + "px";
objiFrame.style.width = fwidth + "px";
}
if((navigator.userAgent.indexOf("Firefox") != -1) || (navigator.userAgent.indexOf("Opera") != -1)) {
var emobjFlash = document.getElementById("embedLNB");
emobjFlash.style.height = flashheight + 10 + "px";
emobjFlash.style.width = 180 + fwidth + "px";
}
}
function totalMenuSetPosition (pos)
{
var objFlash = document.getElementById("flashTotalMenu");
objFlash.style.top = pos + "px";
}
function directServiceHeight(heightNum)
{ //alert(heightNum);
var obj = document.getElementById("directservice");
var flashobj = document.getElementById("directFlash");
obj.style.height = heightNum + "px";
flashobj.height = heightNum;
}
// Windows MediaPlayer
function wmvWrite(url, w, h, id, bg, vars, win){
var wmvStr = "";
// wmv ÄÚµå Ãâ·Â
document.write(wmvStr);
}
// QuickTime Player
function movWrite(url, w, h, id, bg, vars, win){
var movStr = "";
// mov ÄÚµå Ãâ·Â
document.write(movStr);
}
// Show-Hide Layer
function showLayer(tgtEl) {document.getElementById(tgtEl).style.display = "block"; }
function hideLayer(tgtEl) {document.getElementById(tgtEl).style.display = "none"; }
function showhideLayer(tgtEl) {
var el = document.getElementById(tgtEl);
el.style.display = (el.style.display == "none" ? "block" : "none");
}
// Select Links
function onchangeno_url() {
var v_url = linkstr;
if(v_url) {
window.location = v_url;
}
}
// add calss
function addClass(element,value) {
if (!element.className) {
element.className = value;
} else {
newClassName = element.className;
newClassName+= " ";
newClassName+= value;
element.className = newClassName;
}
}
// imgover
function imgOver() {
var aImages = document.getElementsByTagName('img');
for(var i=0; i obj.bottomLimit)
pos = obj.bottomLimit
if (pos < obj.topLimit)
pos = obj.topLimit
interval = obj.top - pos;
obj.top = obj.top - interval / 3;
obj.style.top = obj.top + "px";
}, 30)
}
var Library ={};
Library.mousePosi = function (e){
this.x = parseInt(e.clientX);
this.y = parseInt(e.clientY);
}
Library.elePosi= function(eleid){
var na = navigator.appName;
var ie = 'Microsoft Internet Explorer';
/* ¿¤¸®¸ÕÆ® Àý´ëÀ§Ä¡ ¾Ë¾Æ³»±â */
if (eleid.getBoundingClientRect()) //ff2
{
this.top = eleid.getBoundingClientRect().top;
this.left = eleid.getBoundingClientRect().left;
}
else if(na != ie){ //ff3
if (document.getBoxObjectFor(eleid))
{
this.top = document.getBoxObjectFor(eleid).y;
this.left = document.getBoxObjectFor(eleid).x;
}
}
else{
this.top = eleid.offsetTop;
this.left = eleid.offsetLeft;
}
}
// À̺¥Æ®ÀüÀÌ ¹æÁö ½ºÅ©¸³Æ®
var eventBubble = function(e, id){
if(!e) e = window.event;
var obj = e.srcElement||e.target;
if(!obj) return true;
if(e.cancelBubble){ e.cancelBubble = true; }
if(obj.stopPropagation){ e.stopPropagation(); }
if(obj.nodeType==3/*text*/) obj = obj.parentNode;
obj = (e.relatedTarget)?e.relatedTarget:e.fromElement;
if (obj) {
while (obj.parentNode) {
if (obj.id == id)
return false;
obj = obj.parentNode;
}
}
return true;
};
/* ·¹ÀÌ¾î ÆË¾÷ */
var showLayerE = {
onover : 'over',
idnum:null,
ie:navigator.appName,
show : function(self,LayerId,mCheck,mX,mY,ieX,ieY,scroll, e){
//e = e || window.event;
if(self.onmouseover) var overE = "over";
var brX = null;
var brY=null;
var tmpDiv = document.createElement("div");
var tmpIframe = document.createElement("iframe");
tmpDiv.setAttribute("id", LayerId+"TmpDiv");
var removeElem = tmpDiv.getAttribute("id");
//alert(removeElem);
//if (showLayerE.ie != 'Microsoft Internet Explorer')
brX = mX;
brY = mY;
/* ·¹À̾ ¿©·¯°³Àϰæ¿ì »èÁ¦ */
var layer = document.getElementById(LayerId);
document.getElementsByTagName('body')[0].appendChild(layer);
if ((showLayerE.idnum) && (showLayerE.idnum != LayerId)) {
if(document.getElementById(showLayerE.idnum+"TmpDiv")) {
var tmpDivs = document.getElementById(showLayerE.idnum+"TmpDiv");
document.body.removeChild(tmpDivs);
}
}
if (document.getElementById(showLayerE.idnum)) {
document.getElementById(showLayerE.idnum).style.display="none";
}
showLayerE.idnum = layer.getAttribute("id");
layer.style.display ="block";
showLayerE.onover ="over";
/* À̺¥Æ® ÀüÀÌ ¹ö±× ¿À·ùÇØ°á */
//var self = e.srcElement || e.target;
/* ·¹ÀÌ¾î ¿òÁ÷ÀÓ Ã¼Å© */
if (mCheck == 'move')
{
layer.style.left = new Library.elePosi(self).left + ((new Library.mousePosi(e).x+document.documentElement.scrollLeft) - new Library.elePosi(self).left)+brX+"px";
layer.style.top = new Library.elePosi(self).top + ((new Library.mousePosi(e).y+document.documentElement.scrollTop) - new Library.elePosi(self).top)+brY+"px";
}
else if (mCheck =='stop'){
layer.style.left =(new Library.elePosi(self).left+document.documentElement.scrollLeft) + self.offsetWidth+brX+"px";
layer.style.top =(new Library.elePosi(self).top+document.documentElement.scrollTop) + self.offsetHeight+brY+"px";
}
/* ·¹ÀÌ¾î ¹Û¿¡¼ Ŭ¸¯½Ã¿¡¸¸ ·¹À̾ »ç¶óÁü */
layer.onclick = function() {
//if (eventBubble(e,LayerId)) showLayerE.onover = "over";
showLayerE.onover = "over";
}
if (document.getElementById(scroll))
{
document.getElementById(scroll).onscroll = function(){
layer.style.display ="none";
}
}
document.onclick = function(evt){
if (showLayerE.onover == "out") {
layer.style.display ="none";
if(document.getElementById(removeElem)) {
var ree = document.getElementById(removeElem);
document.body.removeChild(ree);
}
}
showLayerE.onover = "out";
}
if(overE) {
showLayerE.onover = "out";
}
if(scroll) {
overScrollLayer(LayerId);
}
tmpDiv.className = "tmpDiv";
tmpDiv.style.left = layer.style.left;
tmpDiv.style.top = layer.style.top;
tmpDiv.style.width = layer.clientWidth + "px";
tmpDiv.style.height = layer.clientHeight + "px";
//tmpIframe.setAttribute("allowTransparency",true);
tmpIframe.setAttribute("src","about:blank");
tmpIframe.frameBorder = "0";
tmpDiv.appendChild(tmpIframe);
if(!document.getElementById(removeElem)) {
document.body.appendChild(tmpDiv);
}
}
}
function hideLayerE(layerId) {
hideLayer(layerId);
var delElem = document.getElementById(layerId+"TmpDiv");
document.body.removeChild(delElem);
}
//addLoadEvent(onclickFunc)
/*
ÃÖµ¿È£ Ãß°¡
°¢Á¾ÅÇ,Å×ÀÌºí ¿Â¿ÀÇÁ
[¿¹Á¦Å×À̺í guide/script_table.html]
¾ÆÀ̵ðÃÖ¼ÒÇÑÀ¸·Î»ý¼º ¹è¿·Î Å×À̺í,ÅÇ ¿Â ¿ÀÇÁ
*/
var opentab = {
sid :'setid',
n :null,
f :false,
str : function(objstr){
this.objnum =objstr.split("_")[objstr.split("_").length-1];
return this;
},
id : function(id){
this.obj = document.getElementById(id);
return this;
},
cn : function(obj,cName){
if (!obj)
{
return false;
}
else{
obj.className=cName;
}
},
tab : function(tobj,on,off,eleid,cid,cOn,cOff){
var eleobj,cobj,i,c,showevent,eN,strNum=null;
eleobj = opentab.id(tobj).obj.getElementsByTagName(eleid);
if (tobj == null || !eleobj)
{
return false;
}
for (i=0,eN=0;i contHeight) && (!autoHeight)) {
contElem.style.width = (parseInt(contElem.style.width) - 32) + "px";
h1Elem[0].style.margin = "0 15px 0 0"
} else {
contElem.style.width = (parseInt(contElem.style.width) - 17) +"px";
}
}
}
function wpSetSize(ie6w, ie6h) {
var ie6h = ie6h;
var ie6w = ie6w;
var w = document.body.clientWidth;
var h = document.body.clientHeight;
var headerH = 44;
var bottomH = 25;
var wpHeader1 = document.getElementById("wpHeader1");
var wpContent = document.getElementById("wpContent");
var wpPop = document.getElementById("wpPop");
var conH = ie6h- headerH - bottomH;
var tmpDiv = document.createElement("div");
if(navigator.userAgent.indexOf("MSIE 6") != -1) {
if(wpPop.scrollHeight > conH) {
if(!document.getElementById("tempHiehgt")) {
h = h - (h - ie6h);
} else {
h = document.getElementById("tempHiehgt").offsetHeight;
}
}
}
wpContent.style.width = w - 27 + "px";
if(wpPop.scrollHeight > conH) {
wpContent.style.height = conH + "px";
wpHeader1.style.width = w - 59 + "px";
wpPop.style.width = w - 59 + "px";
} else {
wpContent.style.height = "";
wpHeader1.style.width = w - 42 + "px";
wpPop.style.width = w - 42 + "px";
}
var resizeH = myNextSibling(document.body).scrollHeight - h;
var resizeW = myNextSibling(document.body).scrollWidth - w;
resizeBy(resizeW, resizeH);
//alert(myNextSibling(document.body).scrollWidth + ", " + resizeW);
if(navigator.userAgent.indexOf("MSIE 6") != -1) {
if(!document.getElementById("tempHiehgt")) {
tmpDiv.setAttribute("id", "tempHiehgt");
document.body.appendChild(tmpDiv);
tmpDiv.style.position = "absolute";
tmpDiv.style.height = "100%";
} else {
tmpH = document.getElementById("tempHiehgt").offsetHeight;
}
}
}
function openWindow(url, target, w, h) {
var popOption = "width="+w+"px, height="+h+"px, toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0";
window.open(url, target, popOption);
}
/* ¿ÜȯÆ÷ÅÐ-ȯÀü(°¡ÀÔÇöȲ±×·¡ÇÁ) */
function graphjoin() {
var graph = document.getElementById("graph");
var graphBar = graph.getElementsByTagName("span");
var graphBarTxt = graph.getElementsByTagName ("p");
for (i=0;i< graphBar.length ;i++ )
{
if (graphBar[i].offsetWidth <= 5)
{
graphBar[i].style.display = "none";
graphBarTxt[i].style.left = "9px"
}
else {
graphBarTxt[i].style.left = graphBar[i].offsetWidth + 4 +"px";
}
}
}
/* ¿ÜȯÆ÷ÅÐ-¼Û±Ý(¼Û±ÝÅë°è±×·¡ÇÁ) */
function graphsend() {
var graph = document.getElementById("graph");
var graphBar = graph.getElementsByTagName("span");
for (i=0;i< graphBar.length ;i++ )
{
if (graphBar[i].offsetWidth <= 5)
{
graphBar[i].style.display = "none";
}
}
}
/* ¿ÜȯÆ÷ÅÐ - ȯÀü(¿ì´ë¼ºñ½º ¶óµð¿À¹öư ÅÇ) */
function optiontab() {
var checkoption = document.getElementById("checkoption");
var inputcheck = checkoption.getElementsByTagName("input");
var optionbox = document.getElementById("optionbox");
var optiontag = optionbox.getElementsByTagName("li");
for (var l=0;l maxNum)
{
maxNum = box1;
}
if (box2 > maxNum)
{
maxNum = box2;
}
if (box3 > maxNum)
{
maxNum = box3;
}
optionbox.style.height = maxNum + 80+"px";
}
addLoadEvent(initMoving)
addLoadEvent(fxTableColWidth)
addLoadEvent(imgOver)
addLoadEvent(overScroll)
addLoadEvent(calcHeight)
//addLoadEvent(openWindow)
//faq Q&A
function faqlist(){
var faqlist = document.getElementById("faqlist");
var faqtitle = faqlist.getElementsByTagName("dt");
var faqcont = faqlist.getElementsByTagName("dd");
for (var i=0;i final_x) {
var dist = Math.ceil((xpos - final_x)/10);
xpos = xpos - dist;
}
if (ypos < final_y) {
var dist = Math.ceil((final_y - ypos)/10);
ypos = ypos + dist;
}
if (ypos > final_y) {
var dist = Math.ceil((ypos - final_y)/5);
ypos = ypos - dist;
}
elem.style.left = xpos + "px";
elem.style.top = ypos + "px";
var repeat = "moveElement('"+elementID+"',"+final_x+","+final_y+","+interval+")";
elem.movement = setTimeout(repeat,interval);
}
function totalMenuToggle() {
if(!document.getElementById("totalMenuToggle")) return false;
var elem = document.getElementById("totalMenuToggle");
if(elem.firstChild.getAttribute("src").indexOf("open") != -1) {
moveElement('flashTotalMenu',0, 0, 0);
var temp_src = elem.firstChild.getAttribute("src").replace("open", "close");
elem.firstChild.setAttribute("src", temp_src);
elem.style.top = 296 + "px";
} else {
moveElement('flashTotalMenu',0, -300, 0);
var temp_src = elem.firstChild.getAttribute("src").replace("close", "open");
elem.firstChild.setAttribute("src", temp_src);
elem.style.top = 300 + "px";
}
}
/* À̹ÌÁö º¯È¯ */
function transImg() {
var pagePath = location.href;
var imgs = document.body.getElementsByTagName("img");
if((pagePath.indexOf("?EN") != -1) || (pagePath.indexOf("?en") != -1)) {
//alert(imgs[0].getAttribute("src"));
for(var i = 0; i < imgs.length; i++) {
imgs[i].setAttribute("src", imgs[i].getAttribute("src").replace(".gif", "_EN.gif"));
}
var tmpElem = document.createElement("link");
tmpElem.setAttribute("rel", "stylesheet");
tmpElem.setAttribute("type", "text/css");
tmpElem.setAttribute("href", "../../../css/public_EN.css");
//
document.body.appendChild(tmpElem);
}
}
function footerSelectMenu(course) {
if(!document.getElementById("FME")) return false;
var FME = document.getElementById("FME");
var posX = FME.offsetLeft;
var tmpObj = FME.childNodes;
var sub = new Array();
for(var i=0;i (parseInt(FME.clientWidth,10)-(96*3))*-1) { //-278
//FME.style.left = posX - 96 + "px";
var moveSize = posX - 96;
moveElement('FME',moveSize,0,0)
}else {
var tmp = sub[0].innerHTML;
for(var i=0;i0;i--) {
sub[i].innerHTML = sub[i-1].innerHTML;
}
sub[0].innerHTML = tmp;
tmp = parseInt(FME.style.left, 10);
if(isNaN(tmp) ) {
tmp = 10; //¿øÁ¡Àº 10px.
}
FME.style.left = (tmp - 96) + "px";
footerSelectMenu(0);
}
}
}
addLoadEvent(transImg)
/* snb ¼¿·ºÆ® ¸Þ´º */
function selectLayer(elmID) {
var elm = document.getElementById(elmID);
var elmList = elm.getElementsByTagName("li");
if (elmID == "seltit1")
{
document.getElementById("seltit2").getElementsByTagName("li")[0].className = "first_child";
document.getElementById("seltit2").getElementsByTagName("li")[1].className = "select_list";
}
else {
document.getElementById("seltit1").getElementsByTagName("li")[0].className = "first_child";
document.getElementById("seltit1").getElementsByTagName("li")[1].className = "select_list";
}
if (elmList[1].className == "select_list")
{
elmList[1].className = "select_list on";
elmList[0].className = "first_child on";
}
else {
elmList[1].className = "select_list";
elmList[0].className = "first_child";
}
}
/* toggle */
function toggle(obj) {
var pNode = obj.parentNode.parentNode;
var ptNode = nextNode(obj.parentNode.parentNode);
var clsName = obj.className;
if( 'show' === clsName )
{
ptNode.style.height = 'auto';
ptNode.style.fontSize = '12px';
ptNode.style.lineHeight = '14px';
ptNode.style.padding = '15px 0 13px 0';
ptNode.style.visibility='visible';
// IE6À϶§
if((navigator.userAgent.indexOf('MSIE 6.0') != -1)) {
pNode.style.lineHeight = '14px';
pNode.style.fontSize = '12px';
pNode.style.margin = '0 0 0 0';
}
obj.src = obj.src.replace('down', 'up');
obj.className = 'hidden';
}
else
{
ptNode.style.height = '0';
ptNode.style.fontSize = '0';
ptNode.style.lineHeight = '0';
ptNode.style.padding = '0 0 0 0';
ptNode.style.margin = '0 0 0 0';
// IE6À϶§
if((navigator.userAgent.indexOf('MSIE 6.0') != -1)) {
pNode.style.lineHeight = '14px';
pNode.style.fontSize = '12px';
pNode.style.margin = '0 0 0 0';
}
ptNode.style.visibility='hidden';
obj.src = obj.src.replace('up', 'down');
//obj.src = '../../../img/npm/ico_arrow_down.gif';
obj.className = 'show';
}
}
function nextNode(ptNode) {
var elem = ptNode;
do
{
elem = elem.nextSibling;
} while ( elem && elem.nodeType != 1 )
return elem;
}
function lnb()
{
if( document.getElementById('flash_lnb') )
{
var lnbWrap = document.getElementById('flash_lnb');
var flashLnb = document.getElementById('LNB');
lnbWrap.style.height = flashLnb.offsetHeight+'px';
}
}
//¹æ¹èµ¿¿¡¼ Ãß°¡
function goMenuAction(menuUrl, encryptionYn) {
//ÆË¾÷Àº pop@ÁÖ¼Ò|Ãß°¡ÆÄ¶ó¸ÞÅÍ Çü½ÄÀÓ. (ex : pop@pib@/PCM0000M.web|width=600,height=300)
//ÆË¾÷À©µµ¿ì À̸§Àº ÁÖ¼Ò¿¡¼ ¾ËÆÄºª¸¸ ÃßÃâÇÏ¿© Àû¿ëÇÔ.
// alert(menuUrl + " , "+ encryptionYn);
// ±â¾÷¹ðÅ· > ¸ÞÀÎ > °èÁÂÁ¶È¸ÀÇ °æ¿ì ÆË¾÷À¸·Î È£ÃâÇÔ
if(menuUrl == "left1"){
window.open ('/b2c/popup.html','','scrollbars=0,toolbar=no,status=no,menubar=no');
return;
}
if(!menuUrl == '') {
location.href = menuUrl;
}
var arrMenuURL = menuUrl.split("@");
if (arrMenuURL.length > 0) {
if(arrMenuURL[0] == "SSO") {
var channel = arrMenuURL[1];
var cookie_sso_token = getCookie("sso_token");
if(channel == "MAL1") {
menuUrl = "http://www.keb.co.kr/MAL/FMProductUser?cmd=main&mType=main&mTypePr=1";
} else if(channel == "MAL2") {
menuUrl = "http://www.keb.co.kr/MAL/FMProductUser?cmd=main&mType=main&mTypePr=2";
} else if(channel == "FEX") {
menuUrl = "http://fx.keb.co.kr/sso_pass.jsp?sso_token=" + cookie_sso_token;
} else if(channel == "CRD1") {
menuUrl = "http://card.keb.co.kr/CPI0000C.web?schID=crd";
} else if(channel == "CRD2") {
menuUrl = "http://card.keb.co.kr/CCI0000C.web?schID=crd";
} else if(channel == "CRD3") {
menuUrl = "http://card.keb.co.kr/CMI0000C.web?schID=crd";
}
location.href = menuUrl;
} else {
var addr = makeMenuUrl(menuUrl);
if(addr != false) {
if(encryptionYn == "Y") {
//XecureNavigate_keb(addr, "_self");
location.href = "http://bank.keb.co.kr/jsp/mal/xecurePass.jsp?URL=" + menuUrl;
} else if(encryptionYn == "P") {
XecureNavigate(addr, "_self");
} else {
location.href = addr;
}
}
}
}
}
function makeMenuUrl(str) {
//pib, fex, crd, mal, com Àº °¢ ÇØ´çÇÏ´Â µµ¸ÞÀÎ ºÙÀÓ.
//°³¹ß¼¹öÀÇ °æ¿ì¿¡´Â pib´Â 7001, fex´Â 7002 Æ÷Æ®¹øÈ£ Ãß°¡µÊ.
//¾Õ 3ÀÚ¸® Äڵ尡 tmp, popÀÎ °æ¿ì¿£ ÇÔ¼ö ³»¿¡¼ ó¸® ÈÄ false¸®ÅÏÇÔ. goMenuAction¿¡¼ ó¸® ¾ÈÇÔ.
var regex = /([a-z]{3})@(.*)/g;
var res = regex.exec(str);
var menuUrl = str;
if(res != null && res.length == 3) {
var domainArr = new Object();
domainArr["pib"] = "http://bank.keb.co.kr";
domainArr["fex"] = "http://fx.keb.co.kr";
domainArr["mal"] = "http://www.keb.co.kr";
domainArr["com"] = "http://cbs.keb.co.kr";
domainArr["crd"] = "http://card.keb.co.kr";
if(domainArr[res[1]] != undefined && domainArr[res[1]] != null) {
menuUrl = domainArr[res[1]];
//°³¹ß¼¹öÀÎ °æ¿ì Æ÷Æ® ºÙ¿©ÁÜ.
if(false) {
if(res[1] == "pib") {
menuUrl += ":7001";
}else if(res[1] == "fex") {
menuUrl += ":7002";
}else if(res[1] == "mal") {
menuUrl += ":8002";
}
}
if(res[2].charAt(0) != "/") res[2] = "/"+res[2];
menuUrl += res[2];
}else if(res[1] == "tmp") { //±ÝÀ¶Àڻ꺥ġ¸¶Å·
window.open('http://www.keb.co.kr/IBS/FMBenchMarkUser?vcode=08000000000000&scode=08010300000000','_blank','');
return false;
}else if(res[1] == "pop") {
var param = "";
var popAddr = "http://tbank.keb.co.kr/MCF9100D.web";
var size = "width=780px, height=380px"; //, toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0
//openWindow('http://tbank.keb.co.kr/MCF9100D.web', 'pop1', 770 ,380);
window.open('http://tbank.keb.co.kr/MCF9100D.web', 'pop1', size);
return false;
}else if(res[1] == "url") {
}
}
return menuUrl;
}
function fncOpenPop(){
var pop = window.open("http://erms.keb.co.kr/tel/exMailQuestion.jsp", 'popup', 'width=650,height=550,menubar=0,resizable=0, scrollbars=0');
pop.focus();
}
function fncOpenPop1(){
alert("·Î±×ÀÎ ÈÄ¿¡ ÀÌ¿ëÇϽñ⠹ٶø´Ï´Ù.");
window.location.href="http://bank.keb.co.kr/jsp/mal/xecurePass.jsp?URL=http://bank.keb.co.kr/PCS0000C.web?isHP=CP&returnURL=http://www.keb.co.kr/IBS/ncustomer/kor/index_pop.jsp";
}
var thisLinkTarget = "keb";
var ebankHostName = "http://ebank.keb.co.kr";
function eLink(arg) {
while ( arg.indexOf("&") > 0 )
arg = arg.replace("&","%26");
window.open(ebankHostName+"/IBS/eBank.jsp?returnURL="+arg,thisLinkTarget,"");
}
/****** ÀüüÇÁ·¹ÀÓ(keb) À̵¿ÇÒ¶§ »ç¿ëÇÏ´Â ¸µÅ© *******************************************/
function kLink(arg){
window.open(arg,thisLinkTarget,"");
}
function Win( sURL, sName, scrollbars, left, top) {
var win = window.open(sURL, sName, "status=no,toolbar=no,resizable=no,scrollbars="+scrollbars+",menubar=no, width=1, height=1, left="+left+", top="+top);
}
function handlepress(e) {
if (e.keyCode==13){
document.forms['search'].submit();
}
}
function goSearch() {
document.forms['search'].submit();
}
// ÀÌÁß iframÀ¸·Î µÇ¾îÀÖ´Â ÇÁ·Î±×·¥¿¡¼ Àüü ÆäÀÌÁö ÀüȯÀ» ÇÏ·ÁÇÒ¶§ »ç¿ë
function goParentsPage(url){
location.href = url;
}
// iframe resize method
function resizeHeight(){
w = document.body.scrollWidth;
h = document.body.scrollHeight + 10;
resizeTo(w,h);
}
function makeMenuno_url() {
//pib, fex, crd, mal, com Àº °¢ ÇØ´çÇÏ´Â µµ¸ÞÀÎ ºÙÀÓ.
//°³¹ß¼¹öÀÇ °æ¿ì¿¡´Â pib´Â 7001, fex´Â 7002 Æ÷Æ®¹øÈ£ Ãß°¡µÊ.
//¾Õ 3ÀÚ¸® Äڵ尡 tmp, popÀÎ °æ¿ì¿£ ÇÔ¼ö ³»¿¡¼ ó¸® ÈÄ false¸®ÅÏÇÔ. goMenuAction¿¡¼ ó¸® ¾ÈÇÔ.
var regex = /([a-z]{3})@(.*)/g;
var res = regex.exec(str);
var menuUrl = str;
if(res != null && res.length == 3) {
var domainArr = new Object();
domainArr["pib"] = "bank.keb.co.kr";
domainArr["fex"] = "fx.keb.co.kr";
domainArr["crd"] = "card.keb.co.kr";
domainArr["mal"] = "www.keb.co.kr";
domainArr["com"] = "cbs.keb.co.kr";
if(domainArr[res[1]] != undefined && domainArr[res[1]] != null) {
menuUrl = "http://"+domainArr[res[1]];
//°³¹ß¼¹öÀÎ °æ¿ì Æ÷Æ® ºÙ¿©ÁÜ.
if(false) {
if(res[1] == "pib") {
menuUrl += ":7001";
}else if(res[1] == "fex") {
menuUrl += ":7002";
}
}
if(res[2].charAt(0) != "/") res[2] = "/"+res[2];
menuUrl += res[2];
}else if(res[1] == "tmp") {
popup.openDialog("not_ready_popup", 550, 0, true);
return false;
}else if(res[1] == "pop") {
//ÆË¾÷ÀÎ °æ¿ì¿¡´Â Çѹø ´õ ÆÄ½ÌÇÔ.
var popAddr = makeMenuno_url();
if(popAddr != false) {
//tmp°¡ ¾Æ´Ñ °æ¿ìÀÇ Ã³¸®.
var param = res[2].substring(res[2].indexOf("|")+1); //ÆË¾÷ ÆÄ¶ó¸ÞÅÍ´Â ¿ø·¡ÀÇ Àμö¿¡¼ ¹Þ°í
popAddr = popAddr.substring(0, popAddr.indexOf("|")); //ÆË¾÷ ÁÖ¼Ò´Â makeMenuUrl() °á°ú¿¡¼ ¹Þ´Â´Ù.
window.open(popAddr, popAddr.replace(/[^a-zA-Z]/g, ""), param);
return false;
}else {
return popAddr;
}
}else if(res[1] == "win") {
//»õ⸵ũ
menuUrl = res[2];
window.open(menuUrl,'','');
return false;
}
}
return menuUrl;
}
addLoadEvent(lnb);
function showNoticeHappen(){
window.open('http://bank.keb.co.kr/jsp/mal/xecurePass.jsp?URL=http://bank.keb.co.kr/PCS0000C.web','','width=665,height=512,menubar=0,resizable=0, scrollbars=0');
}
function tab(obj)
{
var list = obj.parentNode.parentNode.getElementsByTagName('img');
for( var i = 0; i < list.length; i++ )
{
list[i].src = list[i].src.replace('on', 'off');
}
obj.getElementsByTagName('img')[0].src = obj.getElementsByTagName('img')[0].src.replace('off', 'on');
var list = obj.parentNode.parentNode.parentNode.getElementsByTagName('div');
if( obj.className.indexOf('tb_wrap') > -1 ) {
for( var i = 0; i < list.length; i ++){
list[i].style.display = 'none';
}
document.getElementById(obj.className).style.display = 'block';
}
}
function WindowReset( width,win /* Window Object */ ){ // »õâÀÇ Å©±â¿Í À§Ä¡ Àç¼³Á¤
var winBody = win.document.body;
// »õâÀÇ »çÀÌÁî¿¡ ´õÇØÁÙ marginWidth¿Í marginHeight
var marginHeight = parseInt(winBody.topMargin)+parseInt(winBody.bottomMargin);
// height ±æÀÌ Á¶Àý
var totalSizeHeight;
//alert(winBody.scrollWidth+"Àüü:"+winBody.scrollHeight);
if(winBody.scrollHeight > 768){
totalSizeHeight = 330;
}else{
totalSizeHeight = winBody.scrollHeight;
}
if(navigator.appVersion.indexOf("MSIE 7.0") >= 0 ){ // 7.0ÀÏ ¶§
var hei = totalSizeHeight + (winBody.offsetHeight - winBody.clientHeight)+71;
}else{
var hei = totalSizeHeight + (winBody.offsetHeight - winBody.clientHeight) + marginHeight;
}
// »çÀÌÁî ÀçÁ¶Á¤
//
win.resizeTo(width, hei);
}
// À̹ÌÁö ±ôºý°Å¸² Á¦°Å
try {document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
// gnb ÁÖ°¡Á¤º¸
function naviStockOpen(){
var stock = document.getElementById('naviStock');
stock.style.display = 'block';
}
function naviStockClose(){
var stock = document.getElementById('naviStock');
stock.style.display = 'none';
}
// mainflashWrite(ÆÄÀϰæ·Î, °¡·Î, ¼¼·Î, ¾ÆÀ̵ð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå)
function mainflashWrite(url,w,h,id,base){
// Ç÷¡½Ã ÄÚµå Á¤ÀÇ
var flashStr=
"";
// Ç÷¡½Ã ÄÚµå Ãâ·Â
document.write(flashStr);
//iframeWrite(w,h,id);
}
/*
º¸À̽ºÇǽ̸µÅ©
*/
function voicep(){
window.open('/IBS/nkeb/jsp/etc/voice_phishing_pop.jsp','','width=550,height=512,menubar=0,resizable=0, scrollbars=0');
}