<!--
function  checkOnlineRFP(_CF_this)
{
	//reset on submit
	_CF_error_exists = false;
	_CF_error_messages = new Array();
	_CF_error_fields = new Object();
	_CF_FirstErrorField = null;

	//form element fname required check
	if( !_CF_hasValue(_CF_this['fname'], "TEXT", false ) )
	{
		_CF_onError(_CF_this, "fname", _CF_this['fname'].value, "You must enter your first name");
		_CF_this['fname'].style.borderColor = 'red'
		_CF_error_exists = true;
	}

	//form element lname required check
	if( !_CF_hasValue(_CF_this['lname'], "TEXT", false ) )
	{
		_CF_onError(_CF_this, "lname", _CF_this['lname'].value, "You must enter your last name");
		_CF_this['lname'].style.borderColor = 'red'
		_CF_error_exists = true;
	}

	//form element zip 'ZIPCODE' validation checks
	if (!_CF_checkzip(_CF_this['zip'].value, false))
	{
		_CF_onError(_CF_this, "zip", _CF_this['zip'].value, "You must enter a valid zip/postal code");
		_CF_this['zip'].style.borderColor = 'red'
		_CF_error_exists = true;
	}

	//form element phone 'TELEPHONE' validation checks
	if (!_CF_checkphone(_CF_this['phone'].value, false))
	{
		_CF_onError(_CF_this, "phone", _CF_this['phone'].value, "You must enter a valid phone number");
		_CF_this['phone'].style.borderColor = 'red'
		_CF_error_exists = true;
	}

	//form element fax 'TELEPHONE' validation checks
	if (!_CF_checkphone(_CF_this['fax'].value, false))
	{
		_CF_onError(_CF_this, "fax", _CF_this['fax'].value, "You muset enter a valide fax number");
		_CF_this['fax'].style.borderColor = 'red'
		_CF_error_exists = true;
	}

	//form element email required check
	if( _CF_hasValue(_CF_this['email'], "TEXT", false ) )
	{
		//form element email 'EMAIL' validation checks
		if (!_CF_checkEmail(_CF_this['email'].value, true))
		{
			_CF_onError(_CF_this, "email", _CF_this['email'].value, "You Must enter a valid email address");
			_CF_this['email'].style.borderColor = 'red'
			_CF_error_exists = true;
		}

	}else {
		_CF_onError(_CF_this, "email", _CF_this['email'].value, "You Must enter a valid email address");
		_CF_this['email'].style.borderColor = 'red'
		_CF_error_exists = true;
	}

	//form element pref_from required check
	if( !_CF_hasValue(_CF_this['pref_from'], "TEXT", false ) )
	{
		_CF_onError(_CF_this, "pref_from", _CF_this['pref_from'].value, "You must enter your preferred meeting dates");
		_CF_this['pref_from'].style.borderColor = 'red'
		_CF_error_exists = true;
	}

	//form element pref_to required check
	if( !_CF_hasValue(_CF_this['pref_to'], "TEXT", false ) )
	{
		_CF_onError(_CF_this, "pref_to", _CF_this['pref_to'].value, "You must enter your preferred meeting dates");
		_CF_this['pref_to'].style.borderColor = 'red'
		_CF_error_exists = true;
	}
	
	//form element pref_to required check
	if( !_CF_hasValue(_CF_this['total_attend'], "TEXT", false ) )
	{
		_CF_onError(_CF_this, "total_attend", _CF_this['total_attend'].value, "You must enter your total attendance");
		_CF_this['total_attend'].style.borderColor = 'red'
		_CF_error_exists = true;
	}
	
	//form element pref_to required check
	if( !_CF_hasValue(_CF_this['total_rooms'], "TEXT", false ) )
	{
		_CF_onError(_CF_this, "total_rooms", _CF_this['total_rooms'].value, "You must enter your total rooms");
		_CF_this['total_rooms'].style.borderColor = 'red'
		_CF_error_exists = true;
	}
	


	//display error messages and return success
	if( _CF_error_exists )
	{
		if( _CF_error_messages.length > 0 )
		{
			// show alert() message
			_CF_onErrorAlert(_CF_error_messages);
			// set focus to first form error, if the field supports js focus().
			if( _CF_this[_CF_FirstErrorField].type == "text" )
			{ _CF_this[_CF_FirstErrorField].focus(); }

		}
		return false;
	}else {
		return true;
	}
}
//-->