function removeText(id) {document.getElementById(id).value="";}



var aIds = Array( 'pg_e02c2c86fd' );
function ChangePage( to_hide, to_show )
{
   var tbl_hide = document.getElementById( aIds[to_hide] );
   var tbl_show = document.getElementById( aIds[to_show] );

   if ( typeof(tbl_hide)=='object' && tbl_hide!=null )
    if ( typeof(tbl_show)=='object' && tbl_show!=null )
    {
       tbl_hide.style.display = 'none';
       tbl_show.style.display = '';
    }
}
function NotEmpty( old_res, id, field_title )
{
   if ( old_res==0 )
   {
      var el = document.getElementById( id );
      if ( typeof(el)=='object' && el!=null )
        if ( el.value=='' )
        {
           alert( 'You should fill "' + field_title + '"' );
           return 1;
        }
   }
   return 0;
}
function Email( old_res, id, field_title )
{ // test
   if ( old_res==0 )
   {
      var el = document.getElementById( id );
      if ( typeof(el)=='object' && el!=null )
      {
         var re = /^[a-zA-Z0-9_\.\-]+@([a-zA-Z0-9][a-zA-Z0-9-]+\.)+[a-zA-Z]{2,4}$/;

         if (el.value.search(re) != -1 )  return 0;
         else
         {
            alert( '"'+field_title+'" must be email' );
            return 1;
         }
      }
   }
   return 0;
}


function CheckPagee02c2c86fd()
{
   var nResult = 0;
   nResult += NotEmpty( nResult, 'fld_24c658e21d','First Name' );
   nResult += NotEmpty( nResult, 'fld_72666a934f','Last Name' );
   nResult += Email( nResult, 'fld_f8c8bbd270','Email Address' );
   nResult += NotEmpty( nResult, 'fld_fe04171e3a','Subject' );
   nResult += NotEmpty( nResult, 'fld_ea6163269f','Message' );

   if ( nResult == 0 )
   {
      if (1)
      {
         var el = document.getElementById( 'frm_42be80abef' );
         if ( typeof(el)=='object' && el != null ) el.submit();
      }
      else ChangePage( 0, 1 );
   }
}

var aIds = Array( 'pg_2631f52bc9' );
function ChangePage( to_hide, to_show )
{
   var tbl_hide = document.getElementById( aIds[to_hide] );
   var tbl_show = document.getElementById( aIds[to_show] );

   if ( typeof(tbl_hide)=='object' && tbl_hide!=null )
    if ( typeof(tbl_show)=='object' && tbl_show!=null )
    {
       tbl_hide.style.display = 'none';
       tbl_show.style.display = '';
    }
}
function NotEmpty( old_res, id, field_title )
{
   if ( old_res==0 )
   {
      var el = document.getElementById( id );
      if ( typeof(el)=='object' && el!=null )
        if ( el.value=='' )
        {
           alert( 'You should fill "' + field_title + '"' );
           return 1;
        }
   }
   return 0;
}
function Email( old_res, id, field_title )
{ // test
   if ( old_res==0 )
   {
      var el = document.getElementById( id );
      if ( typeof(el)=='object' && el!=null )
      {
         var re = /^[a-zA-Z0-9_\.\-]+@([a-zA-Z0-9][a-zA-Z0-9-]+\.)+[a-zA-Z]{2,4}$/;

         if (el.value.search(re) != -1 )  return 0;
         else
         {
            alert( '"'+field_title+'" must be email' );
            return 1;
         }
      }
   }
   return 0;
}


function CheckPage2631f52bc9()
{
   var nResult = 0;
   nResult += NotEmpty( nResult, 'fld_44911ad59b','First Name' );
   nResult += NotEmpty( nResult, 'fld_f6d06d0dd9','Last Name' );
   nResult += Email( nResult, 'fld_aeb667bddd','Email Address' );
   nResult += NotEmpty( nResult, 'fld_d14ca056c2','Telephone Number' );
   nResult += NotEmpty( nResult, 'fld_fcae6e478c','Intended date of travel' );
   nResult += NotEmpty( nResult, 'fld_8f03cb570d','Ports / Locations (from and to)' );
   nResult += NotEmpty( nResult, 'fld_96222bdc6e','Grade of cabin required' );
   nResult += NotEmpty( nResult, 'fld_920d3b4509','How many people?' );

   if ( nResult == 0 )
   {
      if (1)
      {
         var el = document.getElementById( 'frm_ba72abced0' );
         if ( typeof(el)=='object' && el != null ) el.submit();
      }
      else ChangePage( 0, 1 );
   }
}

function CheckPage801e316097()
{
   var nResult = 0;
   nResult += NotEmpty( nResult, 'fld_3336ce928f','First Name' );
   nResult += NotEmpty( nResult, 'fld_348b734d28','Last Name' );
   nResult += Email( nResult, 'fld_591c5cde4c','Email' );
   nResult += NotEmpty( nResult, 'fld_462fe02e5e','Address & Postcode' );

   if ( nResult == 0 )
   {
      if (1)
      {
         var el = document.getElementById( 'frm_63681eef6d' );
         if ( typeof(el)=='object' && el != null ) el.submit();
      }
      else ChangePage( 0, 1 );
   }
}

