
	//validation for city
	function check_city() {
	
	var y =document.getElementById('city_c');

		if(y.value == 'City')
		{
		 alert("Please enter a City name.");
		 y.focus();
		 return false;
		}
		if(y.value.length < 1)
		 {
		 alert("Please enter a City name.");
		 y.focus();
		 return false;
		 }

	}
	
	//validation for zip
	function checkzip() {
	
	var z =document.getElementById('zip');
	
			if (z.value == 'Zip Code') 
			{
			alert("Please enter a 5 digit zip code.");
			z.focus();
			return false;
			}
		if(z.value.length < 1)
		 {
		 alert("Please enter a 5 digit zip code.");
		 x.focus();
		 return false;
		 }

	var y =document.getElementById('radius');
	
		 if(y.value.length < 1)
		 {
		 alert("Please enter a Radius.");
		 y.focus();
		 return false;
		 }		 		
	}
	
		//validation for city
	function check_name() {
	
	var y =document.getElementById('last_name');

		if(y.value == 'Last Name')
		{
		 alert("Please enter a Last Name.");
		 y.focus();
		 return false;
		}
		if(y.value.length < 1)
		 {
		 alert("Please enter a Last Name.");
		 y.focus();
		 return false;
		 }

	}
	
	//validation for Country
	function check_country() {
	

	var co =document.getElementById('countryc');
	var st =document.getElementById('cityc');
	var na =document.getElementById('namec');
	
	 if(co.value == '')
		{		 
		alert("Please enter a Country name.");
		 co.focus();
		 return false;
		}
		 if(co.value == 'USA')
		 {
			 if((st.value == 'City')&&(na.value == 'Last Name'))
			{		 
			alert("Please enter a Last name or a City.");
			 //co.focus();
			 return false;
			}
		 }
		if(st.value == 'City')
			{
			ClearField(st);
			}
		if(na.value == 'Last Name')
			{
			ClearField(na);
			}
	}
