$(function() {
	$('#laheta_button').hover(function() {
		$('#laheta_button').attr("src", "images/laheta_button_hoover.jpg");
	}, function() {
		$('#laheta_button').attr("src", "images/laheta_button.jpg");
	});
});

function checkform() {
    var ok = true;
    $('.required').each(function() {
        $(this).parent().css("borderLeft", "none");
        if ($(this).val() == "" || ($(this).attr("name")=="email" && !IsEmail($(this).val()))) {
            $(this).css("backgroundColor", "#ED270A");
            ok = false;
        } else {
            $(this).css("backgroundColor", "#fff");
        }
    });
    return ok;
}

function IsEmail(email) {
    var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    return regex.test(email);
}
