function siteinsearch_chk()
{
	if(this.document.siteinsearch.S1.value == '')
	{
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		this.document.siteinsearch.S1.focus();
		return false;
	}
	return true;
}

function siteinsearch(){
	if(siteinsearch_chk())
	{
		this.document.siteinsearch.submit();
	}
	return;
}

function ProcKeyUp(){
    keyPressed = String.fromCharCode(window.event.keyCode);
    if (keyPressed == "\r" || keyPressed == "\n"){
    	siteinsearch();
    }
}

function checkVillageSearch(){
	if(this.document.include_searchform.include_search_text.value == ''){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		this.document.include_searchform.include_search_text.value = '';
		this.document.include_searchform.include_search_text.focus();
	}else{ 
		//dodacheck(this.document.include_searchform.include_search_text.value);
		this.document.include_searchform.action ="http://www.invil.com/servlet/village/catalprod/PpVillageSearchCatalogueSrv"
		this.document.include_searchform.submit();	
	}
}

var mikExp = /[$\\@\\\#%\^\&\*\(\)\[\]\+\<\>\_\{\}\'\~\=\|]/;
function dodacheck(strPass) {
		var strLength = strPass.length;
		var lchar = strPass.charAt((strLength) - 1);
		if(lchar.search(mikExp) != -1) {
			window.alert("´ÙÀ½°ú °°Àº Æ¯¼ö¹®ÀÚ´Â \n\r\n\r@ $ % ^ < > & * # ( ) [ ] \\ { + }  ` ~ =  | \n\r\n\rÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.\n");
			return false;
		}else{
			return true;
		}
}
//°ü¸®ÀÚ¿¡°Ô

