	//cont_list();
	function cont_list() {
		xmlHttp = createXMLHttpRequest();
		var send_para = createQuery();
		var url = "/svc/chosun/art_his.php?";
		xmlHttp.open("POST", url, true);
		xmlHttp.onreadystatechange = state;
		xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		xmlHttp.send(send_para);
	}

	function createXMLHttpRequest() {
		if (window.ActiveXObject) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		else if (window.XMLHttpRequest) {
			xmlHttp = new XMLHttpRequest();
		}
		return xmlHttp;
	}

	function createQuery() {
		send_contid = Artid('artid');
		var send_para = 'contid='+send_contid;
//		alert(send_para);
		return send_para;
	}

	function state() {
		if(xmlHttp.readyState == 4) {
			if(xmlHttp.status == 200) {
				art_his();									
			}
			else {
			}
		}
	}

	function Artid(contid) {
		var contid = location.href.substring(location.href.lastIndexOf('/')+1, location.href.indexOf('.html'));
		return contid;
	}

	function art_his() {	
		document.getElementById("contentHistory").innerHTML = xmlHttp.responseText;
	}

	var old_id = GetCookie("gnb_his_id");

	function GetCookie(cookieName) {
		var his_article = document.cookie;
		if (his_article.length > 0) {
			sIdx = his_article.indexOf(cookieName);

			if (sIdx != -1) {
				sIdx += cookieName.length;
				eIdx = his_article.indexOf(";", sIdx);

				if (eIdx == -1) {
					eIdx = his_article.length;
					return unescape(his_article.substring(sIdx+1, eIdx));
				}
				else {
					return unescape(his_article.substring(sIdx+1, eIdx));
				}
			}
		}
		else {
			return "";
		}
	}

	if (old_id == undefined) {
		old_id = "";
	}
	else {
		old_id = old_id.replace(/กค/g, " ");
		splitOld_id = old_id.split("^");
		var split_len = splitOld_id.length;
		var temp_id = "";
		var temp_cnt = 0;

		for (var i=0; i < (split_len-1); i++) {
			for (var j=(i+1); j < (split_len-1); j++) {
				if (splitOld_id[i] == splitOld_id[j]) {
					splitOld_id[i] = "";
				}
			}

			if (splitOld_id[i] == "^" || splitOld_id[i] == "" || temp_cnt >= 5) {
				continue;
			}
			else {
				temp_id += splitOld_id[i]+"^";
				temp_cnt++;
			}
		}
		old_id = temp_id.replace(/กค/g, " ");
	}

	var contid = location.href.substring(location.href.lastIndexOf('/')+1, location.href.indexOf('.html'));
	var siteid = location.href.substring(location.href.indexOf('//')+2, location.href.indexOf('.'));
	var allMetas = document.getElementsByTagName("META");
	var metaCont;
	for (var i=0;i<allMetas.length;i++){
		if (allMetas[i].name && allMetas[i].name == "description"){
			metaCont = allMetas[i].content;
			metaCont = metaCont.replace(/กค/g, " ");
			break;
		}
	}
	var title = metaCont;

	var his_list = contid+"|"+siteid+"|"+title.substring(0, 20)+"^";
	if (old_id.indexOf(his_list) == -1) {
		his_list = his_list+old_id;
	}
	else {
		his_list = old_id;
	}

	SetCookie("gnb_his_id", his_list);

	function SetCookie(name, value) {
		document.cookie = name+"="+escape(value)+ "; path=/; domain=.chosun.com;";
	}

