
// assumes that c:\inetpub\wwwroot\montego\jscript\leftmenu.js has been included

function my_trim( key1 )
{
	var key = key1;
	while ( key.length && key.charAt( key.length - 1 ) == " "  ) key = key.slice(0, -1);
	while ( key.length && key.charAt( 0 ) == " " ) key = key.substring( 1 ) ;		
	
	return key;
}

function CompanyPension ( foldersTree, nestdir, folderdir )
{
var path_f      = nestdir || "";
var folderdir_f = folderdir	|| "Company/";
var aux1;

path_f      = my_trim( path_f );
folderdir_f = my_trim( folderdir_f );

aux1=insFld(foldersTree,gFld("Company Operations"),"");
insDoc(aux1,gLnk(0,"Calendar Works",                                path_f + folderdir_f + "companycalendar.htm"));
insDoc(aux1,gLnk(0,"Company Duties",                                path_f + folderdir_f + "duties.htm"));
insDoc(aux1,gLnk(0,"Director's Responsibility",                     path_f + folderdir_f + "directors.htm"));
insDoc(aux1,gLnk(0,"Duties of a Company Secretary",                 path_f + folderdir_f + "secretary.htm"));
insDoc(aux1,gLnk(0,"Terms and Conditions For Professional Services",path_f + folderdir_f + "contract1.htm"));
insDoc(aux1,gLnk(0,"Purchase Order Terms",                          path_f + folderdir_f + "purchaseorderterms.htm"));
insDoc(aux1,gLnk(0,"Director Service Agreement",                    path_f + folderdir_f + "contract2.htm"));
insDoc(aux1,gLnk(0,"Company Dividends",                             path_f + folderdir_f + "dividends.htm"));
insDoc(aux1,gLnk(0,"Tax Rates",                                     path_f + folderdir_f + "taxrates.htm"));
}

