// JavaScript Document
function makeMenu(){
	var locat=location.pathname.split("/");
	
	var pageName = locat[locat.length-1];
	var fileName = (pageName.split(".")[0]).substr(0,6);
	
	if(fileName != 'index'){
			document.getElementById(fileName).src='img/'+fileName+'01.gif';
	}
}
	function checkMail(mail){
		var er = new RegExp(/^[A-Za-z0-9_\-\.]+@[A-Za-z0-9_\-\.]{2,}\.[A-Za-z0-9]{2,}(\.[A-Za-z0-9])?/);
		if(typeof(mail) == "string"){
			if(er.test(mail)){ return true; }
		}else if(typeof(mail) == "object"){
			if(er.test(mail.value)){ 
						return true; 
					}
		}else{
			return false;
			}
	}
