function validateTracking() {
	
	var loForm = document.forms['form2'] ;
	var lcTracking = trim(loForm.tracking_id.value) ;
	
	if(lcTracking.length < 6)
		return(setError('I\'m sorry, the tracking ID must be atleast six digits.', loForm.tracking_id)) ;
	
	var lnTracking = parseInt(lcTracking) ;
	
	if(lnTracking.toString() == 'NaN' || lnTracking < 100000)
		return(setError('I\'m sorry, that isn\'t a valid tracking ID.', loForm.tracking_id)) ;
	
	if(lnTracking < 100000)
		return(setError('I\'m sorry, that isn\'t a valid tracking ID.', loForm.tracking_id)) ;
	
	loForm.tracking_id.value = lnTracking.toString() ;
	
	return(true) ;
	
}

function validateConsumer() {
	
	var loForm = document.forms['form1'] ;
	
	if(!trim(loForm.last_name.value) && !trim(loForm.company.value))
		return(setError('You must fill in a last name or company name to continue.', loForm.last_name)) ;
	
	if(!trim(loForm.address.value))
		return(setError('You must fill in a street number in order to continue.', loForm.address)) ;
	
	if(!trim(loForm.zip.value))
		return(setError('You must fill in a zip/postal code in order to continue.', loForm.zip)) ;
	
	return(true) ;
	
}