﻿/*********************************************************************
*** (C) OK-Systems,2007 (All rights reserved)                      ***
*** Don't make any changes without reporting to oks@ok-systems.com ***
**********************************************************************
*** File: fumenu.js                                                ***
*** Project_: Virtual Office                                       ***
*** Language: JavaScript                                           ***
*** Description:                                                   ***
*********************************************************************/


//==================================================
// 
//==================================================

//--- Pointer to the last selected Item 
var oItemSelected=null;


//==================================================
// 
//==================================================

//--------------------
//- Modified: 28-Sep-2002, Antonio Olmedo Soler
//- Modified: 28-Sep-2002, Antonio Olmedo Soler
//- Syntax__: Item_Select
//- Description: 
//--------------------
function Item_Select(oItem) {
	try {
		//alert('Item_Select');
		//Debug_Function('Item_Select',null,arguments);
		if (oItemSelected)	oItemSelected.className='Item';
		if (oItem)				oItem.className='ItemSelected';
		oItemSelected	=oItem;
	} catch(oError) { alert('JS ERROR: Item_Select('+oItem+')'); }
	return void(null);
}


//--------------------
//- Modified: 28-Sep-2002, Antonio Olmedo Soler
//- Modified: 11-Jan-2003, Antonio Olmedo Soler
//- Syntax__: Category_Select(nId)
//- Description: 
//--------------------
function Category_Select(nId) {
	try {
		//Debug_Function('Category_Select',null,arguments);
		//var cURL=DIR_ROOT+'categoria.asp?Id='+nId;
		var cURL='/virtof2/control/categoria.asp?Id='+nId;
		var oCatBrowser=document.all['CatBrowser'];
		if (oCatBrowser) {
			oCatBrowser.src=cURL;
		} else {
			//window.open(cURL,'CatBrowser');
			location.href=cURL;
		}
		//---
		Item_Select(document.all['Item_'+nId]);
	} catch(oError) {alert('JS ERROR: Category_Select('+nId+')'); }
	return void(null);
}


