var menuState = false;



function mycontext() {  
	if( !document.getElementById( "addView" ) )
		return;

	var menu = document.getElementById( "addView" );
	
		menu.className = menuState ? "hidemenu" : "showmenu";
		menuState = !menuState;

}   

function f_width() {  

	document.getElementById( "idLogo" ).width = screen.availWidth*0.7;
	document.getElementById( "idLogo" ).height = screen.availHeight*0.24;

	document.getElementById( "idLogo1" ).width = screen.availWidth*0.97;
	document.getElementById( "idLogo1" ).height = screen.availHeight*0.04;

	document.getElementById("tablica1").width = screen.availWidth*0.8;
	document.getElementById("tablica2").width = screen.availWidth*0.8;
	document.getElementById("tablica3").width = screen.availWidth*0.7109;

	if(document.getElementById( "addView" )){
		document.getElementById( "addView" ).style.top = document.getElementById("topViewImage").offsetTop;
		document.getElementById( "addView" ).style.left = document.getElementById("topViewImage").offsetLeft;
	}	
	
	document.getElementById("IdTagByTD").width = screen.availWidth*0.05;

}   

function loadHTML(sURL, idElement)
{
  var request=null;

  // пытаемся создать объект для MSXML 2 и старше
  if(!request) try {
    request=new ActiveXObject('Msxml2.XMLHTTP');
  } catch (e){}

  // не вышло... попробуем для MSXML 1
  if(!request) try {
    request=new ActiveXObject('Microsoft.XMLHTTP');
  } catch (e){}

  // не вышло... попробуем для Mozilla
  if(!request) try {
    request=new XMLHttpRequest();
  } catch (e){}

  if(!request)
    // ничего не получилось...
    return "";
 
  // делаем запрос
  request.open('GET', sURL, false);
  request.send(null);
  // возвращаем текст
   document.getElementById(idElement).innerHTML = request.responseText;
  return true;
}



