function check_formcontact(f){	
//email
	var regex = /^(([\-\w]+)\.?)+@(([\-\w]+)\.?)+\.[a-zA-Z]{2,4}$/;
	if(f.cs_email.value=="" || f.cs_email.value==null || f.cs_email.value=="Email"){
		window.alert(T_EMAIL_REQUIRED);
		f.cs_email.focus();
		return false;
	}
	if (!regex.test(f.cs_email.value)){
		window.alert(T_EMAIL_TYPE);
		f.cs_email.focus();
		return false;
	}
	//name
	if(f.cs_name.value=="" || f.cs_name.value==null || f.cs_name.value=="Name"){
		window.alert(T_NAME_REQUIRED);
		f.cs_name.focus();
		return false;
	}
	if (isNaN(f.cs_name.value)==false){
		window.alert(T_NAME_TYPE);
		f.cs_name.focus();
		return false;
	}
//comment
	if(f.cs_content.value=="" || f.cs_content.value==null){
		window.alert(T_CONTENT_REQUIRED);
		f.cs_content.focus();
		return false;
	}
	return true;
}

function checkSearch(f){
	if(f.keyword.value=="" || f.keyword.value==null){
		window.alert(T_KEYWORD_REQUIRED);
		f.keyword.focus();
		return false;
	}
	return true;
}
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

