function emailCheck(email) {
	var pattern = /^(.+)@(.+)$/;
	var atom = "\[^\\s\\(\\)<>#@,;:!\\\\\\\"\\.\\[\\]\]+";
	var word="(" + atom + "|(\"[^\"]*\"))";
	var user_pattern = new RegExp("^" + word + "(\\." + word + ")*$");
	var ip_pattern = /^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
	var domain_pattern = new RegExp("^" + atom + "(\\." + atom +")*$");
	
	var arr = email.match(pattern);
	if(!arr){
		return false;
	}	
	if(!arr[1].match(user_pattern)){
		return false;
	}	
	var ip = arr[2].match(ip_pattern);
	if(ip){
		for (var i=1; i<5; i++){
			if (ip[i] > 255){
				return false;
			}
		}		
	}else{
		if(!arr[2].match(domain_pattern)){
			return false;
		}	
		var domain = arr[2].match(new RegExp(atom,"g"));
		if(domain.length<2){
			return false;
		}	
		if(domain[domain.length-1].length<2 || domain[domain.length-1].length>3){
			return false;
		}	
	}
	return true; 
}

function juminCheck(jumin1,jumin2) {
	var yy         = jumin1.substr(0,2);// ³âµµ
	var mm = jumin1.substr(2,2);        // ¿ù
	var dd = jumin1.substr(4,2);        // ÀÏ
	var genda = jumin2.substr(0,1);     // ¼ºº°
	var msg, ss, cc;

	// ¼ýÀÚ°¡ ¾Æ´Ñ °ÍÀ» ÀÔ·ÂÇÑ °æ¿ì
	if (!isNumeric(jumin1)) {
		return false;
	}
	// ±æÀÌ°¡ 6ÀÌ ¾Æ´Ñ °æ¿ì
	if (jumin1.length != 6) {
		return false;
	}
	// Ã¹¹øÂ° ÀÚ·á¿¡¼­ ¿¬¿ùÀÏ(YYMMDD) Çü½Ä Áß ±âº» ±¸¼º °Ë»ç
	if (yy < "00" || yy > "99" ||
		mm < "01" || mm > "12" ||
		dd < "01" || dd > "31") {
		return false;
	}
	// ¼ýÀÚ°¡ ¾Æ´Ñ °ÍÀ» ÀÔ·ÂÇÑ °æ¿ì
	if (!isNumeric(jumin2)) {
		return false;
	}
	// ±æÀÌ°¡ 7ÀÌ ¾Æ´Ñ °æ¿ì
	if (jumin2.length != 7) {
		return false;
	}
	// ¼ºº°ºÎºÐÀÌ 1 ~ 4 °¡ ¾Æ´Ñ °æ¿ì
	if (genda < "1" || genda > "4") {
		return false;
	}
	// ¿¬µµ °è»ê - 1 ¶Ç´Â 2: 1900³â´ë, 3 ¶Ç´Â 4: 2000³â´ë
	cc = (genda == "1" || genda == "2") ? "19" : "20";
	// Ã¹¹øÂ° ÀÚ·á¿¡¼­ ¿¬¿ùÀÏ(YYMMDD) Çü½Ä Áß ³¯Â¥ Çü½Ä °Ë»ç
	if (isYYYYMMDD(parseInt(cc+yy), parseInt(mm), parseInt(dd)) == false) {
		return false;
	}
	// Check Digit °Ë»ç
	if (!isSSN(jumin1, jumin2)) {
		return false;
	}
	return true;
}

function isNumeric(s) {
	for (i=0; i<s.length; i++){
		c = s.substr(i, 1);
		if (c < "0" || c > "9") return false;
	}
	return true;
}

function isYYYYMMDD(y, m, d) {
	switch (m) {
	case 2:        // 2¿ùÀÇ °æ¿ì
		if (d > 29) return false;
		if (d == 29) {
			// 2¿ù 29ÀÇ °æ¿ì ´çÇØ°¡ À±³âÀÎÁö¸¦ È®ÀÎ
			if ((y % 4 != 0) || (y % 100 == 0) && (y % 400 != 0))
				return false;
		}
	break;
	case 4:        // ÀÛÀº ´ÞÀÇ °æ¿ì
	case 6:
	case 9:
	case 11:
		if (d == 31) return false;
	}
	// Å« ´ÞÀÇ °æ¿ì
	return true;
}

