/*
var shareLnk={
	findSearch: function() {
			var pagetype = this.smash(document.getElementById("search_pagetype").value);
			var keyword_str = this.smash(document.getElementById("search_keyword_str").value);
			var tgturl = "http://search.hani.co.kr/hani/search.php?pageType="+pagetype+"&keyword_str="+keyword_str+"";
			document.location = tgturl;
	},
	
	smash: function(str) {
		newstr=str.replace(/=/gi, "%3D");
		newstr=newstr.replace(/\&/gi, "%26");
		newstr=newstr.replace(/\?/gi, "%3F");
		return newstr;
	},
	
	key_down: function(event) {
		if(event.keyCode==13) {
			this.findSearch();
		}
	}
};


document.writeln("<table border=0px cellpadding=0px cellspacing=0px>");
document.writeln("	<tr>");
document.writeln("		<td><select id=\"search_pagetype\" style=\"width: 80px; height: 20px; \">");
document.writeln("			<option value=\"all\" >ÅëÇÕ°Ë»ö</option>");
document.writeln("			<option value=\"news\" >´º½º</option>");
document.writeln("			<option value=\"han21\" >ÇÑ°Ü·¹21</option>");
document.writeln("			<option value=\"cine21\" >¾¾³×21</option>");
document.writeln("			<option value=\"image\" >ÀÌ¹ÌÁö</option>");
document.writeln("			<option value=\"video\" >µ¿¿µ»ó</option>");
document.writeln("			</select></td>");
document.writeln("		<td style=\"padding:0 3px;\"><input type=\"text\" id=\"search_keyword_str\" style=\" border:1px solid #7F9DB9; padding:3px 0 0 3px;color:#989898; width:130px;\" onkeydown=shareLnk.key_down(event)></td>");
document.writeln("		<td><a href='javascript:shareLnk.findSearch();'><img border=0 src=\"http://img.hani.co.kr/section-image/09/news/btn_search.gif\" alt=\"°Ë»ö\" align=\"absmiddle\"></a></td>");
document.writeln("	</tr>");
document.writeln("</table>");
*/

/*
	function findSearch() {
	
		frm = document.searchForm;
		if (frm.q.value == '') {
			frm.kind.value = '6';
			findurl = "http://search.hani.co.kr/"; 	   		
			frm.action=findurl;
		} else {
			frm.kind.value = '0';
			frm.q.value = smash(frm.q.value);
			findurl = "http://search.hani.co.kr/"; 	   		
			frm.action=findurl;
		}
			//frm.submit();
	
	}
	
	function smash (str) {
	newstr=str.replace(/=/gi, "%3D");
	newstr=newstr.replace(/\&/gi, "%26");
	newstr=newstr.replace(/\?/gi, "%3F");
	return newstr;
	}
	
	function key_down(event){

		if(event.keyCode==13) {
		findSearch();
		}

	}
	
	function mouz_dn(e) {
		if (e.value=="ÅëÇÕ°Ë»ö") {
			e.value="";
		}
	}
*/