function getMultiElement(elementId) {
	if (document.layers) {
		// Opera
		return document.layers[elementId];
	} else if (document.all) {
		//Internet Explorer
		return document.all[elementId];
	} else if (document.getElementById) {
		//Firefix, Safari, Netscape
		return document.getElementById(elementId);
	}
}


function getInputByClass(classname) {
	var inc = 0;
	var customcollection = new Array();
	var alltags=document.all ? document.all : document.getElementsByTagName("input");

	for (i = 0; i < alltags.length; i++){
		if (alltags[i].className==classname)
			customcollection[inc++] = alltags[i];
	}
	return customcollection;
}

function numbersonly(e) {
	var unicode = e.charCode ? e.charCode : e.keyCode;

	if (unicode == 8 || unicode == 9 || (unicode >= 48 && unicode <= 57) || unicode == 37 || unicode == 39 || unicode == 46) { //if not a number
		return true;
	}
	return false;
}


function toggle(el){
	var div1 = document.getElementById(el)
	if (div1.style.display == 'block') {
		div1.style.display = 'none'
	} else {
		div1.style.display = 'block'
	}
}

// Name: blur Anchors
// Language: JavaScript
// Author: Travis Beckham ¦ squidfingers.com
// Description: Remove anchor outlines from all links in the document
// --------------------------------------------------
function blurAnchors(){
	if(document.getElementsByTagName) {
	var a = document.getElementsByTagName("a");
	//collect all anchors A
	for(var i = 0; i < a.length; i++){
		// mouse onfocus, blur anchors
		a[i].onfocus = function(){this.blur();};
		}
	}
}
window.onload = blurAnchors;

function logoff() {
// <?php echo '123 hest';/*LOGOUT_QUESTION*/ ?>
   var Q = confirm("Er du sikker på, at du vil logge af?")
   if(Q) {
	  window.location = "/logoff.php";
   }
}

function startup() { //DOM
	if (document.getElementById){
		document.getElementById('loader').style.visibility='hidden';
	}else{
		if (document.layers){ //NS4
			document.prepage.visibility = 'hidden';
		}
		else { //IE4
			document.all.prepage.style.visibility = 'hidden';
		}
	}



if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  getStyleById('dime').height=window.innerHeight;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  getStyleById('dime').height=document.body.offsetHeight;
 }
}


	// NPK/BSS: retter Dime.
//		getStyleById('dime').height=window.innerHeight;
}
// End -->