function isSSN(s1, s2) {
	n = 2;
	sum = 0;
	for (i=0; i<s1.length; i++)
		sum += parseInt(s1.substr(i, 1)) * n++;
	for (i=0; i<s2.length-1; i++) {
		sum += parseInt(s2.substr(i, 1)) * n++;
		if (n == 10) n = 2;
	}
	c = 11 - sum % 11;
	if (c == 11) c = 1;
	if (c == 10) c = 0;
	if (c != parseInt(s2.substr(6, 1))) return false;
	else return true;
}

function getByteLength(s){
   var len = 0;
   if ( s == null ) return 0;
   for(var i=0;i<s.length;i++){
      var c = escape(s.charAt(i));
      if ( c.length == 1 ) len ++;
      else if ( c.indexOf("%u") != -1 ) len += 2;
      else if ( c.indexOf("%") != -1 ) len += c.length/3;
   }
   return len;
}

function onlyNumber(){//¼ýÀÚ¸¸ ÀÔ·Â ¹Þ½À´Ï´Ù.
	if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;
}

function addCategory(){//°ü¸®ÀÚÀÇ Ä«Å×°í¸® µî·Ï
	var form = document.frm;
	var itm = form.category;
	if(itm.value.length < 2){
		alert('³»¿ëÀÌ ºñ¾îÀÖ°Å³ª, ³Ê¹« Àû½À´Ï´Ù.');
		itm.focus();
		return;
	}
	form.mode.value = "addCategory";
	form.submit();
}

