﻿function menudiv_getresult()
{
if(objXML.readyState == 4)
{
  var message=new String(objXML.responseText);
  document.getElementById("menu_div").innerHTML=message;
}//create objest
} //GetResults
//--------------------------------------------------
function menu_loader()
{
     data="item=menuloader";
     url="blocks/menu.php";
     PostData("menu_div",url,data,0,menudiv_getresult);
}
//----------------------
function go_page(page_url,this_pagenum)
{
   window.location="?" +  page_url + "&page_num=" + this_pagenum;
}
//------------
function nest_page(page_url,this_pagenum)
{
   window.location="?" +  page_url + "&page_num=" + this_pagenum;
}
//--------------------
function search(myid)
{
  window.location="?item=search&txt=" + document.getElementById(myid).value;
}
//-----------------
function search_txt_focus(myid)
{
  document.getElementById(myid).style.fontStyle='normal';
  document.getElementById(myid).style.color='black'
}
//-------------
function search_txt_focusout(myid)
{
  document.getElementById(myid).style.fontStyle='italic';
  document.getElementById(myid).style.color='gray';
}
//--------------
function search_txt_dbclick(myid)
{
  document.getElementById(myid).value="";
}
