// JavaScript Document

function checkForm(form){
	var chekmail = /([0-9a-zA-Z\.-_]+)@([0-9a-zA-Z\.-_]+)/;

	var name, phone, email, comment, isOk = true;
	//var string;
	var message = "";
	
	message = "Please fill all the required fields marked with '*' ";
	
	name	= form.name.value;	
	email	= form.email.value;	
	//string	= form.string.value;

	if (name.length == 0){
		form.name.focus();
		isOk=false;
	}
	else if (email.length < 5){
		form.email.focus();
		isOk=false;
	}	
	else if (email.length >= 5 && email.match(chekmail) == null){
		message ="Incorrect email address;";
		form.email.focus();
	   	isOk=false;
	}
	//else if (string.length == 0){
	//	message = "Please fill anti-spam code";
	//	form.string.focus();
	//	isOk=false;
	//}

	if (!isOk){			   
	   	alert(message);
	   	return isOk;
	} else {
		return isOk;
	}
}


var RecaptchaOptions = {
    theme : 'clean'
};
