function placeSecondaryContent() {
	//alert(document.getElementById('topFeeder').innerHTML);
	if(document.getElementById('topFeeder') != null){
		if(document.getElementById('secondaryContent') != null){
			//alert("BØH");
			document.getElementById('secondaryContent').innerHTML = document.getElementById('topFeeder').innerHTML;
			//alert(document.getElementById('secondaryContent').innerHTML);	
		}		
	}	
}

function resizeMainDiv(){
	var myWidth = 0, myHeight = 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;
	}
	document.getElementById('outerContentDiv').style.width = myWidth-20;
	document.getElementById('innerContentDiv').style.width = myWidth-20;
	document.getElementById('outerContentDiv').style.height = myHeight-0;
}

function validateEmail(e) {
	
	if(e == "") {		
		alert("Den indtastede e-mail adresse var ikke gyldig");
		return false;
	}
	
	if(e.indexOf("@") == -1) {		
		alert("Den indtastede e-mail adresse var ikke gyldig");
		return false;
	}
	
	return true;
}

function validateFTPuserSettings(form) {
	if(form.old_password.value != "") {
		// OPDATER PASSWORD
		if(form.new_password1.value == form.new_password2.value) {
			return true;		
		} else {
			alert("Dit nye password blev ikke gentaget korrekt!");
			return false;
		}	
	} else {
		if(form.new_password1.value == "" && form.new_password2.value == "") {
			// VI OPDATERER ANDRE OPLYSNINGER END PASSWORD
			return true;
		} else {	
			alert("Husk at indtaste dit gamle password!");
			return false;
		}
	}
}