function submitKeyword(frm) {
	// Æ¯¼ö¹®ÀÚ Á¦¿Ü
	if (!inputCheckSpecial(frm.key.value)) {
        alert("Æ¯¼ö¹®ÀÚ´Â ÀÔ·ÂÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
		return false;
	}
	
	// °ø¹é Ä¡È¯
	frm.keyword.value = replaceSpace(frm.key.value);
	return true;
}

function replaceSpace(strSource)  {
        //re = /^\s+|\s+$/g;
        //return strSource.replace(re, "%");
        return strSource.replace(/ /gi, '%');
}

function inputCheckSpecial(str){
        var strobj = str;
        //alert(strobj);
        re = /[~!@\#$%^&*\()\=+_']/gi;
        if(re.test(strobj)){
        return false;
        }
        return true;
}
