function CheckInputValues( )
{
  var error_string = '';
  
  if (document.FORM1['select[Non-Drive End]'].value == '0')
    error_string = error_string + "You must specify the Non-Drive End.\n";

  if (document.FORM1['select[Motor Type]'].value == '0')
    error_string = error_string + "You must specify the Motor Type\n";
  
  if (document.FORM1['select[Winding]'].value == '0')
    error_string = error_string + "You must specify the Winding.\n";
 
  if (document.FORM1['select[Bearing]'].value == '0')
    error_string = error_string + "You must specify the Bearing.\n";
  
  if (document.FORM1['select[Drive End Shaft]'].value == '0')
    error_string = error_string + "You must specify the Drive End Shaft.\n";     
    
  if (document.FORM1['select[Non Drive End Shaft]'].value == '0')
    error_string = error_string + "You must specify the Non Drive End Shaft.\n";
    
  if (document.FORM1['select[Terminal Box]'].value == '0')
    error_string = error_string + "You must specify the Terminal Box.\n";
  
  if (document.FORM1['select[Mount Type]'].value == '0')
    error_string = error_string + "You must specify the Mount Type.\n";
  
  if (document.FORM1['select[Drive End Machining]'].value == '0')
    error_string = error_string + "You must specify the Drive End Machining.\n";
  
  if (!document.FORM1['Fname'].value.length)
    error_string = error_string + "You must specify your first name.\n";
  
  if (!document.FORM1['Lname'].value.length)
    error_string = error_string + "You must specify your last name.\n";
  
  if (!document.FORM1['Phone'].value.length)
    error_string = error_string + "You must specify your phone number.\n";
    
  if (!document.FORM1['Email'].value.length)
    error_string = error_string + "You must specify your email address.\n";
        
  if(error_string.length)
  {
    error_string = "Error processing form.\n\n" + error_string;
    alert(error_string);
    return false;
  }
  
  return true;
}

function CustomMotor()
{
	if(!CheckInputValues())
		return false;
	
	document.FORM1.submit();

	return true;
}