/* 
Funktion grafik() lavet af JEH - Til kald af grafik med angivelse af '<AptrixLibCpmnt-navn>',bredde,højde,'ALT-tekst'
- husk evt. tomme '', hvis der ikke skal alt-tekst på
Januar 2006
*/
function grafik(fil,bredde,hojde,txt) {
document.write("<"+"img height="+hojde+" src="+fil+" width="+bredde+" alt=\""+txt+"\" />")
}


/* 
Funktion grafikname() lavet af JEH - Til kald af grafik med angivelse af '<AptrixLibCpmnt-navn>',bredde,højde,'ALT-tekst','name'
Januar 2006
*/
function grafikname(fil,bredde,hojde,txt,navn) {
document.write("<"+"img height="+hojde+" src="+fil+" width="+bredde+" alt=\""+txt+"\" name=\""+navn+"\" />")
}


function CheckForm() {

	if(document.mail.name.value == "") {
		window.alert("Du mangler at udfylde dit navn");
		document.mail.name.focus();
		send = false;
		return false;
	}
	if(document.mail.from.value == "") {
		window.alert("Du mangler at udfylde din e-mail");
		document.mail.from.focus();
		send = false;
		return false;
	}
	if(document.mail.kommentar.value == "") {
		window.alert("Du mangler at skrive din kommentar");
		document.mail.kommentar.focus();
		send = false;
		return false;
	}
}

function renderPositions() {
	var myWidth = 0, myHeight = 0, myDiff = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}

//	window.alert( 'Width = ' + myWidth );
//	window.alert( 'Height = ' + myHeight );

	document.getElementById('backgrounddiv').style.height = myHeight-84;


// End of renderPositions()
}

