// JavaScript Document
function check()
{
		if(document.ade.item_name.value =="")
		{
			alert("Enter the item name!");
			document.ade.item_name.focus();
			return false;
		}
		
		if(document.ade.item_number.value =="")
		{
			alert("Enter the item number!");
			document.ade.item_number.focus();
			return false;
		}
		
		if(document.ade.amount.value=="")
		{
		alert("Enter the amount!");
			document.ade.amount.focus();
			return false;
		}
		var a=document.ade.amount.value;
		if(isNaN(a))
		{
			alert("Enter the  amount in number!");
			document.ade.amount.focus();
			document.ade.amount.select();
			return false;
		}
		
		if(document.ade.first_name.value =="")
		{
			alert("Enter the first name!");
			document.ade.first_name.focus();
			return false;
		}
		
		if(document.ade.address1.value =="")
		{
			alert("Enter the address !");
			document.ade.address1.focus();
			return false;
		}
		
		if(document.ade.city.value =="")
		{
			alert("Enter the city name!");
			document.ade.city.focus();
			return false;
		}
		
		if(document.ade.state.value =="")
		{
			alert("Enter the state name!");
			document.ade.state.focus();
			return false;
		}
		
		if(document.ade.zip.value=="")
		{
		alert("Enter the zip code!");
			document.ade.zip.focus();
			return false;
		}
		var a=document.ade.zip.value;
		if(isNaN(a))
		{
			alert("Enter the valid zip code!");
			document.ade.zip.focus();
			document.ade.zip.select();
			return false;
		}
		
		if(document.ade.night_phone_a.value=="")
		{
		alert("Enter the mobile number!");
			document.ade.night_phone_a.focus();
			return false;
		}
		var a=document.ade.night_phone_a.value;
		if(isNaN(a))
		{
			alert("Enter the valid mobile number!");
			document.ade.night_phone_a.focus();
			document.ade.night_phone_a.select();
			return false;
		}
		else
		{
		return true;
		
		}

}