var aIds = Array( 'pg_801e316097' );
function ChangePage( to_hide, to_show )
{
   var tbl_hide = document.getElementById( aIds[to_hide] );
   var tbl_show = document.getElementById( aIds[to_show] );

   if ( typeof(tbl_hide)=='object' && tbl_hide!=null )
    if ( typeof(tbl_show)=='object' && tbl_show!=null )
    {
       tbl_hide.style.display = 'none';
       tbl_show.style.display = '';
    }
}
function NotEmpty( old_res, id, field_title )
{
   if ( old_res==0 )
   {
      var el = document.getElementById( id );
      if ( typeof(el)=='object' && el!=null )
        if ( el.value=='' )
        {
           alert( 'You should fill "' + field_title + '"' );
           return 1;
        }
   }
   return 0;
}
function Email( old_res, id, field_title )
{ // test
   if ( old_res==0 )
   {
      var el = document.getElementById( id );
      if ( typeof(el)=='object' && el!=null )
      {
         var re = /^[a-zA-Z0-9_\.\-]+@([a-zA-Z0-9][a-zA-Z0-9-]+\.)+[a-zA-Z]{2,4}$/;

         if (el.value.search(re) != -1 )  return 0;
         else
         {
            alert( '"'+field_title+'" must be email' );
            return 1;
         }
      }
   }
   return 0;
}

var aIds = Array( 'pg_e02c2c86fd' );
function ChangePage( to_hide, to_show )
{
   var tbl_hide = document.getElementById( aIds[to_hide] );
   var tbl_show = document.getElementById( aIds[to_show] );

   if ( typeof(tbl_hide)=='object' && tbl_hide!=null )
    if ( typeof(tbl_show)=='object' && tbl_show!=null )
    {
       tbl_hide.style.display = 'none';
       tbl_show.style.display = '';
    }
}
function NotEmpty( old_res, id, field_title )
{
   if ( old_res==0 )
   {
      var el = document.getElementById( id );
      if ( typeof(el)=='object' && el!=null )
        if ( el.value=='' )
        {
           alert( 'You should fill "' + field_title + '"' );
           return 1;
        }
   }
   return 0;
}
function Email( old_res, id, field_title )
{ // test
   if ( old_res==0 )
   {
      var el = document.getElementById( id );
      if ( typeof(el)=='object' && el!=null )
      {
         var re = /^[a-zA-Z0-9_\.\-]+@([a-zA-Z0-9][a-zA-Z0-9-]+\.)+[a-zA-Z]{2,4}$/;

         if (el.value.search(re) != -1 )  return 0;
         else
         {
            alert( '"'+field_title+'" must be email' );
            return 1;
         }
      }
   }
   return 0;
}

function CheckPagee02c2c86fd()
{
   var nResult = 0;
   nResult += NotEmpty( nResult, 'fld_24c658e21d','First Name' );
   nResult += NotEmpty( nResult, 'fld_72666a934f','Last Name' );
   nResult += Email( nResult, 'fld_f8c8bbd270','Email Address' );
   nResult += NotEmpty( nResult, 'fld_fe04171e3a','Subject' );
   nResult += NotEmpty( nResult, 'fld_ea6163269f','Message' );

   if ( nResult == 0 )
   {
      if (1)
      {
         var el = document.getElementById( 'frm_42be80abef' );
         if ( typeof(el)=='object' && el != null ) el.submit();
      }
      else ChangePage( 0, 1 );
   }
}


var aIds = Array( 'pg_2631f52bc9' );
function ChangePage( to_hide, to_show )
{
   var tbl_hide = document.getElementById( aIds[to_hide] );
   var tbl_show = document.getElementById( aIds[to_show] );

   if ( typeof(tbl_hide)=='object' && tbl_hide!=null )
    if ( typeof(tbl_show)=='object' && tbl_show!=null )
    {
       tbl_hide.style.display = 'none';
       tbl_show.style.display = '';
    }
}
function NotEmpty( old_res, id, field_title )
{
   if ( old_res==0 )
   {
      var el = document.getElementById( id );
      if ( typeof(el)=='object' && el!=null )
        if ( el.value=='' )
        {
           alert( 'You should fill "' + field_title + '"' );
           return 1;
        }
   }
   return 0;
}
function Email( old_res, id, field_title )
{ // test
   if ( old_res==0 )
   {
      var el = document.getElementById( id );
      if ( typeof(el)=='object' && el!=null )
      {
         var re = /^[a-zA-Z0-9_\.\-]+@([a-zA-Z0-9][a-zA-Z0-9-]+\.)+[a-zA-Z]{2,4}$/;

         if (el.value.search(re) != -1 )  return 0;
         else
         {
            alert( '"'+field_title+'" must be email' );
            return 1;
         }
      }
   }
   return 0;
}


function CheckPage2631f52bc9()
{
   var nResult = 0;
   nResult += NotEmpty( nResult, 'fld_44911ad59b','First Name' );
   nResult += NotEmpty( nResult, 'fld_f6d06d0dd9','Last Name' );
   nResult += Email( nResult, 'fld_aeb667bddd','Email Address' );
   nResult += NotEmpty( nResult, 'fld_d14ca056c2','Telephone Number' );
   nResult += NotEmpty( nResult, 'fld_fcae6e478c','Intended date of travel' );
   nResult += NotEmpty( nResult, 'fld_8f03cb570d','Ports / Locations (from and to)' );
   nResult += NotEmpty( nResult, 'fld_96222bdc6e','Grade of cabin required' );
   nResult += NotEmpty( nResult, 'fld_920d3b4509','How many people?' );

   if ( nResult == 0 )
   {
      if (1)
      {
         var el = document.getElementById( 'frm_ba72abced0' );
         if ( typeof(el)=='object' && el != null ) el.submit();
      }
      else ChangePage( 0, 1 );
   }
}

