
  
function is_number(str)
{
	exp=/[^0-9()-]/g;
	if(str.search(exp) != -1)
	{
		return false;
	}
	return true;
}
function is_email(str)
{ if((str.indexOf("@")==-1)||(str.indexOf(".")==-1))
{
	
	return false;
	}
	return true;
}

function CheckInput(){

	if(document.getElementById("name1").value == ""){
		alert("Дополнить Ваше имя,пожалуйста!");
		document.getElementById("name1").focus();
		return false;
	}


	if( document.getElementById("email1").value =="") {
alert("Дополнить Вашу почту(e-mail),пожалуйста!")
		document.getElementById("email1").focus();
return false;
}

	if(!is_email(document.getElementById("email1").value))
	{ 	alert("Не правильно дополнить почту(e-mail)!");
		document.getElementById("email1").focus();
		return false;
	}
 if(document.getElementById("country1").value==""){
		alert("Дополнить Ваш страна,пожалуйста!");
		document.getElementById("country1").focus();
		return false;
	}
	
	if(document.getElementById("content1").value==""){
		alert("Дополнить Ваше сообщение,пожалуйста!");
		document.getElementById("content1").focus();
		return false;
	}
	

	return true;
}
