//Nulstil en formular
function ClearForm(formname) { 
    document.forms[formname].reset()
    }

//Tilføj til foretrukne
function addbookmark(url, title){
	if (document.all)
		window.external.AddFavorite(url,title)
	}

function OpenWindow(adresse) { 
	window.open(''+ adresse +'','PopupWindow','width=400,height=400,toolbar=no,scrollbars=yes') 
	}

DropDownMenu = function() {
	if (document.getElementById) {
		navRoot = document.getElementById("jsDropMenu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.className == "jsDrop") 
			{
				node.onmouseover = function() 
				{
					this.className += " over";
					this.firstChild.className += " expanded";
				}
				node.onmouseout = function()
				{
					this.className = this.className.replace(" over", "");
					if (this.firstChild.className == "selected expanded") this.firstChild.className = "selected";
					if (this.firstChild.className == " expanded" || this.firstChild.className == "expanded") this.firstChild.className = "";
				}
			}
		}
	}
}
window.onload = DropDownMenu;


var elms = ['ContentLeft','ContentMain2'];
		
function synchronizeDivs(){
  var maxH = 0;
  for(i=0;elms.length>i;i++){
	maxH = Math.max(maxH,document.getElementById(elms[i]).offsetHeight);
	maxH2 = Math.max(maxH,document.getElementById(elms[i]).offsetHeight) + 30;
  }
  for(i=0;elms.length>i;i++){
	document.getElementById(elms[i]).style.height=maxH + 'px';
  }
  document.getElementById('ContentLeft').style.height=maxH2 + 'px';
}
window.onload = synchronizeDivs;
