/*========================================================================================= @ÀÛ¼ºÀÚ : ±èµ¿¹Î @ÀÛ¼ºÀÏ : 2008/07/16 Ä«Æä24ÀÇ ÅÛÇø´¿¡´Â ¾÷·Îµå °¡´ÉÇÑ ÆÄÀÏÀÌ Á¦ÇÑµÇ¾î ±âÁ¸ÀÇ ISS_GotoSearch.php ÀÇ ³»¿ëÀ» ¸¶À̱׷¹ÀÌ¼Ç ÇÕ´Ï´Ù. (php:X, js:O, htm:O) =========================================================================================*/ function getEncCode() { var nowDate = new Date(); var yy = "" + nowDate.getYear(); var mm = "" + (nowDate.getMonth() + 1); var dd = "" + nowDate.getDate(); var hh = "" + nowDate.getHours(); var nn = "" + nowDate.getMinutes(); var ss = "" + nowDate.getSeconds(); yy = yy.substring(2, 4); if (mm<10) { mm = "0" + mm; } if (dd<10) { dd = "0" + dd; } if (hh<10) { hh = "0" + hh; } if (nn<10) { nn = "0" + nn; } var code = yy + mm + dd + hh + nn + ""; var res = ""; for(var i=1; i<=10; i++) { res = code.substring(i-1, i) + res; if (i==1) { res = (203 + parseInt(ss * mm)) + res; } else if (i==3) { res = (189 + parseInt(dd * hh)) + res; } else if (i==9) { res = (187 + parseInt(ss)) + res; } } return res; } var _ISSObject = function(){} { _ISSObject.prototype.key = ""; _ISSObject.prototype.startPage = ""; _ISSObject.prototype.member = ""; _ISSObject.prototype.setKey = function(v) { this.key = v; } _ISSObject.prototype.setStartPage = function(v) { this.startPage = v; } _ISSObject.prototype.setMember = function(v) { this.member = v; } _ISSObject.prototype.setInitialize = function(kv, pv, mv) { this.setKey(kv); this.setStartPage(pv); this.setMember(mv); } _ISSObject.prototype.getUrl = function() { var code = getEncCode(); var url = "http://210.101.116.36/InSiteSearch/ISS_CreateSession.aspx" + "?encCode=" + code + "&clientKey=" + this.key + "&startPage=" + this.startPage + "&Session_Member=" + this.member; return url; } _ISSObject.prototype.run = function() { window.open(this.getUrl()); } } // 2024: Çѱ¹°³ÇõÇÐȸÄÚµå // ISS_SForm:ºü¸¥°Ë»ö, ISS_DForm:»ó¼¼°Ë»ö, ISS_RForm:±ÇÈ£°Ë»ö var ISS = new _ISSObject; ISS.setInitialize(2024, "ISS_RForm", "");