// Purpose	: Queries for all products in the catalogue from the currently selected tree node ID.
//
// Author	: Unknown
//
// Date		: xx/xx/199x
//
// Modification History
// Date			Initials	Reason
// 06/03/2000	CW			Add unique string to end of URL to ensure page is not cached.
// 23/10/2000	DJH			Object references brought inline with Netscape 4.0.
// 22-May-2001	SRW			Added lvNodeID argument and passed in this value using the node
//							ID (lfID) determined in intropanel.asp.
// 21-Jan-2002	ADJ			Replaced references to 'TOP' window with 'PARENT' (to work with framesets)
//
function ViewAllProducts(lvNodeID,lvRootSearch)
{
	var pdNow, psGMT

	pdNow = new Date();
	psGMT = new String();	
	psGMT = '' + pdNow.getYear() + (pdNow.getMonth()+1) + pdNow.getDate() + pdNow.getTime();

	// Navigate to view product form.	
	parent.location.href = '../Search/results_frameset.asp?Page=3&id='+ lvNodeID + '&ViewAll=True' + '&GMT=' + psGMT + '&NEW=TRUE' + '&RootSearch=' + lvRootSearch;
}

// Purpose	: Searches for all products from the current node ID.
//
// Author	: Unknown
//
// Date		: xx/xx/199x
//
// Modification History
// Date			Initials	Reason
// 23/10/2000	DJH			Object references brought inline with Netscape 4.0.
// 21-Jan-2002	ADJ			Replaced references to 'TOP' window with 'PARENT' (to work with framesets)
//
function SearchForProducts(){
	
	// Navigate to search form.
	parent.window.location.href='../Search/results_frameset.asp?Page=4&id='+top.fraBrowse.document.forms["frmTree"].elements["lTreeSelectedNodeID"].value+'&NEW=TRUE';
}

function FindCat(){
	
	//Go to Find Node Screen
	window.location.href='FindNode.asp';
}

function OrderReqList(){
	
	//Do nothing
}

function FontColorChange(zpID,zpColor){

	//Change the colour of the cell
	document.all(zpID).color=zpColor;
	

}

// Purpose	: Changes the colour of the specified link.
//
// Author	: Dominic Chang
//
// Date		: xx/xx/199x
//
// Modification History
// Date		Initials	Reason
//
function LinkColorChange(zpID,zpColor)
{
	// Change the colour of the cell.	
	//document.all(zpID).style.color=zpColor;
	if( document.links[zpID]!=null )
		document.links[zpID].style.color = zpColor;
}
