function rSearch() {
	var sKeyword = txtSearch.value;
	location.href="/?mid=apps_review_list&search_target=title_content&search_keyword="+sKeyword;
}

function doSearch() {
	if (event.keyCode == 13) rSearch();
}
	
function vwHeader(menu) {
	var sGNB = "";
	
	sGNB = sGNB + "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='/layouts/spod_main/images/top_bg.jpg'>";
	sGNB = sGNB + "<tr><td height='120' align='center'>";
	sGNB = sGNB + "<table width='980' height='120' border='0' cellspacing='0' cellpadding='0'>";
	sGNB = sGNB + "<tr><td height='65' align=left><a href='/'><img src='/layouts/spod_main/images/top_logo.gif' border='0'></a></td></tr>";
	sGNB = sGNB + "<tr><td>";
	sGNB = sGNB + "<table width='980' border='0' cellspacing='0' cellpadding='0'><tr>";	
	
	if (menu == "review") { // ¾Û½º ¸®ºä
		sGNB = sGNB + "<td width='136'><a href='/?mid=apps_review'><img src='/layouts/spod_main/images/m01_1.jpg' border='0'></a></td>";
	}
	else {
		sGNB = sGNB + "<td width='136'><a href='/?mid=apps_review'><img src='/layouts/spod_main/images/m01.jpg' border='0'></a></td>";
	}
	
	if (menu == "rank") { // ¾Û½º ·©Å·
		sGNB = sGNB + "<td width='121'><a href='/?mid=apps_rank'><img src='/layouts/spod_main/images/m02_1.jpg' border='0'></a></td>";
	}
	else {
		sGNB = sGNB + "<td width='121'><a href='/?mid=apps_rank'><img src='/layouts/spod_main/images/m02.jpg' border='0'></a></td>";
	}
	
	if (menu == "blog") { // ½ºÆÌºí·Î±×
		sGNB = sGNB + "<td width='121'><a href='/?mid=spodblog'><img src='/layouts/spod_main/images/m03_1.jpg' border='0'></a></td>";
	}
	else {
		sGNB = sGNB + "<td width='121'><a href='/?mid=spodblog'><img src='/layouts/spod_main/images/m03.jpg' border='0'></a></td>";
	}
	
	if (menu == "help") { // °í°´¼¾ÅÍ
		sGNB = sGNB + "<td width='121'><a href='/?mid=help'><img src='/layouts/spod_main/images/m04_1.jpg' border='0'></a></td>";
	}
	else {
		sGNB = sGNB + "<td width='121'><a href='/?mid=help'><img src='/layouts/spod_main/images/m04.jpg' border='0'></a></td>";
	}
	
	sGNB = sGNB + "<td width='481' background='/layouts/spod_main/images/m05.jpg'>";
	
	sGNB = sGNB + "<!--°Ë»öºÎºÐ -->";
	sGNB = sGNB + "<table width='471' border='0' cellspacing='0' cellpadding='0'><tr><td width='158'></td>";
	sGNB = sGNB + "<td width='230'><input name='txtSearch' type='text' size='35' class='search' onkeypress='doSearch()'></td>";
	sGNB = sGNB + "<td><img src='/layouts/spod_main/images/btn_search.gif' border='0' style='cursor:hand' onclick='rSearch();'></td></tr></table>";
	sGNB = sGNB + "<!--°Ë»öºÎºÐ ³¡ -->";
	
	sGNB = sGNB + "</td></tr></table></td></tr></table></td></tr></table>";
	                 
	document.write(sGNB);
}


function vwFooter() {
	var sGNB = "";

	sGNB = sGNB + "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
	sGNB = sGNB + "<tr><td background='/layouts/spod_main/images/footer_bg.gif' align='center'><img src='/layouts/spod_main/images/footer.gif' width='980' height='115' border='0' usemap='#Map'></td></tr></table>";
	sGNB = sGNB + "<map name='Map'>";
	sGNB = sGNB + "<area shape='rect' coords='463,27,512,44' href='member.html'>";
	sGNB = sGNB + "<area shape='rect' coords='352,27,446,44' href='#'>";
	sGNB = sGNB + "<area shape='rect' coords='286,27,334,44' href='#'>";
	sGNB = sGNB + "<area shape='rect' coords='220,27,268,43' href='#'>";
	sGNB = sGNB + "</map>";
	
	document.write(sGNB);
}
