function validatePartner() {
  if (document.partner_form.Company_Name.value == "")
  {
    alert("Please enter a value for the \"Company Name\" field.");
    document.partner_form.Company_Name.focus();    
    return (false);
  }

  if (document.partner_form.Contact_Name.value == "")
  {
    alert("Please enter a value for the \"Contact Name\" field.");
    document.partner_form.Contact_Name.focus();
    return (false);
  }

  if (document.partner_form.Address_1.value == "")
  {
    alert("Please enter a value for the \"Address Line 1\" field.");
    document.partner_form.Address_1.focus();
    return (false);
  }

  if (document.partner_form.City.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    document.partner_form.City.focus();
    return (false);
  }

  if (document.partner_form.State.value == "")
  {
    alert("Please enter a value for the \"State or Province\" field.");
    document.partner_form.State.focus();
    return (false);
  }

  if (document.partner_form.Zip.value == "")
  {
    alert("Please enter a value for the \"Zip or Postal code\" field.");
    document.partner_form.Zip.focus();
    return (false);
  }

  if (document.partner_form.Country.value == "")
  {
    alert("Please enter a value for the \"Country\" field.");
    document.partner_form.Country.focus();
    return (false);
  }
    
    
    // Concatenate the phone and extension fields
	document.partner_form.phone.value = document.partner_form.phonenumber.value + " Ext: " + document.partner_form.ext.value;
        
    if (document.partner_form.phonenumber.value=="") {
	    alert('Please enter your phone number and extension (if applicable).');
	    document.partner_form.phonenumber.focus();
	    return false;
    } else {
	    if (checkValidPhone(document.partner_form.phone.value) == false) {
		    alert("Please enter a valid phone number and extension (if applicable).");
		    document.partner_form.phonenumber.select();
		    document.partner_form.phonenumber.focus();
		    return false;
	    }
    }   

    if (document.partner_form.Email.value !="") {
	    var email=document.partner_form.Email.value;
	    if (email.indexOf(' ')==-1 && 0<email.indexOf('@') && email.indexOf('@')+3 < email.length && 0<email.indexOf('.') && email.indexOf('.')+1 < email.length) {
		    //Check for web-based emails
		    if (checkValidEmail(email) > 0) {
			    alert('You have entered an invalid email address!  Please use your work email address and use valid characters.');
			    document.partner_form.Email.select();
			    document.partner_form.Email.focus();
			    return false;
		    }
	    } else {
		    alert ('You have entered an invalid email address!')
		    document.partner_form.Email.focus();
		    return false;
	    }
    } else {
	    alert("Please enter an email address");
	    document.partner_form.Email.focus();
	    return false;
    }   
    
  $('input[type=submit]').attr('disabled', 'disabled');
  
  return (true);
}

