// JavaScript Document
<!--

// ÅBN VINDUE TIL WEBADRESSE
function wwwWin(url, name, width, height)
{
settings=
"toolbar=yes,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=yes,"+
"resizable=yes,width="+width+",height="+height;
MyNewWindow=window.open("http://"+url,name,settings);
}

// ÅBN NYT VINDUE TIL LOKAL SIDE
function nWin(filNavn, name, width, height){
	settings=
	"toolbar=no,location=no,directories=no,"+
	"status=no,menubar=no,scrollbars=yes,"+
	"resizable=yes,width="+width+",height="+height;
	MyNewWindow=window.open(filNavn,name,settings);
}
/*
//denne omvej for at løse problemet med bookmarks og Flash
function showPage(mark){
	fileName = "solutions.htm"+"#"+mark;
	document.location.href=fileName;
	}

function newPage(fileName){
		document.location.href=fileName;
	}
*/	
function showflash(width,height,codebaseversion,p1name,p1value,p2name,p2value,p3name,p3value,embedsrc,embedquality){
		if (arguments.length != 11)
			{ alert("Forkert antal argumenter sendt til funktionen!"); }
		else
		{
		var extension = ".swf"
		var x = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+codebaseversion+'">\n';
		x += '<param name="'+p1name+'" value="'+p1value+extension+'">\n';
		x += '<param name="'+p2name+'" value="'+p2value+'">\n';
		x += '<param name="'+p3name+'" value="'+p3value+'">\n';
		x += '<embed src="'+embedsrc+extension+'" ' +p1name+ '="' + p1value + '" ' + p2name + '="' + p2value + '" ' + p3name + '="' + p3value + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'">\n';
		x += '</embed>\n';
		x += '</object>\n';
		document.write(x);
		}
}
//-->