function addItem(formName){//°ü¸®ÀÚÀÇ ¾ÆÀÌÅÛ µî·Ï
	var form = eval("document."+formName);
	var title = form.title;
	var rss = form.rss;
	var content = form.content
	if(title.value.length < 2){
		alert('Á¦¸ñÀÌ ºñ¾îÀÖ°Å³ª, ³Ê¹« Àû½À´Ï´Ù.');
		title.focus();
		return;
	}
	if(content.value.length < 2){
		alert('¼³¸íÀÌ ºñ¾îÀÖ°Å³ª, ³Ê¹« Àû½À´Ï´Ù.');
		content.focus();
		return;
	}
	var filter = /http:\/{2}[0-9a-zA-Z_]/;
	if(rss.value.length < 7 || !filter.test(rss.value)){
		alert('RSS ÁÖ¼Ò¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		rss.focus();
		return;
	}	
	form.mode.value = "addItem";
	form.submit();
}

function showForm(formName){//»ç¿ëÀÚ RSS ´ã±â
	var tmp = document.getElementsByTagName("select");
	var form = eval("document."+formName);	
	for(var i=0;i<tmp.length;i++){
		if(tmp[i].id == "uCategory"){
			tmp[i].style.display = "none";
		}
	}
	form.uCategory.style.display = "";
}


function selectItem(uid,title){//°ü¸®ÀÚÀÇ Ä«Å×°í¸® ¼öÁ¤¹öÆ° Å¬¸¯
	var form  = document.frm;
	document.getElementById('hiddenEditTr').style.display = '';
	document.getElementById('hiddenEditTr2').style.display = 'none';
	form.uitem.value = uid;
	form.editTitle.value = title;
}

function selectChannel(uid,title,content,rss,uopen){//°ü¸®ÀÚÀÇ Ã¼³Î ¼öÁ¤¹öÆ° Å¬¸¯
	var form  = document.frm;
	document.getElementById('hiddenEditTr_1').style.display = 'block';
	document.getElementById('hiddenEditTr_2').style.display = 'block';
	document.getElementById('hiddenEditTr2_1').style.display = 'none';
	document.getElementById('hiddenEditTr2_2').style.display = 'none';
	form.uitem.value = uid;
	form.editTitle.value = title;	
	form.editContent.value = content;	
	form.editRss.value = rss;	
	if(uopen == 1){//°ü¸®ÀÚÀÇ °æ¿ì
		//¾Æ¹«°Íµµ ÀÏ¾î³ªÁö ¾ÊÀ½
	}else{
		if(uopen == "Y"){//°ø°³ RSSÀÇ °æ¿ì
			form.uopenM[0].checked = "checked";//°ø°³°¡ checkedµÊ
		}else{
			form.uopenM[1].checked = "checked";//ºñ°ø°³°¡ checkedµÊ
		}
	}
}

function cancelEditItem(){//°ü¸®ÀÚÀÇ Ä«Å×°í¸® ¼öÁ¤ Ãë¼Ò
	var form  = document.frm;
	document.getElementById('hiddenEditTr').style.display = 'none';
	document.getElementById('hiddenEditTr2').style.display = '';
	form.uitem.value = "";
	form.editTitle.value = "";
}

function cancelEditChannel(){//°ü¸®ÀÚÀÇ Ã¼³Î ¼öÁ¤ Ãë¼Ò
	var form  = document.frm;
	document.getElementById('hiddenEditTr_1').style.display = 'none';
	document.getElementById('hiddenEditTr_2').style.display = 'none';
	document.getElementById('hiddenEditTr2_1').style.display = '';
	document.getElementById('hiddenEditTr2_2').style.display = '';
	form.uitem.value = "";
	form.editTitle.value = "";	
	form.editContent.value = "";	
	form.editRss.value = "";	
}

function editItem(){//°ü¸®ÀÚÀÇ Ä«Å×°í¸® ¼öÁ¤ submit
	if(confirm("³»¿ëÀ» ¼öÁ¤ ÇÏ½Ã°Ú½À´Ï±î?")){
		var form = document.frm;
		var itm = form.editTitle;
		if(itm.value.length < 2){
			alert('³»¿ëÀÌ ºñ¾îÀÖ°Å³ª, ³Ê¹« Àû½À´Ï´Ù.');
			itm.focus();
			return;
		}		
		form.mode.value = "editCategory";
		form.submit();
	}else{
		return;
	}
}

function editChannel(){//RSS Ã¼³Î ¼öÁ¤
	if(confirm("³»¿ëÀ» ¼öÁ¤ ÇÏ½Ã°Ú½À´Ï±î?")){
		var form = document.frm;
		var itm = form.editTitle;
		//var cont = form.editContent;
		var rss = form.editRss;
		if(itm.value.length < 2){
			alert('Á¦¸ñÀÌ ºñ¾îÀÖ°Å³ª, ³Ê¹« Àû½À´Ï´Ù.');
			itm.focus();
			return;
		}		
		/*if(cont.value.length < 2){
			alert('¼³¸íÀÌ ºñ¾îÀÖ°Å³ª, ³Ê¹« Àû½À´Ï´Ù.');
			cont.focus();
			return;
		}	*/	
		if(rss.value.length < 5){
			alert('RSSÁÖ¼Ò¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
			rss.focus();
			return;
		}			
		form.mode.value = "editChannel";
		form.submit();
	}else{
		return;
	}
}

function deleteItem(uid){//°ü¸®ÀÚÀÇ Ä«Å×°í¸® »èÁ¦
	if(confirm("¼±ÅÃÇÏ½Å Ä«Å×°í¸®¸¦ »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?")){
		var form = document.frm;
		form.mode.value = "deleteCategory";
		form.uitem.value = uid;
		form.submit();
	}else{
		return;
	}
}

function deleteChannel(uid){//°ü¸®ÀÚÀÇ Ä«Å×°í¸® »èÁ¦
	if(confirm("¼±ÅÃÇÏ½Å RSS¸¦ »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?")){
		var form = document.frm;
		form.mode.value = "deleteChannel";
		form.uitem.value = uid;
		form.submit();
	}else{
		return;
	}
}

function goList(pid,thread){
	var form =  document.tmpFrm;
	form.pid.value = pid;
	form.thread.value = thread;
	form.action = "../list/?";
	form.submit();
}

function tossGoRead(uid,pid,thread){
	var form =  document.tmpFrm;
	form.pid.value = pid;
	form.thread.value = thread;
	goRead(uid);
}

function goRead(uid){
	var form =  document.tmpFrm;
	form.uid.value = uid;
	form.action = "../read/?";
	form.submit();
}

function goDescription(count){
	var form = document.frm;
	var source = eval("document.frm.description_"+count);
	form.description.value = source.value;
}

function callMeUp(url,parents){
	window.document.getElementById('loading').src="../../images/loading.gif";
	window.document.getElementById('extractor').SetVariable("callUp", "true");
	window.document.getElementById('extractor').SetVariable("links", url);
	window.document.getElementById('extractor').SetVariable("parents",parents);
}

function goCert(id){
	var mobile1 = window.document.getElementById('frm').mobile1;
	var mobile2 = window.document.getElementById('frm').mobile2;
	var mobile3 = window.document.getElementById('frm').mobile3;
	var cert = window.document.getElementById('frm').cert;
	var email = window.document.getElementById('frm').email;
	
	switch(id){
		case 1://È¸¿ø °¡ÀÔ ½Ã ÈÞ´ëÆù ÀÎÁõ¹Þ±â
			if(mobile2.value == ""){
				alert("ÈÞ´ëÆù¹øÈ£¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇØÁÖ¼¼¿ä");
				mobile2.focus();
				return;
			}
			if(mobile3.value == ""){
				alert("ÈÞ´ëÆù¹øÈ£¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇØÁÖ¼¼¿ä");
				mobile3.focus();
				return;	
			}		
		break;
		case 2://È¸¿ø °¡ÀÔ È®ÀÎ ½Ã ÈÞ´ëÆù ÀÎÁõ¹Þ±â		
			window.document.getElementById('emailCert').style.display = "none";
			window.document.getElementById('hiddenTr3').style.display = "";
			window.document.getElementById('hiddenTr3_1').style.display = "";
		break;
	}
	window.document.getElementById('certification').SetVariable("callUp", "true");	
	window.document.getElementById('certification').SetVariable("mobile1", mobile1.value);
	window.document.getElementById('certification').SetVariable("mobile2", mobile2.value);
	window.document.getElementById('certification').SetVariable("mobile3", mobile3.value);			
	cert.focus();
}

function sendCert(){
	var email = window.document.getElementById('frm').email;
	var cert = window.document.getElementById('frm').cert;	
	
	if(!emailCheck(email.value)){
		alert("¿Ç¹Ù¸¥ ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		return;	
	}
	window.document.getElementById('smsCert').style.display = "none";
	window.document.getElementById('hiddenTr3').style.display = "";
	window.document.getElementById('hiddenTr3_1').style.display = "";

	window.document.getElementById('certification2').SetVariable("callUp", "true");	
	window.document.getElementById('certification2').SetVariable("email", email.value);			
	cert.focus();
}
function seek(){//È¸¿ø Áßº¹ È®ÀÎ
	var userId = document.frm.userId;

	if(userId.value == ""){
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		userId.focus();
		return;
	}
	window.document.getElementById('seeker').SetVariable("callUp", "true");	
	window.document.getElementById('seeker').SetVariable("userId", userId.value);
}

function seekResult(id,userId){//È¸¿ø Áßº¹ È®ÀÎ °á°ú
	var flagIdCheck = document.frm.flagIdCheck;
	var temp_id = document.frm.temp_id;
	var msg = "";
	switch(id){
		case 1:
			flagIdCheck.value = "true";
			temp_id.value = userId;
			msg = "Áßº¹µÈ ¾ÆÀÌµð°¡ ¾ø½À´Ï´Ù.\n\n»ç¿ëÇÏ¼Åµµ ÁÁ½À´Ï´Ù.";
		break;
		case 2:
			flagIdCheck.value = "";
			temp_id.value = "";
			msg = "ÀÌ¹Ì »ç¿ëÁßÀÎ ¾ÆÀÌµðÀÔ´Ï´Ù.\n\n´Ù¸¥ ¾ÆÀÌµð¸¦ ÀÔ·Â ÇØÁÖ¼¼¿ä.";		
		break;
	}
	alert(msg);
	document.frm.userId.focus();
	return;
}

function trace(){//È¸¿ø °¡ÀÔ¿©ºÎ È®ÀÎ
	var jumin1 = document.frm.jumin1;
	var jumin2 = document.frm.jumin2;
	var uname = document.frm.uname;
	if(uname.value == ""){
		alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		uname.focus();
		return;
	}
	if(jumin1.value == ""){
		alert("ÁÖ¹Î¹øÈ£ ¾ÕÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin1.focus();
		return;
	}
	if(jumin2.value == ""){
		alert("ÁÖ¹Î¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin2.focus();
		return;
	}
	
	if(!juminCheck(jumin1.value,jumin2.value)){
		alert("¿Ç¹Ù¸¥ ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin2.focus();
		return;
	}
	window.document.getElementById('tracer').SetVariable("callUp", "true");	
	window.document.getElementById('tracer').SetVariable("uname", uname.value);	
	window.document.getElementById('tracer').SetVariable("jumin1", jumin1.value);
	window.document.getElementById('tracer').SetVariable("jumin2", jumin2.value);
}

function traceResult(id,email,userId,mobile1,mobile2,mobile3){//È¸¿ø °¡ÀÔ¿©ºÎ È®ÀÎ °á°ú
	var tmp = "";
	var str = "";
	var mobile = "";
	switch(id){
		case 1:
			document.getElementById('hiddenTr1').style.display = "none";
			document.getElementById('hiddenTr1_1').style.display = "none";
			document.getElementById('hiddenTr1_2').style.display = "none";			
			document.getElementById('hiddenTr2').style.display = "";
			document.getElementById('hiddenTr2_1').style.display = "";
			document.getElementById('temp_id').value = userId;
			document.getElementById('email').value = email;
			document.getElementById('mobile1').value = mobile1;
			document.getElementById('mobile2').value = mobile2;
			document.getElementById('mobile3').value = mobile3;
			mobile = mobile1+""+mobile2+""+mobile3;
			str+="<img src='../../images/num_icon_02.gif' width='21' height='20' align='absmiddle' />";
			str+="ÀÔ·ÂÇÏ½Å È¸¿øÁ¤º¸·Î &quot;<strong>"+userId.substring(0,userId.length-2)+"**</strong>&quot; ¾ÆÀÌµð°¡ °Ë»öµÇ¾ú½À´Ï´Ù.";
			document.getElementById('idLine').innerHTML = str;
			
			for(var i=0;i<mobile.length;i++){
				if(i%2 == 1){
					tmp += "*";
				}else{
					tmp += mobile.charAt(i);
				}
			}			
			document.getElementById('mobileLine').innerText = tmp+" ÈÞ´ëÆù¹øÈ£·Î";
			tmp = "";
			
			for(i=0;i<email.length;i++){
				if(i%2 == 1 && email.charAt(i) != "@" && email.charAt(i) != "."){
					tmp += "*";
				}else{
					tmp += email.charAt(i);
				}
			}	
			document.getElementById('emailLine').innerText = tmp+" ·Î";
		break;
		case 2:		
			alert("µî·ÏµÈ »ç¿ëÀÚ°¡ ¾Æ´Õ´Ï´Ù.\n\n´Ù½Ã È®ÀÎÇÏ¿© ÁÖ½Ê½Ã¿À.");
		break;
	}
	return;
}

function insertPid(id){
	var vendor = document.frm.vendor;
	var mobile1 = document.frm.mobile1;
	var mobile2 = document.frm.mobile2;
	var mobile3 = document.frm.mobile3;
	var pid = document.frm.pid;
	
	//vendor.disabled = "disabled";
	pid.value = id;
}

function checkCert(){
	var pid = document.frm.pid;
	var cert = document.frm.cert;
	window.document.getElementById('joinner').SetVariable("callUp", "true");	
	window.document.getElementById('joinner').SetVariable("pid", pid.value);
	window.document.getElementById('joinner').SetVariable("cert", cert.value);
}

function goRegist(){
	document.frm.submit();
}

function openPass(){
	window.document.getElementById('hiddenTr2').style.display = "none";
	window.document.getElementById('hiddenTr2_1').style.display = "none";	
	window.document.getElementById('hiddenTr3').style.display = "none";
	window.document.getElementById('hiddenTr3_1').style.display = "none";
	window.document.getElementById('hiddenTr4').style.display = "";
	window.document.getElementById('hiddenTr4_1').style.display = "";
	window.document.getElementById('hiddenTr4_2').style.display = "";
	window.document.getElementById('passwd').focus();
}

function checkPass(){
	var passwd = document.getElementById('passwd');
	var rePasswd = document.getElementById('rePasswd');
	
	if(passwd.value == ""){
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		passwd.focus();
		return;
	}	
	
	if(getByteLength(passwd.value) < 4 || getByteLength(passwd.value) > 16){
		alert("ºñ¹Ð¹øÈ£¸¦ 4ÀÚ ÀÌ»ó 16ÀÚ ÀÌ³»·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		passwd.focus();
		return;	
	}
	
	if(rePasswd.value == ""){
		alert("ºñ¹Ð¹øÈ£¸¦ È®ÀÎÇØ ÁÖ¼¼¿ä.");
		rePasswd.focus();
		return;
	}		
	
	if(passwd.value != rePasswd.value){
		alert("'ºñ¹Ð¹øÈ£'¿Í 'ºñ¹Ð¹øÈ£ È®ÀÎ'ÀÌ\n\nÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.");
		rePasswd.focus();
		return;
	}	
	document.frm.submit();
}

function mkLoginBox() {
	var url = "/include/loginBox.php";
	sendRequest(url, '', getBoxResult, "get");
}
function getBoxResult() {
	if (httpRequest.readyState == 4) {
		if (httpRequest.status == 200) {
			window.document.getElementById('loginBox').innerHTML = unescape(httpRequest.responseText);
		}	
	}
}
function loadUp(){
	window.document.getElementById('loading').src="../../images/blank.gif";
}
function checkValues(title,content,rss){
	document.tmpFrm.title.value = title;
	document.tmpFrm.content.value = content;
	document.tmpFrm.rss.value = rss;
}

if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){
cot_t1_DOCtp="_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}";
}else{
cot_t1_DOCtp="_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}";
}
var cot_tl_bodyCSS='* html {background:url(../../images/blank.gif) fixed;background-repeat: repeat;background-position: right bottom;}';
var cot_tl_fixedCSS='#cot_tl_fixed{position:fixed;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'_position:absolute;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'z-index:1;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'width:100%;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'text-align:center;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'bottom:0px;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'right:0px;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'clip:rect(0 100% 100% 0);';
var cot_tl_fixedCSS=cot_tl_fixedCSS+cot_t1_DOCtp;
document.write('<style type="text/css">'+cot_tl_bodyCSS+cot_tl_fixedCSS+'</style>');

function helloToServer(title,category) {
	if(window.document.getElementById('feedBackCategory').selectedIndex == 0){
		alert("ÀÇ°ßÀ» ÁÖ½Ç ºÐ·ù¸¦ ¼±ÅÃÇÏ¼¼¿ä.");
		window.document.getElementById('feedBackCategory').focus();
		return;
	}
	var params = "feedBackTitle="+encodeURIComponent(title);
	params += "&feedBackCategory="+encodeURIComponent(category);
	params += "&feedBackUrl="+encodeURIComponent("<?=$THIS_URL?>");
	sendRequest("/include/postFeedBack.php", params, helloFromServer, "POST");
	window.document.getElementById('loading').src = "/images/loading.gif";
}
function helloFromServer() {
	if(httpRequest.readyState == 4){
		if(httpRequest.status == 200){
			window.document.getElementById('loading').src = "/images/blank.gif";	
			window.document.getElementById('feedBackTitle').value = "";	
			window.document.getElementById('feedBackCategory').selectedIndex = 0
			if(httpRequest.responseText == "00"){
				alert("ÀÇ°ß ÁÖ¼Å¼­ °¨»çÇÕ´Ï´Ù.\n\nÁÁÀº»ý°¢,¿­½ÉÈ÷ ¹Ý¿µ ÇÏ°Ú½À´Ï´Ù.");
			}else{     
				alert("ÀÇ°ßµî·Ï ½Ã ¹®Á¦°¡ ¹ß»ýÇÏ¿´½À´Ï´Ù.\n\nºÒÆíÀ» µå·Á ÁË¼ÛÇÕ´Ï´Ù.");			
			}			
		}
	}
}