var aIds = Array( 'pg_77854777a4' );
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 )
{ 
   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,6}$/;

         if (el.value.search(re) != -1 )  return 0;
         else
         {
            alert( '"'+field_title+'" must be email' );
            return 1;
         }
      }
   }
   return 0;
}



function CheckPage77854777a4()
{
   var nResult = 0;
   nResult += NotEmpty( nResult, 'fld_31fc22048b','Full name:' );
   nResult += NotEmpty( nResult, 'fld_11e1c8cc59','Address:' );
   nResult += NotEmpty( nResult, 'fld_cbdc7e388f','Town/City:' );
   nResult += NotEmpty( nResult, 'fld_c9722c96db','Post Code:' );
   nResult += NotEmpty( nResult, 'fld_289e6711db','Telephone:' );
   nResult += Email( nResult, 'fld_bddb0ffa2a','Email:' );
   nResult += NotEmpty( nResult, 'fld_fde839fe98','Information:' );

   if ( nResult == 0 )
   {
      
	  var val = document.getElementById('fld_81e1f2e8d3').value;
      if (val=="Please select")
      {
        alert("Please select");
        exit;
      } 
	  
	  var val = document.getElementById('fld_c46da3bb3d').value;
      if (val=="Please select")
      {
        alert("Please select");
        exit;
      } 
	  
	  
	  
	  if (1)
      {
         var el = document.getElementById( 'frm_64c1cf0256' );
         if ( typeof(el)=='object' && el != null ) el.submit();
      }
      else ChangePage( 0, 1 );
   }
}