function nameBlur(obj_id, t_string){
	var obj;
	obj = window.document.getElementById(obj_id);
	if(obj.value ==""){
		obj.value = t_string;	
	}
}
function nameFocus(obj_id, t_string){
	var obj;
	obj = window.document.getElementById(obj_id);
	if(obj.value == t_string){
		obj.value = "";	
	}
}
function check_empty(obj_id){
	var obj;
	obj = window.document.getElementById(obj_id);
	if(obj.value == ""){
		return false;	
	}else{
		return true;	
	}
}
function validate_email($email) {
	//Validates a correctly formatted email address
    var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    if (!filter.test($email)) {
    	// failed validation do what you want here 
		return false;
    }else{
		return true;	
	}
}
function checkEmail(obj_id){
	var email_ok;	
	var obj;
	obj = window.document.getElementById(obj_id);
	email_ok = validate_email(obj.value);
	return email_ok;
}
function check_mail_list_submit(){
	var email_ok;
	//var error_msg;
	email_ok = checkEmail("E-mail");	
	if(email_ok){		
		return true;
		document.getElementById("email_error").style.display="none";
	}else{		
		document.getElementById("email_error").style.display="block";
		return false;
	}
}