//=====================================================//
function actLeftMenu(el){
  el.className='leftMenuAct';
}

function deactLeftMenu(el){
  el.className='leftMenuDeact';
}

//=====================================================//
function actLeftSubMenu(el){
  el.className='leftSubMenuAct';
}

function deactLeftSubMenu(el){
  el.className='leftSubMenuDeact';
}

//=====================================================//
function actRoom(el){
  el.className = 'roomAct';
}

function deactRoom(el){
  el.className = 'roomDeact';
}

//=====================================================//
function actButton(el){
  el.className='buttonAct';
}

function deactButton(el){
  el.className='buttonDeact';
}

//=====================================================//
function gotoURL(url){
  document.location = url;
}

//=====================================================//
function gotoURL(url){
  document.location = url;
}
//**********************************************************************************
function OnFocusKeyword( TextObj ) 
{ 
  if ( TextObj.value == "keyword search" )
  {
    TextObj.value = ""
  }
}

//**********************************************************************************
function OnBlurKeyword( TextObj ) 
{ 
  if ( TextObj.value == "" )
  {
    TextObj.value = "keyword search"
  }
}

//**********************************************************************************
function openWindowExecutiveProfile(staffCode) {
   URL = "index.php?_function=aboutUs&_subFunction=peopleProfile&staffCode=" + staffCode;
   var w = 570;
   var h = 300;
   windowString = "height=" + h + ",width=" + w + ",scrollbars=yes," +
                  "resizable=yes,left=" + (screen.width-w)/2 + ",top=" + 
                  (screen.height-h)/2;
   wind = window.open( URL, "", windowString);
 

} 

//**********************************************************************************
function wrap(caption) {
	//alert (caption);
	if (caption == CURRENT_ITEM){
		return '<table width=120 height=25 cellpadding=0 cellspacing=0 class=itemSelected><tr><td>' + caption + '</td></tr></table>';
	} else {
		return '<table width=120 height=25 cellpadding=0 cellspacing=0 class=itemNotSelected><tr><td>' + caption + '</td></tr></table>';
        }
}   
//**********************************************************************************
