PageSourceSearch

https://pickcon.co.kr/thestar_2012/js/btn_func_2011.js

js pickcon.co.kr collected 2026-10-02 18:16:15 UTC 20,828 bytes, 677 lines download raw bytes

1function getDzCookies(name) {
2	var cookies = document.cookie;
3	var value  = "";
4	if(cookies.indexOf(name) != -1) {
5		var start = cookies.indexOf(name) + name.length + 1;
6		var end   = cookies.indexOf(";",start);
7
8		if(end == -1) end = cookies.length;
9
10		value = cookies.substring(start,end);
11		value = unescape(value);
12	}
13
14	return value;
15}
16function setDzCookies() {
17	var name; var value; var expire; var path; var domain;
18	name = arguments[0];
19	value = arguments[1];
20	if (arguments.length > 2) path = arguments[2];
21	if (arguments.length > 3) domain = arguments[3];
22	if (arguments.length > 4) expire = arguments[4];
23        
24	document.cookie = name + "=" + escape(value)
25		+ ( (expire) ? "; expires=" + expire : "")
26		+ ( (path) ? "; path=" + path : "")
27		+ ( (domain) ? "; domain=" + domain: "")
28}
29function checkLogin() {
30	if(!getDzCookies('SMSESSION') || getDzCookies('SMSESSION') == "LOGGEDOFF" || !getDzCookies('SM_USER') || !getDzCookies('dz_info')) {
31		return false;
32	} else {
33		return true;
34	}
35}
36function windowOpen () {
37	var nUrl; var nWidth; var nHeight; var nLeft; var nTop; var nScroll;
38	nUrl = arguments[0];
39	nWidth = arguments[1];
40	nHeight = arguments[2];
41	nScroll = (arguments.length > 3 ? arguments[3] : "no");
42	nLeft = (arguments.length > 4 ? arguments[4] : (screen.width/2 - nWidth/2));
43	nTop = (arguments.length > 5 ? arguments[5] : (screen.height/2 - nHeight/2));
44	
45	winopen=window.open(nUrl, 'pbml_win', "left="+nLeft+",top="+nTop+",width="+nWidth+",height="+nHeight+",scrollbars="+nScroll+",toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no");
46}
47function _getArticleTitle() {
48	var metas = document.getElementsByTagName("META");
49	var titl = "";
50	for (var i=0;i<metas.length;i++){
51		if (metas[i].name && metas[i].name == "description"){
52			titl = metas[i].content;
53			break;
54		}
55	}
56	if (titl == "") titl = document.title;
57
58	return titl;
59}
60function _getArticleLink() {
61	var link = location.protocol + "//" + location.hostname + "" + (location.port!="" ? ":"+location.port : "") + location.pathname;
62	return link;
63}
64function _getHitlogLink(sec) {
65	var link = "http://hitweb2.chosun.com/php/In_Newht.php?sitecode=1&catcode=" + sec + "&artcode=sec_" + sec + "&ref=" + location.hostname + "&cur=" + location.hostname;
66	return link;
67}
68
69
70//ÇÁ¸°Æ®
71function printOpen() {
72	var type = (arguments.length > 0 ? arguments[0] : "");
73	windowOpen ("/svc/news/printContentNews.html?type="+type, 750, 560, 'yes');
74}
75//À̸ÞÀÏ
76function mailOpen() {
77if(checkLogin() == false) {
78alert('±â»ç À̸ÞÀϺ¸³»±â ±â´ÉÀº ·Î±×ÀÎ ÈÄ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.');
79location.href = "https://membership.chosun.com/login/protect_sso/sso_user_info.jsp?returl=" + escape(location.href);
80return false;
81}
82windowOpen ("/svc/news/www/sendContentNews.html", 540, 560);
83}
84//±â»ç¸ñ·Ï
85function goList () {
86//http://news.chosun.com/svc/list_in/list.html?catid=1&js_name=economy.
87var listurl = "/svc/list_in/list.html";
88var spn_listurl = "/svc/list_in/se_list.html"	;
89if (typeof(CatID) != "undefined") {
90var spn_CatID = CatID.substring(0,2);
91if (spn_CatID == '1'){
92listurl = "/svc/list_in/thestar_interview.html?catid=1";
93location.href = listurl;
94
95} else if (spn_CatID == '11'){
96listurl = "/svc/list_in/thestar_interview.html?catid=11";
97location.href = listurl;
98} else if (spn_CatID == '12'){
99listurl = "/svc/list_in/thestar_interview.html?catid=12";
100location.href = listurl;
101
102} else if (spn_CatID == '2'){
103listurl = "/svc/list_in/thestar_list.html?catid=2";
104location.href = listurl;
105} else if (spn_CatID == '21'){
106listurl = "/svc/list_in/thestar_list.html?catid=21";
107location.href = listurl;
108} else if (spn_CatID == '22'){
109listurl = "/svc/list_in/thestar_list.html?catid=22";
110location.href = listurl;
111} else if (spn_CatID == '23'){
112listurl = "/svc/list_in/thestar_list.html?catid=23";
113location.href = listurl;
114} else if (spn_CatID == '24'){
115listurl = "/svc/list_in/thestar_list.html?catid=24";
116location.href = listurl;
117} else if (spn_CatID == '25'){
118listurl = "/svc/list_in/thestar_list.html?catid=25";
119location.href = listurl;
120} else if (spn_CatID == '26'){
121listurl = "/svc/list_in/thestar_list.html?catid=26";
122location.href = listurl;
123
124} else if (spn_CatID == '3'){
125listurl = "/svc/list_in/thestar_photo.html?catid=3";
126location.href = listurl;
127} else if (spn_CatID == '31'){
128listurl = "/svc/list_in/thestar_photo.html?catid=31";
129location.href = listurl;
130} else if (spn_CatID == '32'){
131listurl = "/svc/list_in/thestar_photo.html?catid=32";
132location.href = listurl;
133} else if (spn_CatID == '33'){
134listurl = "/svc/list_in/thestar_photo.html?catid=33";
135location.href = listurl;
136} else if (spn_CatID == '34'){
137listurl = "/svc/list_in/thestar_photo.html?catid=34";
138location.href = listurl;
139} else if (spn_CatID == '35'){
140listurl = "/svc/list_in/thestar_photo.html?catid=35";
141location.href = listurl;
142
143
144} else if (spn_CatID == '4'){
145listurl = "/svc/list_in/thestar_tvinterview.html?catid=4";
146location.href = listurl;
147} else if (spn_CatID == '41'){
148listurl = "/svc/list_in/thestar_tvinterview.html?catid=41";
149location.href = listurl;
150} else if (spn_CatID == '42'){
151listurl = "/svc/list_in/thestar_tvinterview.html?catid=42";
152location.href = listurl;
153} else if (spn_CatID == '43'){
154listurl = "/svc/list_in/thestar_tvinterview.html?catid=43";
155location.href = listurl;
156} else if (spn_CatID == '44'){
157listurl = "/svc/list_in/thestar_tvinterview.html?catid=44";
158location.href = listurl;
159} else if (spn_CatID == '45'){
160listurl = "/svc/list_in/thestar_tvinterview.html?catid=45";
161location.href = listurl;
162
163
164
165} else {
166listurl += "?catid="+CatID; if (typeof(CatCODE) != "undefined") listurl += "&js_name"+CatCODE;
167location.href = listurl;	
168}
169}
170}
171//URLº¹»ç
172function getArticleURL () {
173	var cFile = location.href;
174
175	var IE=(document.all)?true:false;
176	if (IE) {
177		alert ("                             ±â»çÀÇ URLÀÌ º¹»çµÇ¾ú½À´Ï´Ù.\nÀÌÁ¦, ±â»ç¸¦ º¸³»´
177 ºÐÀÇ ¸Þ½ÅÀú³ª À̸ÞÀÏ¿¡ ctrl+V ·Î ºÙ¿©³Ö±â Çϼ¼¿ä.\n\n");
178		window.clipboardData.setData("Text", cFile);
179	}
180	else {
181		prompt("ÀÌ ??»ç?? ÁÖ¼ÒÀÔ´Ï´Ù. Ctrl+C¸¦ ´­·¯ Ŭ¸³º¸µå·Î º¹»çÇϼ¼¿ä", cFile);
182	}
183}
184//´º½º½ºÅ©·¦
185function showNewsScrap() {
186
187	if (checkLogin() == false) {
188		alert('±â»ç½ºÅ©·¦ ±â´ÉÀº ·Î±×ÀÎ ÈÄ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.');
189		location.href = "http://membership.chosun.com/login/protect_sso/sso_user_info.jsp?returl=" + escape(location.href);
190		return;
191	}
192
193	var url = location.href;
194	var sec = url.substring(7, url.indexOf(".chosun.com"));
195
196	windowOpen ("http://myhome.chosun.com/scrap/folder.php?act=1&url="+url+"&sec="+sec+"&usr_id="+getDzCookies('SM_USER'), 440, 430, 'yes');
197}
198//ºí·Î±×´ã±â
199function showScrap() {
200	
201	if (typeof(scrabYN) != "undefined" && scrabYN == "N") {
202		alert('ºí·Î±×´ã±â ±â´ÉÀÌ Á¦°øµÇÁö ¾Ê´Â ±â»çÀÔ´Ï´Ù.');
203		return;
204	}
205	if (checkLogin() == false) {
206		alert('ºí·Î±×´ã±â ±â´ÉÀº ·Î±×ÀÎ ÈÄ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.');
207		location.href = "https://membership.chosun.com/login/protect_sso/sso_user_info.jsp?returl=" + link;
208		return;
209	}
210
211	windowOpen ("/js/news/scrap_blog.html", 423, 462);
212}
213
214//ÆäÀ̽ººÏ
215function facebookOpen() {
216	var titl = encodeURIComponent(_getArticleTitle());
217	var link = encodeURIComponent(_getArticleLink() + "?outlink=facebook"); 
218	var url = "http://www.facebook.com/sharer.php?u=" + link + "&t=" + titl;
219	//windowOpen (url, 500, 300, 'no');
220	windowOpen (url, 900, 450, 'no');
221	(new Image).src = _getHitlogLink("sec_00010");
222}
223//twitter
224function _getArticleID() {
225	var artid = "";
226	var tmp_host = location.hostname;
227	try { 
228		tmp_host = tmp_host.substring(0,tmp_host.indexOf(".chosun.com"));
229		if (typeof(ArtID) != "undefined") artid = ArtID;
230		if (artid == "") {
231			var tmp_path = location.pathname;
232			if (tmp_path.indexOf(".html") != -1)
233				artid = tmp_path.substring(tmp_path.lastIndexOf("/")+1, tmp_path.indexOf(".html"));
234		}
235		if (artid != "" && tmp_host != "") artid = (tmp_host != "news" ? tmp_host+"*" : "") + artid;
236	} catch (e) {}
237	return artid;
238}
239function twitterOpen() {
240	var titl = _getArticleTitle();
241	titl = titl.replace (/'/gi,"¢¥");
242	titl = titl.replace (/"/gi,"¢©");
243	titl = encodeURIComponent(titl);
244
245	var link = encodeURIComponent(_getArticleLink() + "?outlink=twitter"); 
246	var url = "http://twitter.com/share?text=" + titl + "&url=" + link;
247	windowOpen (url, 800, 400, 'yes');
248	(new Image).src = _getHitlogLink("sec_00011");
249}
250//±¸±ÛÇ÷¯½º
251function googleplusOpen() {
252	var titl = encodeURIComponent(_getArticleTitle());
253	var link = encodeURIComponent(_getArticleLink() + "?outlink=googleplus"); 
254	var url = "https://plus.google.com/share?url=" + link;
255	windowOpen (url, 500, 500, 'no');
256	_getHitlogLink("sec_00015");
257}
258//¹ÌÅõµ¥ÀÌ
259function me2dayOpen() {
260	var titl = encodeURIComponent(_getArticleTitle());
261	var link = encodeURIComponent(_getArticleLink() + "?outlink=me2day"); 
262	var url = "http://me2day.net/posts/new?new_post[body]=\"" + titl + "\":" + link;
263	windowOpen (url, 1000, 600, 'no');
264	(new Image).src = _getHitlogLink("sec_00012");
265}
266//¿äÁò
267function yozmOpen() {
268	var titl = _getArticleTitle();
269	titl = titl.replace (/'/gi,"¢¥");
270	titl = titl.replace (/"/gi,"¢©");
271	titl = encodeURIComponent(titl);
272
273	var link = encodeURIComponent(_getArticleLink() + "?outlink=yozm"); 
274	var url = "http://yozm.daum.net/api/popup/prePost?prefix=" + titl + "&link=" + link;
275	windowOpen (url, 400, 364, 'no');
276	(new Image).src = _getHitlogLink("sec_00013");
277}
278//½ÎÀÌ¿ùµå
279function cyworldOpen() {
280	var link = encodeURIComponent(_getArticleLink() + "?outlink=cy_sharing"); 
281	var url = "http://csp.cyworld.com/bi/bi_recommend_pop.php?url=" + link;
282	windowOpen (url, 400, 364, 'no');
283	(new Image).src = _getHitlogLink("sec_00014");
284}
285//nate_scrap
286function nate_pop() {
287	var scrap_id = location.href.substring(location.href.lastIndexOf('/')+1, location.href.indexOf('.html'));
288	var nate_url = "http://api.cyworld.com/openscrap/post/v1/?sid=s0300014";
289	var chosun_url = "http://news.chosun.com/svc/nate_scrap/nate_form.php?contid="+scrap_id;
290	nate_url = nate_url+"&xu="+escape(chosun_url);
291	window.open(nate_url, 'cyopenscrap', 'width=450,height=410');
292}
293
294//±â»çÆùÆ®
295function fontSz(){
296	var arrFontSz = new Array("12", "14", "16", "19", "21", "25", "29");
297	var arrFontHei = new Array("18", "23", "24", "25", "27", "31", "35");
298
299	//Äí۰ª??ÀÎ 
300	var ckFontSz = "mzFontSz";
301	var dzFontSz = "", dzFontHei = "";
302	dzFontSz = getDzCookies(ckFontSz);
303	if (dzFontSz != null && dzFontSz != "") {
304		if (dzFontSz.indexOf("^")!=-1) {
305			var arr = dzFontSz.split("^");
306			if (arr.length==2) {dzFontSz=arr[0]; dzFontHei=arr[1];}
307		}
308		if (dzFontSz != "" && dzFontHei == "") {
309			for (i=0; i<arrFontSz.length; i++) {
310				if (arrFontSz[i] == dzFontSz) {
311					dzFontHei = arrFontHei[i];break;
312				}
313			}
314		}
315	}
316	if (dzFontSz == "") {	//±âº»°ª
317		dzFontSz = "14"; dzFontHei = "23"
318	} 
319	var no=0;
320	var fontObj = new Array();
321	/*
322	if(document.getElementById("ArticlePar01")){
323		fontObj[no] = document.getElementById("ArticlePar01"); no++;
324	}
325	if(document.getElementById("ArticlePar02")){
326		fontObj[no] = document.getElementById("ArticlePar02"); no++;
327	}
328	*/
329	if(document.getElementById("article_2011")){
330		fontObj[no] = document.getElementById("article_2011"); no++;
331	}
332	/*
333	if(document.getElementsByName("ArticlePar01")){
334		for (fidx = 0; fidx < document.getElementsByName("ArticlePar01").length; fidx++) {
335			fontObj[no] = document.getElementsByName("ArticlePar01")[fidx]; no++;
336		}
337	}
338	if(document.getElementsByName("ArticlePar02")){
339		for (fidx = 0; fidx < document.getElementsByName("ArticlePar02").length; fidx++) {
340			fontObj[no] = document.getElementsByName("ArticlePar02")[fidx]; no++;
341		}
342	}
343	if(document.getElementsByName("article_2011")){
344		for (fidx = 0; fidx < document.getElementsByName("article_2011").length; fidx++) {
345			fontObj[no] = document.getElementsByName("article_2011")[fidx]; no++;
346		}
347	}
348	*/
349	if (arguments.length == 0) {
350		for (i=0; i<fontObj.length; i++) {
351			fontObj[i].style.fontSize = eval(dzFontSz) + "px" ;
352			fontObj[i].style.lineHeight = eval(dzFontHei) + "px" ;
353		}
354	}
355	else {
356		var no = 0;
357		for (i=0; i<arrFontSz.length; i++) {
358			if (arrFontSz[i] == dzFontSz) {
359				no = i;
360			}
361		}
362		if (arguments[0] == "-"){
363			if (no == 0) return ;
364			dzFontSz = arrFontSz[no-1];
365			dzFontHei = arrFontHei[no-1];
366			for(i=0;i<fontObj.length;i++){
367				fontObj[i].style.fontSize = dzFontSz + "px" ;
368				fontObj[i].style.lineHeight = dzFontHei + "px" ;
369			}
370		}
371		else if (arguments[0] == "+"){
372			if (no == arrFontSz.length-1) return ;
373			dzFontSz = arrFontSz[no+1];
374			dzFontHei = arrFontHei[no+1];
375			for(i=0;i<fontObj.length;i++){
376				fontObj[i].style.fontSize = dzFontSz + "px" ;
377				fontObj[i].style.lineHeight = dzFontHei + "px" ;
378			}
379		}   
380		// ResizeµÈ FontÀÇ °ªÀ» ÄíŰ¿¡ Àû¿ë
381		var expTime = new Date() ;
382		expTime.setTime(expTime.getTime()+(24*60*60*1000*365)) ; // 365ÀÏ
383		setDzCookies(ckFontSz, dzFontSz+"^"+dzFontHei, "/", "chosun.com", expTime.toGMTString());
384		 
385	}
386}
387
388//¼³Á¤µÈ±ÛÀÚÅ©±â
389setTimeout("fontSz()",1000);
390setTimeout("fontSz()",2000);
391
392/** MSN º¸³»±â **/
393var winobj;
394var winModalWindow;
395var AppID = "99995409";
396
397function TryItNow() {   
398	CheckCookie();
399
400	CheckMessenger();
401
402	SetCookieArticle();
403
404	LaunchApp(AppID, "");
405
406	(new Image).src = "http://hitweb2.chosun.com/php/In_Newht.php?sitecode=1&catcode=sec_00006&artcode=sec_sec_00006&ref=www.chosun.com&cur=www.chosun.com";
407}
408
409function LaunchApp(AppID, emailID) {   
410	if (winobj != null) {   
411		winobj.LaunchApp(AppID, emailID);
412	}
413}
414
415function CheckMessenger() {   
416	eval ('try {winobj = new ActiveXObject("MSNMessenger.P4QuickLaunch"); } catch (e) {winobj = null;}');
417	var strErrorPage = "http://news.chosun.com/svc/content_view/notice.html"
418}
419
420function CheckCookie() {   
421	var cookieName = "checkCookie";
422	setDzCookies(cookieName, "1", "/", "chosun.com");
423	var value = getDzCookies(cookieName);
424
425	if (value == null || value == "") {
426		alert ("ÄíŰ¼³Á¤ÀÌ ¾ÈµÇ¾î ÀÖ´Â °æ¿ì ´Ù¸¥±â»ç°¡ Àü¼ÛµÉ ¼ö ÀÖ½À´Ï´Ù. \n\nÀÎÅͳݿɼǿ¡¼­ ÄíŰÇã¿ëÀ» È®ÀÎÇØ ÁÖ¼¼¿ä.");
427	}
428	
429	setDzCookies(cookieName, "", "/", "chosun.com", "Fri, 31 Dec 1900 23:59:59 GMT");
430}
431
432function IgnoreEvents(e) {
433	return false;
434}
435
436//Display error message if the MSN Messenger client 6.2 is not installed or the browser is not Internet Explorer
437function ShowWindow(strError, width, height) {
438	if (window.showModalDialog) {
439
440		window.showModalDialog(strError,null, "dialogWidth="+width+"px;dialogHeight="+height+"px;help=no;dialogLeft=160");
441	}
442	else {
443		var ah = screen.availHeight;
444
445		var y = (ah - height) / 2;
446
447		window.top.captureEvents (Event.CLICK|Event.FOCUS)
448		window.top.onfocus=HandleFocus
449		winModalWindow = window.open (strError,"ModalChild", "dependent=yes,width="+width+",height="+height+",top="+y+",left=160,screenX=160,screenY="+y)
450		winModalWindow.focus()
451	}
452}
453
454function HandleFocus() {
455	if (winModalWindow) {
456		if (!winModalWindow.closed) {
457			winModalWindow.focus()
458		}
459		else {
460			window.top.releaseEvents (Event.CLICK|Event.FOCUS)
461		}
462	}
463	return false
464}
465
466function SetCookieArticle(){
467
468	var sValue = location.href;
469	var sExpires = new Date();
470	sExpires.setDate(sExpires.getDate()+1);
471	sExpires.setHours(0,0,0,0);
472
473	setDzCookies("conturl", sValue, "/", "chosun.com", sExpires.toGMTString());
474}
475
476//ºñ½ºÅ¸ üũ ÀÚ¹Ù½ºÅ©¸³Æ® ºñ½ºÅ¸Àΰæ¿ì true ¸®ÅÏ 
477function isVista() { 
478	var re = new RegExp("Windows NT ([0-9]).([0-9])" ,"g"); 
479	var m = re.exec(navigator.userAgent); 
480	return (m[1] >= 6); 
481} 
482
483function MsnAction() {   
484	(new Image).src = "http://hitweb2.chosun.com/php/In_Newht.php?sitecode=1&catcode=sec_00008&artcode=sec_sec_00008&ref=www.chosun.com&cur=www.chosun.com";
485	window.open ("http://signup.alerts.live.com/alerts/login.do?PINID=41789040&returnURL=http://www.chosun.com", "_blank");
486}
487
488//¸Þ½ÅÀúº¸³»±â ¹öư ·Ñ¿À¹ö, ·Ñ¾Æ¿ô
489
490var Msn_TimeOut         = 300;
491var Msn_currentLayer    = null;
492var Msn_currentitem     = null;
493
494var Msn_currentLayerNum = 0;
495var Msn_noClose         = 0;
496var Msn_closeTimer      = null;
497
498// Open Hidden Layer
499function Msn_mopen(n)
500{
501    var l  = document.getElementById("msn_event");
502    var mm = document.getElementById("contentButtonArea");
503    
504    if(l)
505    {
506        Msn_mcancelclosetime();
507        l.style.visibility='visible';
508
509        if(Msn_currentLayer && (Msn_currentLayerNum != n))
510            Msn_currentLayer.style.visibility='hidden';
511
512        Msn_currentLayer = l;
513        Msn_currentitem = mm;
514        Msn_currentLayerNum = n;            
515    }
516    else if(Msn_currentLayer)
517    {
518        Msn_currentLayer.style.visibility='hidden';
519        Msn_currentLayerNum = 0;
520        Msn_currentitem = null;
521        Msn_currentLayer = null;
522    }
523}
524
525// Turn On Close Timer
526function Msn_mclosetime()
527{
528    Msn_closeTimer = window.setTimeout(Msn_mclose, Msn_TimeOut);
529}
530
531// Cancel Close Timer
532function Msn_mcancelclosetime()
533{
534    if(Msn_closeTimer)
535    {
536        window.clearTimeout(Msn_closeTimer);
537        Msn_closeTimer = null;
538    }
539}
540
541// Close Showed Layer
542function Msn_mclose()
543{
544    if(Msn_currentLayer && Msn_noClose!=1)
545    {
546        Msn_currentLayer.style.visibility='hidden';
547        Msn_currentLayerNum = 0;
548        Msn_currentLayer = null;
549        Msn_currentitem = null;
550    }
551    else
552    {
553        Msn_noClose = 0;
554    }
555
556    Msn_currentLayer = null;
557    Msn_currentitem = null;
558}
559
560// Close Layer Then Click-out
561document.onclick = Msn_mclose; 
562/** MSN º¸³»±â **/
563
564//ÀÕ±Û¸µ
565var ItglingNews = new function(){
566 
567	this.spot_title = "";
568	this.spot_content = "";
569	this.spot_keyword = "";
570	this.reg_date = "";
571	this.author = "";
572	this.post_url = "";
573	this.oauth_consumer_key = "";
574	this.consumerSecret = "";
575	this.news_type = "";
576	this.news_nid = "";
577 
578	this.send = function(news_type){
579 
580		if(typeof(news_type) == "undefined" && this.news_type == "") {
581			this.news_type = "0";
582		} 
583 
584		try{
585 
586			form = document.createElement("form");
587		
588			form.method = "POST";
589			form.action = "https://cmsg.itgling.com/externalapi/loginPage2";
590			form.target = "itgling_login";
591		
592			document.body.appendChild(form);
593		
594			// create parameter
595			form = addInputParameter(form, "hidden", "spot_title", this.recoverToHtmlStr(this.spot_title));
596			form = addInputParameter(form, "hidden", "spot_content", this.recoverToHtmlStr(this.spot_content));
597			form = addInputParameter(form, "hidden", "spot_keyword", this.spot_keyword);
598			form = addInputParameter(form, "hidden", "reg_date", this.reg_date);
599			form = addInputParameter(form, "hidden", "author", this.recoverToHtmlStr(this.author));
600			form = addInputParameter(form, "hidden", "post_url", this.post_url);
601			form = addInputParameter(form, "hidden", "oauth_consumer_key", this.oauth_consumer_key);
602			form = addInputParameter(form, "hidden", "consumerSecret", this.consumerSecret);
603			form = addInputParameter(form, "hidden", "news_type", this.news_type);
604			form = addInputParameter(form, "hidden", "news_nid", this.news_nid);
605	
606			// create popup
607			//popup = window.open("", "itgling_login", "width=450,height=500,scrollbars=yes,resizable=yes");
608			popup = window.open("", "itgling_login");
609			popup.focus();
610		
611			// submit();
612			form.submit();
613		}catch(e){
614			// alert(e.toString());
615		}
616	};
617		
618	addInputParameter = function(form, type, name, value){
619		input = document.createElement("input");
620		input.type = type;
621		input.name = name;
622		input.value = value;
623	
624		form.appendChild(input);
625		
626		return form;
627	};
628		
629	this.recoverToHtmlStr = function(str){
630		if(str != ""){
631			str = this.replaceAll(str, "&", "&amp;");
632			str = this.replaceAll(str, "<", "&lt;");
633			str = this.replaceAll(str, ">", "&gt;");
634			str = this.replaceAll(str, "\"", "&#34;");
635			str = this.replaceAll(str, "'", "&#39;");
636			str = this.replaceAll(str, "\\\\", "&#92;");
637			str = this.replaceAll(str, "\r\n", "<br/>");
638			str = this.replaceAll(str, "\r", "<br/>");
639			str = this.replaceAll(str, "\n", "<br/>");
640		}
641		
642		return str;
643	};
644		
645	this.recoverToHtmlTag = function(pStr){
646		if(pStr != ""){
647			pStr = this.replaceAll(pStr, "&amp;","&");
648			pStr = this.replaceAll(pStr, "&lt;", "<");
649			pStr = this.replaceAll(pStr, "&gt;", ">");
650			pStr = this.replaceAll(pStr, "&#34;", "\"");
651			pStr = this.replaceAll(pStr, "&#39;", "'");
652			pStr = this.replaceAll(pStr, "&#92;", "\\");
653		}
654		return pStr;
655	};
656		
657	this.trim = function(str){
658		return str.replace(/(^\s*)|(\s*$)/gi, "");
659	};
660		
661	this.replaceAll = function(str, str1, str2){
662		var temp_str = this.trim(str);
663		return temp_str.split(str1).join(str2); 
664	};
665}
666function itglingAction() {
667	//ItglingNews.news_nid = "http://news.chosun.com/svc/itgling/itgling_xml.html?site=news&newsid="+ArtID;
668	ItglingNews.news_nid = "http://newsplus.chosun.com/itgling/itgling_xml.html?newsurl="+encodeURIComponent(_getArticleLink());
669	//ÀÕ±Û¸µ¿¡¼­ ¹ß±ÞÇÑ consumer key °ª
670	ItglingNews.oauth_consumer_key = "283695e5d36642a7b68773ac9b8b2316";
671	//ÀÕ±Û¸µ¿¡¼­ ¹ß±ÞÇÑ consumerSecret °ª
672	ItglingNews.consumerSecret = "672382ddf041461f94d3c85160a9c689";
673	// ´º½º ±â»çÀÇ Å¸ÀÔ( 0 : ±âº» ÀÕ±Û µî·Ï(À­±Û Ãßõ ·ÎÁ÷) 1: ±â»ç¿¡ ÀÌ¾î ¾²±â(¾Æ·§±Û ÀÛ¼º ·ÎÁ÷)
674	ItglingNews.news_type = "0";
675 
676	ItglingNews.send(); 
677}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.