function isEmail(str){
	var re = /^[^\s()<>@,;:\/]+@\w[\w\.-]+\.[a-z]{2,}$/i;
	return re.test(str);
}

function send_mail(){

    var opt = {
        // Use POST
        method: 'post',
        // Send this lovely data
        postBody: $('form1').serialize(),
    onSuccess: function(t) {
        alert(t.responseText);
    },        
        // Handle 404
        on404: function(t) {
            alert('Error 404: location "' + t.statusText + '" was not found.');
        },
        // Handle other errors
        onFailure: function(t) {
            alert('Error ' + t.status + ' -- ' + t.statusText);
        }
    };


    
    //new Ajax.Request('send_mail.jsp', opt); 
    var check = validateForm();
    if( check==''){
        //new Ajax.Updater('formCnt', 'http://62.110.76.243/gallolegnami/send_mail.jsp', opt);
		$('form1').submit();
    }else(alert(check))
}
