//
// SaddleSongs.com JavaScript - Form Validator
// Copyright (C) 2007. All Rights Reserved.
//
// Developer: Kevin M. Vess

function validateForm(frmContact) { 


   if (frmContact.first_name.value == "") { 
   alert("Please enter your 'Name'."); 
   frmContact.txtName.focus( ); 
   return false; 
   }
   if (frmContact.txtEmail.value == "") { 
   alert("Please enter your 'Email Address'."); 
   frmContact.txtEmail.focus( ); 
   return false; 
   }
   if (frmContact.company_name.value == "") { 
   alert("Please enter your 'Company Name'."); 
   frmContact.company_name.focus( ); 
   return false; 
   }
   if (frmContact.ddlCountry.value == "") { 
   alert("Please select your 'Country'."); 
   frmContact.ddlCountry.focus( ); 
   return false; 
   }
   if (frmContact.ddlCountry.value == "United States") { 
	   if (frmContact.ddlState.value == "") { 
	   alert("Please select your 'State'."); 
	   frmContact.ddlState.focus( ); 
	   return false; 
	   }
   }
   
}