// Contact form validation

function everything(form) 
  {
    isName(form)
    allblanks(form)
  }
  
function allblanks(form) 
  {
    if(isName(form) )
      {
        form.submit()
      }
    if(isName(form) == false ) 
      {
        compose(form)
      }
  }

function compose(form) 
  {
    var text = "Please check that you filled the following required field(s) in correctly:"	
    if(isName(form) == false) 
	  {
        text += "\nPlease select a location for self pickup"
      }
   
    alert(text)
  }

function isName(form) 
  {
    if (form.sp_location.value == "") 
      {
        return false
      }
    else 
    {
      return true
    }
  }


  

