
function checkform ( form )
{
  // ** START **
  if (form.Winery.value == "") {
    alert( "Please fill in the Winery field." );
    form.Winery.focus();
    return false ;
  }
	  if (form.First_Name.value == "") {
    alert( "Please fill in the Contact First Name field." );
    form.First_Name.focus();
    return false ;
  }
	 if (form.Title.value == "") {
    alert( "Please fill in the Title field." );
    form.Title.focus();
    return false ;
  }
if (form.Phone.value == "") {
    alert( "Please fill in the Phone field." );
    form.Phone.focus();
    return false ;
  }
 
  
	 if (form.Producer_One.value == "") {
    alert( "Please fill in the Producer field." );
    form.Producer_One.focus();
    return false ;
  }
	 if (form.Label_One.value == "") {
    alert( "Please fill in the Name of wine as it appears on label field." );
    form.Label_One.focus();
    return false ;
  }
	 if (form.Varietal_One.value == "") {
    alert( "Please fill in the Varietal field." );
    form.Varietal_One.focus();
    return false ;
  }
	 if (form.Appellation_One.value == "") {
    alert( "Please fill in the Appellation field." );
    form.Appellation_One.focus();
    return false ;
  }
	  //Vintage
    if (form.Vintage_One.value == "nv") {
     form.Vintage_One.value ="nv";
										}
else if (form.Vintage_One.value != "nv")  {
 //Vintage
   var VintageFilter=/^\d{4}$/;	
	if( !(VintageFilter.test(form.Vintage_One.value)) ) { 
         alert( "Vintage field must contain 4 digits or  lower case nv if non vintage." );
												 form.Vintage_One.focus();
      return false ;
		}
} 	


//Cases Produced
    if (form.Cases_Produced_One.value == "na") {
     form.Cases_Produced_One.value ="na";
										}
else if (form.Cases_Produced_One.value != "na")  {
 //Vintage
   var VintageFilter=/^\d{0,12}$/;	
	if( !(VintageFilter.test(form.Cases_Produced_One.value)) ) { 
         alert( "Cases Produced field must contain only digits (with no commas) or lower case na if not available." );
												 form.Cases_Produced_One.focus();
      return false ;
		}
} 	
	
		 if (form.Cases_Produced_One.value == "") {
    alert( "Please fill in the Cases Produced field." );
    form.Cases_Produced_One.focus();
    return false ;
  }
	
	
 var DateFilter=/^\d{1,3}[.]\d{2}$/;
  	  
	 if (!(DateFilter.test(form.Price_One.value)))
	  {
		 alert( "Please fill in the Retail Price field in this format: xxx.xx or xx.xx (with no $ sign symbol)" );
		 form.Price_One.focus();
     return false ;
	  }
 
 
  // ** END **
  return true ;
}
