// JavaScript Document

<!--
var aIds = Array( 'pg_fc05712c8c' );
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( '"' + field_title + '" is a required field' );
           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 a valid email address' );
            return 1;
         }
      }
   }
   return 0;
}

function CheckPagefc05712c8c()
{
   var nResult = 0;
   nResult += NotEmpty( nResult, 'fld_255b650792','Name' );
   nResult += Email( nResult, 'fld_de22ec5773','Email' );
   nResult += NotEmpty( nResult, 'fld_556fed911d','Phone' );
   nResult += NotEmpty( nResult, 'fld_9eb16cdb50','Area' );

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

