function BuildMenu (pv_sItem){
/* NoLink tells us which menu item should have a dead hot link.
0 - All should be hot.
1 - First item should not be hot, etc.
*/

	var sStr;
	var iStartPos = 0;
	var iEndPos;
	
	document.write ('<br>&nbsp;&nbsp;<h2>Group 3 Project</h2><br>');

	sStr =
		'&nbsp;<li><a href="title.html">Title Page</a><br>' +		
		'&nbsp;<li><a href="public.html">Public Policy</a><br>'+
		'&nbsp;<li><a href="personnel.html">Personnel Policy</a><br><br>'; 		

	if (pv_sItem == '') { //all hot
		sMenu = sStr;
	}
	else {
		iEndPos = sStr.indexOf (pv_sItem + '<'); // find the start of the item name
		iStartPos = sStr.lastIndexOf ('<a', iEndPos); // find the start of the "<a href" tag that comes before it

		sMenu = sStr.substring(0, iStartPos); // extract everything left of "<a href"

		sMenu += pv_sItem;  // Append the menu text
		sMenu += sStr.substr (iEndPos + pv_sItem.length + 4); // Extract the remainder of the string after the closing anchor tag
	}
	document.write ('<ul>');
	document.write (sMenu);
	document.write ('</ul>');
	
}



