var bustcachevar=1
var loadedobjects=""

function axp(containerid,url){
 var page_request = false
 if (window.XMLHttpRequest)
  page_request = new XMLHttpRequest()
 else if (window.ActiveXObject){
 try {page_request = new ActiveXObject("Msxml2.XMLHTTP")} 
catch (e){try{page_request = new ActiveXObject("Microsoft.XMLHTTP")}
catch (e){}
}
}
else
return false
page_request.onreadystatechange=function(){loadpage(page_request, containerid)}
if (bustcachevar)
 var bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
 page_request.open('GET', url+bustcacheparameter, true)
 page_request.send(null)
}

function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
 document.getElementById(containerid).innerHTML=page_request.responseText
}

function loadobjs(){
document.getElementsByTagName("head").item(0).appendChild(fileref)
loadedobjects+=file+" "
}
//
function oppna(dVad,oajax,e){
 document.getElementById(dVad).style.display = "block";
pos = getP(e);
if(pos[1] < 84){pos[1] = 84;}
document.getElementById(dVad).style.left=pos[0]+'px';
document.getElementById(dVad).style.top=pos[1]+'px';
 if(oajax){axp(dVad,oajax);}
}
function getP(e) {
	var posx = 0;
	var posy = 0;
	if (!e) var e = window.event;
	if (e.pageX || e.pageY) 	{
		posx = e.pageX-10;
		posy = e.pageY-10;
	}
	else if (e.clientX || e.clientY) 	{
		posx = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft-10;
		posy = e.clientY + document.body.scrollTop + document.documentElement.scrollTop-10;
	}
	return new Array(posx,posy);
}

function HideM(d){setTimeout("stang('um')",2000);}
function stang(dVad){if(dVad){document.getElementById(dVad).style.display = "none";}}

function cDOM (container, containee){
  var isParent = false;
  do{if ((isParent = container == containee)) break; containee = containee.parentNode;}
  while (containee != null); return isParent;
}
function checkM(element, evt){
  if (element.contains && evt.toElement){return !element.contains(evt.toElement);}
  else if (evt.relatedTarget) {return !cDOM(element, evt.relatedTarget);}
}