		//var icss_query_field = "qry"; //icss2
		var icss_query_field = "icss:search:query"; //icss3
		var icss_query_empty_alert_text = decodeURIComponent("%EA%B2%80%EC%83%89%EC%96%B4%EA%B0%80%20%EC%9E%85%EB%A0%A5%EB%90%98%EC%A7%80%20%EC%95%8A%EC%95%98%EC%8A%B5%EB%8B%88%EB%8B%A4");


		function icss_removeWhiteSpace(strData) {
			strRegPattern = /\s/g;
			strReturn = strData.replace(strRegPattern, "");
			strReturn = strReturn.replace(/%20/g, "");
			strReturn = strReturn.replace(/&/g,'').replace(/</g,'').replace(/>/g,'').replace(/'/g,'').replace(/"/g,'');

			return strReturn;
		}



		function icss_stripExceptionChar(str) {
			 return str.replace(/&/g,'').replace(/</g,'').replace(/>/g,'').replace(/'/g,'').replace(/"/g,'');
		}


		function icss_utf8Submit(frm){

			query_text = frm.elements[icss_query_field].value;

			if(!icss_removeWhiteSpace(query_text)){
				alert(icss_query_empty_alert_text);
				return false;
			}

			query_text = icss_stripExceptionChar(query_text);
			frm.elements[icss_query_field].value = query_text;


			targetURL = frm.action + "?";
			targetParameter = "";

			for(i=0; i < frm.length; i++){
				if(frm[i].name != "" && frm[i].value != "" ){
					targetParameter = targetParameter + frm[i].name + "=" + encodeURIComponent(frm[i].value) + "&";
				}
			}

			location.href = targetURL+targetParameter;		
		}


		function call_iframe(src, width, height){
			iframe_url = src + location.search;
			document.write('<iframe src="'+iframe_url+'" name="icss_iframe" id="icss_iframe" width="'+width+'" height="'+height+'" frameborder="0" scrolling="no"></iframe>');
		}


		function resize_iframe(icss_size_url){
			height = self.document.body.scrollHeight;
			document.write('<iframe src="'+icss_size_url+'" name="icss_temp" id="icss_temp" width="0" height="0" frameborder="0" scrolling="no"></iframe>');
		}
