<!-- Hide from old browsers
// This script is Copyright 2001 SBA Design (http://www.sbadesign.com).
// Use and distribution of this program without SBA Design's prior
// written permission is strictly forbidden.

// This script will check that required form fields are filled out properly

// Check for empty required fields
function checkforblanks(){
   for (var i = 0; i < arguments.length; i += 2){
      if (!arguments[i].value){
         alert("Please enter " + arguments[i+1] + ".");
         arguments[i].focus();
         return false;
      }
   }
   return true;
}

function validate(){
   // Make sure none of the required fields are empty
   if ((!checkforblanks(document.register_form.name, "Agent Name",
       document.register_form.person_submiting_info, "Person submitting this info",
       document.register_form.member_last, "Member Name Last",
       document.register_form.member_first, "Member Name First",
       document.register_form.origin_csc, "Origin City, State, Country",
       document.register_form.code_service, "Code of Service",
       document.register_form.estimated_weight, "Estimated Weight",
       document.register_form.pickup_date, "Pickup Date",
       document.register_form.dest_csc, "Destination City, State, Country"))){
          return false;
   }
   return true;
}

// End hiding from old browsers -->