// send preview of submitted data to next page
   function ff_previewnext_action(element, action)
   {

// validate current page before preview
   var error = ff_validation(ff_currentpage);
   if (error != '') {
      alert(error);
      ff_validationFocus();
      return;
   } // if

//get user input values from form fields
   var terms   = ff_getElementByName('terms').value;
   var name    = ff_getElementByName('name').value;
   var email   = ff_getElementByName('email').value;
   var addy    = ff_getElementByName('addy').value;
   var zipco   = ff_getElementByName('zipco').value;
   var count   = ff_getElementByName('count').value;
   var phday   = ff_getElementByName('phday').value;
   var phnite  = ff_getElementByName('phnite').value;
   var phcell  = ff_getElementByName('phcell').value;
   var phfax   = ff_getElementByName('phfax').value;
   var altcon  = ff_getElementByName('altcon').value;
   var arrive  = ff_getElementByName('StartDate').value;
   var depart  = ff_getElementByName('EndDate').value;
   var adult   = ff_getElementByName('numadult').value;
   var child   = ff_getElementByName('numchild').value;
   var needs   = ff_getElementByName('needs').value;
   var paymnt  = ff_getElementByName('selectpay').value;

// write to static text element on next page
    var summary = ff_getDivByName('summary');
    	summary.innerHTML = '<table width="520" height="340" border="0" cellspacing="0" cellpadding="0" style="margin:0px;">'+
		'<tr valign="top"><td height="25" width="50%" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Name:</b>&nbsp;&nbsp;'+name+'</td>'+
		'<td height="25" width="50%" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Email:</b>&nbsp;&nbsp;'+email+'</td></tr>'+
		'<tr valign="top"><td height="40" colspan="2" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Address:</b>&nbsp;&nbsp;'+addy+'</td></tr>'+
		'<tr valign="top"><td height="25" width="50%" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Postal Code:</b>&nbsp;&nbsp;'+zipco+'</td>'+
		'<td height="25" width="50%" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Country:</b>&nbsp;&nbsp;'+count+'</td></tr>'+
		'<tr valign="top"><td height="25" width="50%" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Day phone:</b>&nbsp;&nbsp;'+phday+'</td>'+
		'<td height="25" width="50%" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Night phone:</b>&nbsp;&nbsp;'+phnite+'</td></tr>'+
		'<tr valign="top"><td height="25" width="50%" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Cell phone:</b>&nbsp;&nbsp;'+phcell+'</td>'+
		'<td height="25" width="50%" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Fax number:</b>&nbsp;&nbsp;'+phfax+'</td></tr>'+
		'<tr valign="top"><td height="40" colspan="2" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Alternative contact:</b>&nbsp;&nbsp;'+altcon+'</td></tr>'+
		'<tr valign="top"><td height="25" width="50%" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Arrive:</b>&nbsp;&nbsp;'+arrive+'</td>'+
		'<td height="25" width="50%" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Depart:</b>&nbsp;&nbsp;'+depart+'</td></tr>'+
		'<tr valign="top"><td height="25" width="50%" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Number of adults:</b>&nbsp;&nbsp;'+adult+'</td>'+
		'<td height="25" width="50%" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Number of children:</b>&nbsp;&nbsp;'+child+'</td></tr>'+
		'<tr valign="top"><td height="25" colspan="2" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Payment method:</b>&nbsp;&nbsp;'+paymnt+'</td></tr>'+
		'<tr valign="top"><td height="70" colspan="2" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>Special requirements:</b>&nbsp;&nbsp;'+needs+'</td></tr>'+
		'<tr valign="top"><td height="15" colspan="2" style="font-size:11px; line-height:15px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"><b>I understand and agree to your Terms & Conditions:</b>&nbsp;&nbsp;'+terms+'</td></tr>'+
		'</table>';

// switch to next page
   ff_nextpage();
} // ff_previewnext_action