function validatePortfolioSalesForceForm(f){

	f.first_name.value = f.first_name.value.replace(/^\s+|\s+$/g, '');
	f.last_name.value = f.last_name.value.replace(/^\s+|\s+$/g, '');
	f.email.value = f.email.value.replace(/^\s+|\s+$/g, '');
	f.company.value = f.company.value.replace(/^\s+|\s+$/g, '');
	f.phone.value = f.phone.value.replace(/^\s+|\s+$/g, '');
	f.city.value = f.city.value.replace(/^\s+|\s+$/g, '');
	f['00N60000001O90m'].value = f['00N60000001O90m'].value.replace(/^\s+|\s+$/g, '');
	f.zip.value = f.zip.value.replace(/^\s+|\s+$/g, '');
	f.country.value = f.country.value.replace(/^\s+|\s+$/g, '');



//	alert(f.first_name.value);
//	alert(f.email.value);
//	alert(f.last_name.value);


	var emailRE = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;


	if ( (f.first_name.value.length==0) || (f.first_name.value.length==null) )
	{
		alert("Please populate the First Name field.");
		return false;
	}
	if ( (f.last_name.value.length==0) || (f.last_name.value.length==null) )
	{
		alert("Please populate the Last Name field.");
		return false;
	}
	if (!emailRE.test(f.email.value))
	{
		alert("Please correct the email address.");
		return false;
	}
	if ( (f.company.value.length==0) || (f.company.value.length==null) )
	{
		alert("Please populate the Company field.");
		return false;
	}
	if ( (f.phone.value.length==0) || (f.phone.value.length==null) )
	{
		alert("Please populate the Telephone field.");
		return false;
	}
	if ( (f.city.value.length==0) || (f.city.value.length==null) )
	{
		alert("Please populate the City field.");
		return false;
	}
	if ( (f['00N60000001O90m'].value.length==0) || (f['00N60000001O90m'].value.length==null) )
	{
		alert("Please populate the State field.");
		return false;
	}
	if ( (f.zip.value.length==0) || (f.zip.value.length==null) )
	{
		alert("Please populate the Zip field.");
		return false;
	}
	if ( (f.country.value.length==0) || (f.country.value.length==null) )
	{
		alert("Please populate the Country field.");
		return false;
	}


	return true;
}
