// 1. ÅëÇÕ ·Î±×ÀÎ ÆË¾÷ function jPassniPopup() { wWidth = 700; wHight = 769; wX = (window.screen.width - wWidth) / 2; wY = (window.screen.height - wHight) / 2; // var w = window.open("", "PassNiLoginWin", "directories=no,toolbar=no,left="+wX+",top="+wY+",width="+wWidth+",height="+wHight); document.login_form_1.app_id_target.value = "ian_www"; document.login_form_1.retUrl.value = ""; document.login_form_1.failUrl.value = ""; document.login_form_1.action = "http://sso.iansan.net/idp_service/unificationLogin.do"; document.login_form_1.target = "PassNiLoginWin"; document.login_form_1.method = "post"; document.login_form_1.submit(); } // 2. ȸ¿ø°¡ÀÔ ÆË¾÷ function jPassniMemberPopup() { wWidth = 700; wHight = 769; wX = (window.screen.width - wWidth) / 2; wY = (window.screen.height - wHight) / 2; var w = window.open("", "PassNiLoginWin", "directories=no,toolbar=no,left="+wX+",top="+wY+",width="+wWidth+",height="+wHight); document.login_form_1.app_id_target.value = "ian_www"; document.login_form_1.retUrl.value = ""; document.login_form_1.failUrl.value = ""; document.login_form_1.action = "http://sso.iansan.net/idp_service/passni30/user/register/join_step01.jsp"; document.login_form_1.target = "PassNiLoginWin"; document.login_form_1.method = "post"; document.login_form_1.submit(); } // 3. ÅëÇÕ°èÁ¤Ã£±â function jPassniSearchPopup() { wWidth = 700; wHight = 769; wX = (window.screen.width - wWidth) / 2; wY = (window.screen.height - wHight) / 2; var w = window.open("", "PassNiLoginWin", "directories=no,toolbar=no,left="+wX+",top="+wY+",width="+wWidth+",height="+wHight); document.login_form_1.app_id_target.value = "ian_www"; document.login_form_1.retUrl.value = ""; document.login_form_1.failUrl.value = ""; document.login_form_1.action = "http://sso.iansan.net/idp_service/passni30/user/register/search_step01.jsp"; document.login_form_1.target = "PassNiLoginWin"; document.login_form_1.method = "post"; document.login_form_1.submit(); } // 4. ÅëÇÕ°èÁ¤ Á¤º¸¼³Á¤ function jPassniSetUpPopup() { wWidth = 700; wHight = 769; wX = (window.screen.width - wWidth) / 2; wY = (window.screen.height - wHight) / 2; var w = window.open("", "PassNiLoginWin", "directories=no,toolbar=no,left="+wX+",top="+wY+",width="+wWidth+",height="+wHight); document.login_form_1.app_id_target.value = "ian_www"; document.login_form_1.retUrl.value = "http://www.ubi.com:81/www/"; document.login_form_1.failUrl.value = "http://www.ubi.com:81/www/"; document.login_form_1.action = "/SSOSetUpService.do"; document.login_form_1.target = "PassNiLoginWin"; document.login_form_1.method = "post"; document.login_form_1.submit(); } // ÅëÇÕ ·Î±×ÀΠó¸® function jPassniProcess() { document.login_form_0.app_id.value = document.login_form_0.app_id.value; document.login_form_0.SSOMasterKey.value = document.login_form_0.SSOMasterKey.value; document.login_form_0.sso_authvnum.value = document.login_form_0.sso_authvnum.value; document.login_form_0.sso_authchk.value = document.login_form_0.sso_authchk.value; document.login_form_0.retUrl.value = document.login_form_0.retUrl.value; document.login_form_0.failUrl.value = document.login_form_0.failUrl.value; document.login_form_0.q.value = document.login_form_0.q.value; document.login_form_0.action = document.login_form_0.actionUrl.value; document.login_form_0.method = "post"; document.login_form_0.submit(); } // 2. ÀÚµ¿ ·Î±×ÀÎ SelectBox function jPassniSsoSelect(selObj , ab_login) { var obj_name = selObj.options[selObj.selectedIndex].value; if(obj_name !="" ){ jPassniSsoBanner(obj_name , ab_login); }else{ return; } } // 2.1. ÀÚµ¿ ·Î±×ÀÎ SelectBox ó¸® function jPassniSsoBanner( app_id_target , ab_login ) { if ( ab_login ) { document.login_form_2.app_id_self.value = "ian_www"; document.login_form_2.app_id_target.value = app_id_target; if(app_id_target == "ian_batv") { document.login_form_2.retUrl.value = "http://batv.iansan.net"; document.login_form_2.failUrl.value = "http://batv.iansan.net"; } else if(app_id_target == "ian_lib") { document.login_form_2.retUrl.value = "http://lib.iansan.net"; document.login_form_2.failUrl.value = "http://lib.iansan.net"; } else if(app_id_target == "ian_mail") { document.login_form_2.retUrl.value = "http://mail.iansan.net/passni/sample/sso_login_popup.jsp"; document.login_form_2.failUrl.value = "http://mail.iansan.net/passni/sample/sso_login_popup.jsp"; } else if(app_id_target == "ian_photo") { document.login_form_2.retUrl.value = "http://photo.iansan.net"; document.login_form_2.failUrl.value = "http://photo.iansan.net"; } else if(app_id_target == "sp1") { document.login_form_2.retUrl.value = "http://www.ubi.com:81/www/passni/sample/sso_login_popup.jsp"; document.login_form_2.failUrl.value = "http://www.ubi.com:81/www/passni/sample/sso_login_popup.jsp"; } else if(app_id_target == "sp2") { document.login_form_2.retUrl.value = "http://www.ubi.com:82/www/passni/sample/sso_login_popup.jsp"; document.login_form_2.failUrl.value = "http://www.ubi.com:82/www/passni/sample/sso_login_popup.jsp"; } document.login_form_2.action = "/SSOService.do"; document.login_form_2.target = "blank"; document.login_form_2.method = "post"; document.login_form_2.submit(); } else { var ls_url = ""; if(app_id_target == "ian_batv") { ls_url = "http://batv.iansan.net/"; } else if(app_id_target == "ian_lib") { ls_url = "http://lib.iansan.net/"; } else if(app_id_target == "ian_mail") { ls_url = "http://mail.iansan.net/"; } else if(app_id_target == "ian_photo") { ls_url = "http://photo.iansan.net/photomain.asp"; } window.open( ls_url , "" , "" ); } }