function ValidateDown(f)
{
        var myRegExp = / /g;
        var t = f.fname.value.replace(myRegExp,"");
	if (t.length == 0){
		window.alert("The First Name field is empty and must be filled in.");
                f.fname.focus();
		return false;
	}
	
	if (t.length < 2){
		window.alert("The First Name field must be a minimum of 2 characters. Please correct and reenter.");
                f.fname.focus();
		return false;
	}

        var t = f.lname.value.replace(myRegExp,"");
	if (t.length == 0){
		window.alert("The Last Name field is empty and must be filled in.");
		f.lname.focus();
		return false;
	}
	
	if (t.length < 2){
		window.alert("The Last Name field must be a minimum of 2 characters. Please correct and reenter.");
		f.lname.focus();
		return false;
	}
	
        var r = new RegExp("^[^@ ]+@[^@ .]+\.[^@ ]+$");
	if(r.test(f.email.value) == false){		
		window.alert("The format for E-mail address must be user@some.host");
		f.email.focus();
		return false;
	}

        var t = f.address.value.replace(myRegExp,"");
	if (t.length == 0){
		window.alert("The Address field is empty and must be filled in.");
		f.address.focus();
		return false;
	}

	if (t.length < 5){
		window.alert("The Address field must be a minimum of 5 characters. Please correct and reenter.");
		f.address.focus();
		return false;
	}

        var t = f.city.value.replace(myRegExp,"");
	if (t.length == 0){
		window.alert("The City field is empty and must be filled in.");
		f.city.focus();
		return false;
	}

	if (t.length < 3){
		window.alert("The City field must be a minimum of 3 characters. Please correct and reenter.");
		f.city.focus();
		return false;
	}

        var t = f.zip.value.replace(myRegExp,"");
	if (t.length == 0){
		window.alert("The Zip/Postal Code field is empty and must be filled in.");
		f.zip.focus();
		return false;
	}

	if (t.length < 5)
	{
           if(f.country.value == "United States") 
           { 
		window.alert("The Zip/Postal Code field must be a minimum of 5 characters. Please correct and reenter.");
		f.zip.focus();
		return false;
	   }
	}

	if (f.telephone.value.length == 0){
		window.alert("The Telephone field is empty and must be filled in.");
		f.telephone.focus();
		return false;
	}

        // Test telephone number to have at least 10 digits
        var i, j;
        for (i=0, j=0; i < f.telephone.value.length; i++)
        {
          if(f.telephone.value.charAt(i) >= '0' && f.telephone.value.charAt(i) <= '9')
             j++;              
        }

        if (j < 10)
        {
           if(f.country.value == "United States") { 
              alert("The telephone number must be at least 10 digits. Please correct and reenter."); 
              f.telephone.focus(); 
              return false; 
           }
        }

	if(f.comment.value.length > 255) 
	{
	   alert('Too much data in the Comment box! Please remove '+
                 (f.comment.value.length - 255) + ' characters.');
   	   return false; 
   	}

	return true;
}

