function tab_event(val)
{
for (i=1; i<3; i++) document.getElementById("tab_0" + i).style.display = "none";
document.getElementById(val).style.display = "block";
}
function MM_swapImgRestore() {
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() {
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) {
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() {
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function goJuminLogin() {
document.getElementById("reg_login").style.display = "block";
document.getElementById("id_login").style.display = "none";
document.getElementById("gongin_login").style.display = "none";
document.getElementById("gongin_login1").style.display = "none";
}
function goIDLogin() {
document.getElementById("reg_login").style.display = "none";
document.getElementById("id_login").style.display = "block";
document.getElementById("gongin_login").style.display = "none";
document.getElementById("gongin_login1").style.display = "none";
}
function goGonginLogin() {
document.getElementById("reg_login").style.display = "none";
document.getElementById("id_login").style.display = "none";
document.getElementById("gongin_login").style.display = "block";
document.getElementById("gongin_login1").style.display = "none";
}
function goGonginLogin1() {
document.getElementById("reg_login").style.display = "none";
document.getElementById("id_login").style.display = "none";
document.getElementById("gongin_login").style.display = "none";
document.getElementById("gongin_login1").style.display = "block";
}
function goCustomer() {
location.href = cmd_path + 'CMD_SEQ_105150149421211616068136&menuid=customer';
}
function goInformationGuide() {
window.open(cmd_path + "CMD_SEQ_102961617971216272762080", "infomation_guide", "width=830 height=546 menubar=no status=no");
}
function fnLogin(l_sGubun)
{
if(l_sGubun == 'S') document.loginForm.action = wwws_path+cmds_path+'CMD_SEQ_105564958331204706450150';
else document.loginForm.action = cmd_path+'CMD_SEQ_105564958331204706450150';
document.loginForm.juminid.value = String(document.loginForm.jumin1.value) + String(document.loginForm.jumin2.value);
document.loginForm.submit();
return ;
}
function IDLogin(l_sGubun)
{
if(l_sGubun == 'S') document.idloginForm.action = wwws_path+cmds_path+'CMD_SEQ_100569094821213854094612';
else document.idloginForm.action = cmd_path+'CMD_SEQ_100569094821213854094612';
document.idloginForm.submit();
return ;
}
function goIDLoginForm(l_sGubun) {
document.idloginForm.userid.value = document.getElementById("userid").value;
document.idloginForm.passwd.value = document.getElementById("userpwd").value;
document.getElementById("chkS2").checked ? document.idloginForm.chkS.checked = true : document.idloginForm.chkS.checked = false;
if ( document.getElementById("userid").value == "") {
alert("¾ÆÀÌµð¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
document.getElementById("userid").focus();
return;
}
if ( document.getElementById("userpwd").value == "") {
alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
document.getElementById("userpwd").focus();
return;
}
checkIpinMemberByID(document.idloginForm.userid.value);
if(document.getElementById("chkS2").checked == true) l_sGubun = 'S';
//IDLogin(l_sGubun);
}
function check(l_sGubun)
{
document.loginForm.jumin1.value = document.getElementById("jumin1").value;
document.loginForm.jumin2.value = document.getElementById("jumin2").value;
document.loginForm.passwd.value = document.getElementById("passwd").value;
document.getElementById("chkS").checked ? document.loginForm.chkS.checked = true : document.loginForm.chkS.checked = false;

if ( document.getElementById("jumin1").value == "") {
alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
document.getElementById("jumin1").focus();
return;
}
if ( document.getElementById("jumin2").value == "") {
alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
document.getElementById("jumin2").focus();
return;
}
if ( document.getElementById("passwd").value == "")
{
alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
document.getElementById("passwd").focus();
return;
}
if(document.getElementById("chkS").checked 	== true) l_sGubun = 'S';
checkIpinMemberBySSNAndPwd(document.loginForm.jumin1.value+document.loginForm.jumin2.value, document.loginForm.passwd.value);
//fnLogin(l_sGubun);
}
function checkLengthByObject(l_sObj,l_dObj,l_iLen)
{
var str = l_sObj.value.length;
if (str == l_iLen) l_dObj.focus();
}
function login_onkeypress()
{
if ( event.keyCode == 13 )
{
check('N');
return false;
}
}
function login_onkeypress2()
{
if ( event.keyCode == 13 )
{
goIDLoginForm('N');
return false;
}
}
function pca_login_onkeypress()
{
iFrameForm.jumin1.value = document.getElementById("i_jumin1").value;
iFrameForm.jumin2.value = document.getElementById("i_jumin2").value;

if ( event.keyCode == 13 )
{
checkIpinMemberBySSN(iFrameForm.jumin1.value+iFrameForm.jumin2.value);
//PrintObjectTag();
//showPublicAuth(iFrameForm.jumin1.value+iFrameForm.jumin2.value);
return false;
}
}
function goPopPCAIntro()
{
window.open(cmd_path+"CMD_SEQ_106888282841211443350515", "public_guide", "width=600 height=580 menubar=no status=no");
}

/* ¸ÞÀÎ ³ëÃâ ÃßÀû À§ÇÑ Æã¼Ç */
function goJoinFormMain() {
location.href = cmd_path+'CMD_SEQ_101398405431211538358321&from_main_left';
}
function goPwFindMain() {
location.href = cmd_path+'CMD_SEQ_104262557311211525360188&from_main_left';
}
function goCustomerMain() {
location.href = cmd_path + 'CMD_SEQ_105150149421211616068136&menuid=customer&from_main_left';
}
/* ¸ÞÀÎ ³ëÃâ ÃßÀû À§ÇÑ Æã¼Ç */


function goJoinForm() {
location.href = cmd_path+'CMD_SEQ_101398405431211538358321';
}

function goPwFind() {
location.href = cmd_path+'CMD_SEQ_104262557311211525360188';
}
function goBanner(arg) {
alert("¹è³ÊÀÌµ¿ "+arg);
}
function goPCA() {
iFrameForm.jumin1.value = document.getElementById("i_jumin1").value;
iFrameForm.jumin2.value = document.getElementById("i_jumin2").value;
if(document.getElementById("i_jumin1").value.length < 6) {
alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
document.getElementById("i_jumin1").focus();
} else if(document.getElementById("i_jumin2").value.length < 7) {
alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
document.getElementById("i_jumin2").focus();
} else {
checkIpinMemberBySSN(iFrameForm.jumin1.value+iFrameForm.jumin2.value);
//PrintObjectTag();
//showPublicAuth(iFrameForm.jumin1.value+iFrameForm.jumin2.value);
}
}
function checkkey(obj) {
if(obj.checked) loginForm.chkS.checked = true;
else loginForm.chkS.checked = false;
}
function checkkey2(obj) {
if(obj.checked) idloginForm.chkS.checked = true;
else idloginForm.chkS.checked = false;
}
function go_TrustInfo() {
location.href = cmd_path+"CMD_SEQ_105897652161212025629575&menuid=credit_indivisual";
}
function go_TrustMyInfo() {
location.href = cmd_path+"CMD_SEQ_101756957751210119226519&menuid=credit_indi_change";
}

function go_NameUse() {
 location.href = cmd_path+"CMD_SEQ_107736105091213256469122&menuid=name_indi_change";
}

function go_NameInfo() {
location.href = cmd_path+"CMD_SEQ_102012627371213151784585&menuid=name_indi_what";
}
function go_NameServiceInfo() {
location.href = cmd_path+"CMD_SEQ_101105472861213271356787&menuid=name_indi_blocklist";
}

function go_GroupTrustServiceInfo() {
location.href = cmd_path+"CMD_SEQ_101853354801212126743021&menuid=credit_group";
}
function go_GroupTrustMemberInfo() {
location.href = wwws_path+cmds_path+"CMD_SEQ_102624322851210308118415&menuid=credit_group_member";
}

function go_GroupNameServiceInfo() {
location.href = cmd_path+"CMD_SEQ_105804150771213411156479&menuid=name_group_what";
}
function go_GroupNameMemberInfo() {
location.href = cmd_path+"CMD_SEQ_109413361221213435530486&menuid=name_group_manage";
}

function go_MyLank() {
location.href = cmd_path+"CMD_SEQ_102602344261207793839671&page=1&menuid=kplus_my";
}
function go_MyCredit() {
location.href = cmd_path+"CMD_SEQ_102899494201211347506841&page=1&menuid=mypage_mileadge";
}
function go_MyPage() {
location.href = cmd_path+"CMD_SEQ_108106067941211261866824&menuid=mypage";
}
function go_ProfileEdit() {
location.href = cmd_path+"CMD_SEQ_108292311931211278707195&menuid=mypage_modify";
}
function go_EventFinish() {
alert("¿Ï·áµÈÀÌº¥Æ®·Î ÀÌµ¿");
}
function introduce() {
window.open(cmd_path+'CMD_SEQ_103647989321215170165447', 'oo','width=100,height=100,status=no')
}
var news_count = 0;
var isMouseOver = 0;
function onTimeout_news() {
try {
var tab1 = document.getElementById("news_tab0");
var tab2 = document.getElementById("news_tab1");
var tab3 = document.getElementById("news_tab2");
if ( isMouseOver == 0 && news_rolling == 1 && tab1 != null && tab1 != "" ) {
if ( news_count == 0 ) {
tab1.style.display = "";
tab2.style.display = "none";
tab3.style.display = "none";
news_count = 1;
} else if (news_count == 1) {
tab1.style.display = "none";
tab2.style.display = "";
tab3.style.display = "none";
news_count = 2;
} else  {
tab1.style.display = "none";
tab2.style.display = "none";
tab3.style.display = "";
news_count = 0;
}
}
}catch(e) { }
}
function next_News(val) {

var tab1 = document.getElementById("news_tab0");
var tab2 = document.getElementById("news_tab1");
var tab3 = document.getElementById("news_tab2");
if ( news_count == 0 ) {
tab1.style.display = "";
tab2.style.display = "none";
tab3.style.display = "none";
news_count = 1;
} else if (news_count == 1) {
tab1.style.display = "none";
tab2.style.display = "";
tab3.style.display = "none";
news_count = 2;
} else  {
tab1.style.display = "none";
tab2.style.display = "none";
tab3.style.display = "";
news_count = 0;
}
}
function news_mouseover() {
isMouseOver = 1;
}
function news_mouseout() {
isMouseOver = 0;
}
function homeBtn(val) {
if (val == "blue" ) {
location.href = cmd_path+"CMD_SEQ_109885481901207898517345";
} else if (val == "green" ) {
location.href = cmd_path+"CMD_SEQ_109885481901207898517345&initPage=teen_body";
}
}

function jumininputclick() {
var out_jumin_login = "<input type='text' class='log_input' id='jumin1' style='width:58' maxlength=6 onKeyUp=\"checkLengthByObject(document.getElementById('jumin1'),document.getElementById('jumin2'),6);\" onblur='juminpwinputclick()'> - <input type='password' class='log_input' id='jumin2' style='width:58' maxlength=7 onKeyUp=\"checkLengthByObject(document.getElementById('jumin2'),document.getElementById('passwd'),7);\" onblur='juminpwinputclick()'> <input type=checkbox id='chkS' align='absmiddle' checked onClick=\"checkkey(this)\" style='width:15'>º¸¾È";
document.getElementById("jumininput").innerHTML = out_jumin_login;
}

function juminpwinputclick() {
var out_jumin_login = "<input type='text' class='log_input' id='jumin1' style='width:58' maxlength=6 onKeyUp=\"checkLengthByObject(document.getElementById('jumin1'),document.getElementById('jumin2'),6);\" > - <input type='password' class='log_input' id='jumin2' style='width:58' maxlength=7 onKeyUp=\"checkLengthByObject(document.getElementById('jumin2'),document.getElementById('passwd'),7);\" > <input type=checkbox id='chkS' align='absmiddle' checked onClick=\"checkkey(this)\" style='width:15'>º¸¾È";
document.getElementById("jumininput").innerHTML = out_jumin_login;
}
function mainLoanTextBanner(){
var Mran =  Math.random();
var a = (Math.floor(Mran*100))%6;
if ( a==0)
{
document.write("<iframe id=mainbanner  src='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=5&category=21&type=1' width=0 height=0 border=0 frameborder=0 scrolling=no marginheight=0 marginwidth=0></iframe>");
document.write ("<a href='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=5&category=21&type=2&href=ok' class=main_link6> <b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;À§µåÄ³ÇÇÅ» ¸¶¿ì½º·Ð</a>")
}
if ( a==1)
{
document.write("<iframe id=mainbanner  src='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=3&category=21&type=1' width=0 height=0 border=0 frameborder=0 scrolling=no marginheight=0 marginwidth=0></iframe>");
document.write ("<a href='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=3&category=21&type=2&href=ok' class=main_link6><b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;¾¾Æ¼ÆÄÀÌ³½¼È ½Å¿ë´ëÃâ</a>")
}
if ( a==2)
{
document.write("<iframe id=mainbanner  src='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=1&category=21&type=1' width=0 height=0 border=0 frameborder=0 scrolling=no marginheight=0 marginwidth=0></iframe>");
document.write ("<a href='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=1&category=21&type=2&href=ok' class=main_link6><b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;Çö´ë½ºÀ§½º ¾ËÇÁ½º·Ð</a>")
}
if ( a==3)
{
document.write("<iframe id=mainbanner  src='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=4&category=21&type=1' width=0 height=0 border=0 frameborder=0 scrolling=no marginheight=0 marginwidth=0></iframe>");
document.write ("<a href='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=4&category=21&type=2&href=ok' class=main_link6><b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;Çö´ëÄ³ÇÇÅ» ÇÁ¶óÀÓ·Ð</a>")
}

if ( a==4)
{
document.write("<iframe id=mainbanner  src='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=2&category=21&type=1' width=0 height=0 border=0 frameborder=0 scrolling=no marginheight=0 marginwidth=0></iframe>");
document.write ("<a href='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=2&category=21&type=2&href=ok' class=main_link6> <b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;WÀúÃàÀºÇà ÇÇ³ëÅ°¿À·Ð</a>")
}
if ( a==5)
{
resultHTML += "<iframe id=mainbanner  src='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=7&category=21&type=1' width=0 height=0 border=0 frameborder=0 scrolling=no marginheight=0 marginwidth=0></iframe>";
resultHTML += "<a href='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=7&category=21&type=2&href=ok' class=main_link6><b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;´ë¿ìÄ³ÇÇÅ» ³»°Ô·Ð</a>"
}
/* ºñÇ®¹Ìµð¾î Àå¾Ö½Ã ºäÅ¬¸¯ Á¦°Å

if ( a==0)
{
document.write ("<a href='http://www.creditbank.co.kr/FC.fc?CMD=CMD_SEQ_103129910781216626023870&menuid=loan_fix_with' class=main_link6> <b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;À§µåÄ³ÇÇÅ» ¸¶¿ì½º·Ð</a>")
}
if ( a==1)
{
document.write ("<a href='http://www.creditbank.co.kr/FC.fc?CMD=CMD_SEQ_101526894721225430417914&menuid=loan_fix_citi' class=main_link6><b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;¾¾Æ¼ÆÄÀÌ³½¼È ½Å¿ë´ëÃâ</a>")
}
if ( a==2)
{
document.write ("<a href='http://www.creditbank.co.kr/FC.fc?CMD=CMD_SEQ_108201084261223367013487&menuid=loan_fix_hsb' class=main_link6><b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;Çö´ë½ºÀ§½º ¾ËÇÁ½º·Ð</a>")
}
if ( a==3)
{
document.write ("<a href='http://www.creditbank.co.kr/FC.fc?CMD=CMD_SEQ_103249700551219898877737&menuid=loan_fix_hyundai' class=main_link6><b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;Çö´ëÄ³ÇÇÅ» ÇÁ¶óÀÓ·Ð</a>")
}
if ( a==4)
{
document.write ("<a href='http://www.creditbank.co.kr/FC.fc?CMD=CMD_SEQ_108909220161233886728345&menuid=loan_fix_sc' class=main_link6> <b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;SCÄ³ÇÇÅ» ½ºÅÄ´Ùµå·Ð</a>")
}

*/

}
function mainLoanTextBanner2(){
var Mran =  Math.random();
var a = (Math.floor(Mran*100))%5;
var resultHTML = "" ;
if ( a==0)
{
resultHTML += "<iframe id=mainbanner  src='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=5&category=21&type=1' width=0 height=0 border=0 frameborder=0 scrolling=no marginheight=0 marginwidth=0></iframe>";
resultHTML += "<a href='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=5&category=21&type=2&href=ok' class=main_link6> <b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;À§µåÄ³ÇÇÅ» ¸¶¿ì½º·Ð</a>";
}
if ( a==1)
{
resultHTML += "<iframe id=mainbanner  src='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=3&category=21&type=1' width=0 height=0 border=0 frameborder=0 scrolling=no marginheight=0 marginwidth=0></iframe>";
resultHTML += "<a href='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=3&category=21&type=2&href=ok' class=main_link6><b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;¾¾Æ¼ÆÄÀÌ³½¼È ½Å¿ë´ëÃâ</a>";
}
if ( a==2)
{
resultHTML += "<iframe id=mainbanner  src='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=1&category=21&type=1' width=0 height=0 border=0 frameborder=0 scrolling=no marginheight=0 marginwidth=0></iframe>";
resultHTML += "<a href='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=1&category=21&type=2&href=ok' class=main_link6><b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;Çö´ë½ºÀ§½º ¾ËÇÁ½º·Ð</a>";
}
if ( a==3)
{
resultHTML += "<iframe id=mainbanner  src='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=4&category=21&type=1' width=0 height=0 border=0 frameborder=0 scrolling=no marginheight=0 marginwidth=0></iframe>";
resultHTML += "<a href='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=4&category=21&type=2&href=ok' class=main_link6><b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;Çö´ëÄ³ÇÇÅ» ÇÁ¶óÀÓ·Ð</a>"
}

if ( a==4)
{
//resultHTML += "<iframe id=mainbanner  src='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=7&category=21&type=1' width=0 height=0 border=0 frameborder=0 scrolling=no marginheight=0 marginwidth=0></iframe>";
resultHTML += "<a href='http://www.creditbank.co.kr/FC.fc?CMD=CMD_SEQ_101442349441216625938274&menuid=loan_fix_gd' class=main_link6><b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;°ñµçºê¸´ÁöÄ³ÇÇÅ» ½Å¿ë´ëÃâ</a>"
}
/*
if ( a==4)
{
resultHTML += "<iframe id=mainbanner  src='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=2&category=21&type=1' width=0 height=0 border=0 frameborder=0 scrolling=no marginheight=0 marginwidth=0></iframe>";
resultHTML += "<a href='http://credit.bpoolad.com/credit/set_credit.jsp?sponsor=2&category=21&type=2&href=ok' class=main_link6><b>[´ëÃâÁø´Ü]</b>&nbsp;&nbsp;WÀúÃàÀºÇà ÇÇ³ëÅ°¿À·Ð</a>"
}
*/
return resultHTML;
}

function popupMoveone() {
var url = cmd_path+"CMD_SEQ_100159504781219730846827";
window.open(url, "moveonePopup", "width=600 height=760 menubar=no status=no");
closeLayer('popup_moveone_announce', 'divpop');
}

// ipin°ü·Ã Ãß°¡
dojo.require("dojo.io.iframe");

function checkIpinMemberByID(obj) {
    dojo.io.iframe.send({
    	url: wwws_path+cmds_path+'CMD_SEQ_107768640511269077254057',
		content: {
          id: obj,
          protocol: document.location.protocol
      	},
        form: "checkIPINForm",
        load: function(response, ioArgs){
        	if(response == 'Y'){
    			location.href = cmd_path+'CMD_SEQ_100873144261269336554759';
    		} else {
				var l_sGubun = document.getElementById("chkS").checked ? "S":"";
				IDLogin(l_sGubun);
			}
			return response;
        },
        error: function(response, ioArgs){
			return response;
		}
    });
}
function afterCheckIpinMemberByID(obj) {
	//alert(obj);
    if(obj == 'Y'){
    	location.href = cmd_path+'CMD_SEQ_100873144261269336554759';
    } else {
		var l_sGubun = document.getElementById("chkS").checked ? "S":"";
		IDLogin(l_sGubun);
	}
}
function checkIpinMemberByID2(obj) {
    dojo.io.iframe.send({
    	url: wwws_path+cmds_path+'CMD_SEQ_107768640511269077254057',
		content: {
          id: obj,
          protocol: document.location.protocol
      	},
        form: "checkIPINForm",
        load: function(response, ioArgs){
        	if(response == 'Y'){
    			location.href = cmd_path+'CMD_SEQ_100873144261269336554759';
    		}
		return response;
        },
        error: function(response, ioArgs){
			return response;
		}
    });
}

function checkPassFromIPINCheck()
{
	if(document.getElementById("userid").value == '')
	{
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.getElementById("userid").focus();
		return;
	}	
}
function checkIpinMemberBySSN(obj) {
    dojo.io.iframe.send({
    	url: wwws_path+cmds_path+'CMD_SEQ_109710364811269078438027',
		content: {
          juminid: obj,
          protocol: document.location.protocol
      	},
        form: "checkIPINForm",
        load: function(response, ioArgs){
			if(response == 'Y'){
				if (!confirm("¾ÆÀÌÇÉÀ» ÅëÇÑ °¡ÀÔ °í°´´Ô! Å©·¹µ÷¹ðÅ©´Â ÁÖ¹Îµî·Ï¹øÈ£¸¦ ±â¹ÝÀ¸·Î ¼­ºñ½ºµË´Ï´Ù.\nÀÔ·ÂÇÏ½Å Á¤º¸¸¦ È¸¿øÁ¤º¸·Î ÀúÀåÇÏ¿© ¿øÈ°ÇÑ ¼­ºñ½º Á¦°ø¿¡ µ¿ÀÇÇÏ½Ã°Ú½À´Ï±î?"))
					return;
			} 
			PrintObjectTag();
			showPublicAuth(iFrameForm.jumin1.value+iFrameForm.jumin2.value);
			return response;
        },
        error: function(response, ioArgs){
        	alert(response);
			return response;
		}
    });	
}
function checkIpinMemberBySSNAndPwd(obj, obj2) {
    dojo.io.iframe.send({
    	url: wwws_path+cmds_path+'CMD_SEQ_103598368911269078449265',
		content: {
          juminid: obj,
          pwd: obj2,
          protocol: document.location.protocol
      	},
        form: "checkIPINForm",
        load: function(response, ioArgs){
			if(response == 'Y'){
				if (!confirm("¾ÆÀÌÇÉÀ» ÅëÇÑ °¡ÀÔ °í°´´Ô! Å©·¹µ÷¹ðÅ©´Â ÁÖ¹Îµî·Ï¹øÈ£¸¦ ±â¹ÝÀ¸·Î ¼­ºñ½ºµË´Ï´Ù. ÀÔ·ÂÇÏ½Å Á¤º¸¸¦ È¸¿øÁ¤º¸·Î ÀúÀåÇÏ¿© ¿øÈ°ÇÑ ¼­ºñ½º Á¦°ø¿¡ µ¿ÀÇÇÏ½Ã°Ú½À´Ï±î?"))
					return;
			} 
			var l_sGubun = document.getElementById("chkS").checked ? "S":"";
			fnLogin(l_sGubun);
        },
        error: function(response, ioArgs){
        	alert(response);
			return response;
		}
    });
}
function goIPINLoginForm(l_sGubun) {
	document.idloginForm.userid.value = document.getElementById("userid").value;
	document.idloginForm.passwd.value = document.getElementById("userpwd").value;
	document.idloginForm.jumin1.value = document.getElementById("userjumin1").value;
	document.idloginForm.jumin2.value = document.getElementById("userjumin2").value;
	document.getElementById("chkS2").checked ? document.idloginForm.chkS.checked = true : document.idloginForm.chkS.checked = false;
	if ( document.getElementById("userid").value == "") {
		alert("¾ÆÀÌµð¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
		document.getElementById("userid").focus();
		return;
	}
	if ( document.getElementById("userpwd").value == "") {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
		document.getElementById("userpwd").focus();
		return;
	}
	if ( document.getElementById("userjumin1").value == "") {
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
		document.getElementById("userjumin1").focus();
		return;
	}
	if ( document.getElementById("userjumin2").value == "") {
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
		document.getElementById("userjumin2").focus();
		return;
	}
	checkIpinMemberByIDAndPwdAndSSN(document.idloginForm.userid.value, document.idloginForm.passwd.value, document.idloginForm.jumin1.value+document.idloginForm.jumin2.value);	
}
function checkIpinMemberByIDAndPwdAndSSN(obj, obj2, obj3) {
    dojo.io.iframe.send({
    	url: wwws_path+cmds_path+'CMD_SEQ_107588793661269394755873',
		content: {
			id: obj,
			pwd: obj2,
          	juminid: obj3,
          	protocol: document.location.protocol
      	},
        form: "checkIPINForm",
        load: function(response, ioArgs){
			if(response == 'Y'){
				document.idloginForm.juminid.value = String(document.idloginForm.jumin1.value) + String(document.idloginForm.jumin2.value);
    		}
    		var l_sGubun = document.getElementById("chkS").checked ? "S":"";
    		IDLogin(l_sGubun);
        },
        error: function(response, ioArgs){
        	alert(response);
			return response;
		}
    });	
}
function ipin_login_onkeypress()
{
if ( event.keyCode == 13 )
{
goIPINLoginForm('N');
return false;
}
}