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(pageURL){
  document.location = pageURL;
}

//**********************************************************************************
function OnFocusKeyword( TextObj ) 
{ 
  if ( TextObj.value == "keyword search" )
  {
    TextObj.value = ""
  }
}

//**********************************************************************************
function openImage(media_id) {
   w = 980;
   h = 600;
   windowString = "height=" + h + ",width=" + w + ",scrollbars=yes," +
                  "resizable=yes,left=" + (screen.width-w)/2 + ",top=" + 
                  (screen.height-h)/2;
   imageSource = "Media.php?media_id=" + media_id;
   pageContent = "<html><body leftmargin=0 rigthmargin=0 topmargin=0 bottommargin=0>" + 
                 "<table width=100%>" +
                 "<tr><td align=center>" +
                 "<img src=" + imageSource + ">" +
                 "</td></tr>" +
                 "</table>" +
                 "</body></html>";

   wind = window.open("", "", windowString);
   wind.document.open();
   wind.document.write(pageContent);

} 

//**********************************************************************************
function chooseStudent(selObj) {
   var URL = "Index.php?_function=ChooseStudent&student_id=" + 
              selObj.options[selObj.selectedIndex].value;
   document.location = URL;

} 

//**********************************************************************************
function gotoSchool(selObj) {
  // alert( selObj.selectedIndex);
   var URL = "Index.php?_function=GotoSchool&school_id=" + 
              selObj.options[selObj.selectedIndex].value;
   document.location = URL;

} 