function checkform() {
	var email=document.getElementById('email');
    var reg = new RegExp("[0-9a-zA-Z_]+@[\-0-9a-zA-Z_^.]+\\.[a-z]{2,3}", 'i');
    if (!reg.test(email.value)) {
        email.style.backgroundColor="#2B3571";
        alert('Wrong E-mail '+email.value+' !');
        email.focus();
        return false;
    }	
	var name = document.getElementById('name').value;
	if ( name.length < 3 )	{
        alert('Wrong name - too short');
        document.getElementById('name').focus();
        document.getElementById('name').style.backgroundColor="#2B3571";
        return false;
	}
	return true;
}
