// JavaScript Document

FPList_frm_4933939d55 = new Array();
<!--
   var aIds_frm_4933939d55 = Array( 'pg_a8116978d2' );
   var aId_frm_4933939d55  = Array ();
function ChangePage_frm_4933939d55( to_hide, to_show )
{
   var tbl_hide = document.getElementById( aIds_frm_4933939d55[to_hide] );
   var tbl_show = document.getElementById( aIds_frm_4933939d55[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_not_empty( 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-]+\.){1,3}[a-zA-Z]{2,6}$/;

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