// JavaScript Document

// JavaScript Document
   function check()
      {
		  if(!is_country())
		  {
			  alert("Pls give you country!");
			  return false;
			  }
		   
		   if(!is_name())
		  {
			  alert("Pls give you name!");
			  return false;
			  }
			  
			    if(!is_str())
		  {
			  alert("Pls give you street!");
			  return false;
			  }
			      if(!is_city())
		  {
			  alert("Pls give you city!");
			  return false;
			  }
		   
		   	      if(!is_county())
		  {
			  alert("Pls give you county!");
			  return false;
			  }
			  
			    	      if(!is_zip())
		  {
			  alert("Pls give you zip code!");
			  return false;
			  }
			    	      if(!is_mail())
		  {
			  alert("Pls give you email adress!");
			  return false;
			  }
			    	      if(!check_email())
		  {
			  alert("Pls check you email adress!");
			  return false;
			  }
			  
		
    return true;
    }



function is_country()
{
	
	if(window.document.formpay.customer_country.value =="")   
			   {
			                 return false;
               }
	return true;
	}

function is_name()
   {
	
	if(window.document.formpay.customer_name.value =="")   
			   {
			                 return false;
               }
	return true;
	
	}
	
	
function is_str()
{
	
	if(window.document.formpay.customer_str.value =="")   
			   {
			                 return false;
               }
	return true;
	
	}
	
	function is_city()
{
	
	if(window.document.formpay.customer_city.value =="")   
			   {
			                 return false;
               }
	return true;
	
	}
	
	
function is_county()
{
	
	if(window.document.formpay.customer_county.value =="")   
			   {
			                 return false;
               }
	return true;
	
	}
	
function is_zip()
{
	
	if(window.document.formpay.zip_code.value =="")   
			   {
			                 return false;
               }
	return true;
	
	}
	
function is_mail()
{
	
	if(window.document.formpay.customer_mail.value =="")   
			   {
			                 return false;
               }
	return true;
	
	}
	
	
	
	
function check_email() {
	
if (window.document.formpay.customer_mail.value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
{return true;}
else
{return false;}
}