////////////////////////////////////////////////////////////////////////////
//         Copyright (C) 1999 Computer Associates International, Inc
// as an unpublished work. This notice does not imply unrestricted or public
// access to these materials which are a trade secret of Computer Associates
// International or its subsidiaries or affiliates (together referred to as
// CA), and which may not be reproduced, used, sold or
// transferred to any third party without CA's prior written consent.
//
//                         All Rights Reserved.
//
//                       RESTRICTED RIGHTS LEGEND
// Use, duplication, or disclosure by the Government is subject to
// restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
// Technical Data and Computer Software clause at DFARS 252.227-7013.
////////////////////////////////////////////////////////////////////////////
// Module:  fld_gen.js
// Created: 03/07/01
////////////////////////////////////////////////////////////////////////////
// Description:
// If the FormCacheMax in the web.cfg file is set to (or 
// default to) the value other than -1, we may have the  
// following two issues: 
// 1. The FID values less or equal to 10000 are reserved 
// for the URL constructed in the javascript (ex: popup.js) 
// or used in the frame window (ex: menu_frames.htmpl). If 
// the FID value larger than 10000 is used, the URL may 
// return an error message. 
// 2. It is very likely that the browser may display the 
// old form in its cache for the same URL that has been 
// issued earlier. If the old form has expired in the AHD 
// web server, any URL issued from this old form may 
// generate an error message. 
// The issue 1 can be solved by using FID=123 in its URL
// and the issue 2 can be solved by turning off the cache
// option in the browser. 
// We use the following function to solve both issues. 
// This function will randomly create a FID which will 
// be a value less or equal to 10000. The random FID value 
// can allow the same URL to have a different FID each 
// time. This can force browser to get a new page from AHD 
// web server. 
////////////////////////////////////////////////////////////////////////////
// $Header: /base/source/bp/freeaccess/jsdir/.RCS/fid_gen.js,v 1.3 2001/05/24 02:00:51 chadu01 Exp $
// @(#)$Id: fid_gen.js,v 1.3 2001/05/24 02:00:51 chadu01 Exp $

function fid_generator()
{
    return Math.round(Math.random() * 10000);    
}
