function NewLocation (url) {
	document.location.href = url;
}

function QueryString(name) {
	//Dette script henter teksten som hører under "error" i URL'en
	var tmp = unescape( location.search.substring(1) );
	var i   = tmp.toUpperCase().indexOf(name.toUpperCase()+"=");

	if ( i >= 0 ) {
		tmp = tmp.substring( name.length+i+1 );
		i = tmp.indexOf("&");
		return( tmp = tmp.substring( 0, (i>=0) ? i : tmp.length ));
	}

	return("");
}

function NewWin(url,WinName,w,h) {
	//Åbner et nyt vindue og centrere det på skærmen
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	CenterWin = ",top='+TopPosition+',left='+LeftPosition+'"
	NewWindow = window.open(url,WinName,'width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition);
	NewWindow.focus();
}