var isekvens;var antalrigtige;var loop;var tingen;var endelse;var sti;var detvideresendte;var safari = navigator.appVersion.indexOf('Safari');if(navigator.appVersion.indexOf('Safari') == -1){safari = false;};if(navigator.appVersion.indexOf('Safari') !== -1){safari = true;};function skriv(indhold){	parent.topvindue.document.write(indhold)}function slut(sti){	//alert(navigator.appVersion.indexOf('MSIE') == -1 && !safari);	if(navigator.appVersion.indexOf('MSIE') == -1 && !safari) {		if (	!(parent.bundvindue == undefined)	){			parent.bundvindue.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head>");			parent.bundvindue.document.write("<link rel=STYLESHEET href='" +sti+ "res/stylesheet.css' type='text/css' media='screen'>");			parent.bundvindue.document.write("<link rel=STYLESHEET href='" +sti+ "res/printstylesheet.css' type='text/css' media='print'>");			parent.bundvindue.document.write("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");			parent.bundvindue.document.write("</head>");			parent.bundvindue.document.write("<body class='hovedbody'>");			parent.bundvindue.document.write("</body></html> ");					}	}	if(navigator.appVersion.indexOf('MSIE') !== -1) {		if (parent.bundvindue){			parent.bundvindue.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><body>"); 			parent.bundvindue.document.write("</body></html> ");		}	}	//alert(window.spillevinduet);	if(window.spillevinduet){window.spillevinduet.close();}}function tjekforspillevindueloop(tingen,endelse,sti){	alert(tingen,endelse,sti);	slut();	//alert(window.spillevinduet);	//if(!loop){ loop=true; spilietvindue(tingen,endelse,sti); return;}	//alert("falsk"); 	//loop=false; spilietvindue(tingen,endelse,sti);}function spilietvindue(tingen,endelse,sti){	//var loop=false;	tingen = tingen;	endelse = endelse;	sti = sti;	detvideresendte = "'"+ tingen +"','"+ endelse+"','"+sti +"'";	deandreparametre = "toolbar=no, status=no, resizable =yes, width=160, height=120" ;	width = '160';	if(document.form1){		if(document.form1.loopellerej){			if(document.form1.loopellerej.checked){loop=true;}		}		if(document.form1.kortellerlang){			if(document.form1.kortellerlang.checked){				deandreparametre = "toolbar=no, status=no, resizable =yes, width=600, height=120" ;				width = '580';	}		}	}	spillevinduet= window.open('', 'vindue', deandreparametre);	spillevinduet.document.open();	//alert(spillevinduet);	spillevinduet.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head>");	spillevinduet.document.write("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	spillevinduet.document.write("<script src='" +sti+ "res/scripts.js'></script>");	spillevinduet.document.write("<link rel=STYLESHEET href='" +sti+ "res/stylesheet.css' type='text/css' media='screen'>");	spillevinduet.document.write("<link rel=STYLESHEET href='" +sti+ "res/stylesheet.css' type='text/css' media='print'>");	spillevinduet.document.write("<title>Et spillevindue</title>");	spillevinduet.document.write("</head>");	spillevinduet.document.write("<body class=''>");	spillevinduet.document.write("<embed src='" +tingen+endelse+ "' width='" +width+ "' height='60' autostart='true'");	spillevinduet.document.write(" autoplay='true' loop='" +loop+ "' controller='true' kioskmode='false' ");	spillevinduet.document.write(" pluginspage='http://www.apple.com/quicktime/download/'>");	spillevinduet.document.write("<noembed><a href=" +tingen+endelse+ ">[Spil lyd]</a></noembed>");	//spillevinduet.document.write("<form name='form1'><input name='loopellerej' type=Button onClick=tjekforspillevindueloop(" +detvideresendte+ ");> Gentag musikeksemplerne</form>");	spillevinduet.document.write("</body></html>");	spillevinduet.document.close();	window.spillevinduet.focus();}function visietvindue(audio,aendelse,grafik,grafendelse,tekst,sti,vinduesbredde,vindueshoejde,billedbredde){	if(window.spillevinduet){window.spillevinduet.close();}	vbredde= '340';	vhoejde= '260';	bbredde= '';	bhoejde= '';	abredde='210';	if (billedbredde) { vbredde = parseInt(billedbredde)+30;	}	if (vindueshoejde) { vhoejde = vindueshoejde; 	}	if (billedbredde) { bbredde = billedbredde; abredde= billedbredde;	}	//alert (bbredde);	if(tekst && grafik) {	deandreparametre = "toolbar=no, status=no, resizable=yes,  width=" + vbredde+ ", height=" +vhoejde ;	}	if(tekst && !grafik) {	deandreparametre = "toolbar=no, status=no, resizable=yes, width=340, height=170" ;	}	if(!tekst && !grafik) {	deandreparametre = "toolbar=no, status=no, resizable=yes, width=340, height=170" ;	}	//alert (deandreparametre);	spillevinduet= window.open('', 'vindue', deandreparametre);	spillevinduet.document.open();	spillevinduet.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head>");	spillevinduet.document.write("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	spillevinduet.document.write("<link rel=STYLESHEET href='" +sti+ "res/stylesheet.css' type='text/css' media='screen'>");	spillevinduet.document.write("<link rel=STYLESHEET href='" +sti+ "res/stylesheet.css' type='text/css' media='print'>");	spillevinduet.document.write("<title>Et spillevindue</title>");	spillevinduet.document.write("</head>");	spillevinduet.document.write("<body class='hovedbody'>");	spillevinduet.document.write("<table class='sidelayouttabel' summary='sidelayouttabel'>");	spillevinduet.document.write("<tr>");	spillevinduet.document.write("<td class='hovedcelle'>");	if(tekst){spillevinduet.document.write(tekst+ "<br>");}	if(grafik){spillevinduet.document.write("<a href=" +grafik+ grafendelse+ " target='new'><img src='" +grafik+ grafendelse+ "' class='grafik' width='" +bbredde+ "' height='" +bhoejde+ "'><br></a>");}	if(audio){		spillevinduet.document.write("<embed src='" +audio+aendelse+ "' width='" +abredde+ "' height='50' autostart='true'");		spillevinduet.document.write(" autoplay='true' loop='false' controller='true' kioskmode='false' /'");		spillevinduet.document.write(" pluginspage='http://www.apple.com/quicktime/download/'>");		spillevinduet.document.write("<noembed><a href=" +audio+aendelse+ ">[Spil lyd]</a></noembed>");	}	spillevinduet.document.write("</td></tr></table>");	spillevinduet.document.write("</body></html>");	spillevinduet.document.close();	window.spillevinduet.focus();}function visLydGrafTek(audio,aendelse,grafik,grafendelse,tekst,sti){	//if(!safari) {		parent.bundvindue.document.open();		parent.bundvindue.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head>");		parent.bundvindue.document.write("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");		parent.bundvindue.document.write("<link rel=STYLESHEET href='" +sti+ "res/stylesheet.css' type='text/css' media='screen'>");		parent.bundvindue.document.write("<link rel=STYLESHEET href='" +sti+ "res/printstylesheet.css' type='text/css' media='print'>");		parent.bundvindue.document.write("<body class='hovedbody'>");		parent.bundvindue.document.write("<table class='sidelayouttabel' summary='sidelayouttabel'>");		parent.bundvindue.document.write("<tr>");		parent.bundvindue.document.write("<td class='hovedcelle'>");		if(tekst){parent.bundvindue.document.write("" +tekst+ "<br>");}		if(grafik){parent.bundvindue.document.write("<img src='" +grafik+grafendelse+ "' class='grafik'>");}		if(audio){			parent.bundvindue.document.write("<embed src='" +audio+aendelse +"' autostart='true' autoplay='true' name='filmen' width='200' height='40'>");		}		parent.bundvindue.document.write("</td></tr></table>");		parent.bundvindue.document.write("</body></html>");		parent.bundvindue.document.close();	//}	//if(safari) {	visietvindue(audio,aendelse,grafik,grafendelse,tekst,sti)	}	}function visibundvindue(tingen,endelse,sti,text){	parent.bundvindue.document.open();	parent.bundvindue.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head>");	parent.bundvindue.document.write("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	parent.bundvindue.document.write("<link rel=STYLESHEET href='" +sti + "res/stylesheet.css' type='text/css' media='screen'>");	parent.bundvindue.document.write("<link rel=STYLESHEET href='" +sti + "res/stylesheet.css' type='text/css' media='print'>");	parent.bundvindue.document.write("</head><body class='hovedbody'>");	parent.bundvindue.document.write("<table class='grafik' summary='tabel'><tr>");	if(text){parent.bundvindue.document.write("<td width='500'>" +text+ "</td>");}	if(tingen && !safari){		parent.bundvindue.document.write("<td><embed src='" + tingen + endelse+ "' autostart='true'");		parent.bundvindue.document.write(" autoplay='true' width='200' height='60'");		parent.bundvindue.document.write("align=middle loop=False controller=True playeveryframe=False></td>");	}	parent.bundvindue.document.write("</tr></table>");	parent.bundvindue.document.write("</body></html>");	parent.bundvindue.document.close();		if(safari){ spilibaggrundsvindue(tingen,endelse); }	}function spil(noget,sti) {	//if(!safari){		if (parent.bundvindue){			parent.bundvindue.document.open();			parent.bundvindue.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head>");			parent.bundvindue.document.write("<link rel=STYLESHEET href='" +sti+ "res/stylesheet.css' type='text/css' media='screen'>");			parent.bundvindue.document.write("<link rel=STYLESHEET href='" +sti+ "res/printstylesheet.css' type='text/css' media='print'>");			parent.bundvindue.document.write("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");			parent.bundvindue.document.write("</head>");			parent.bundvindue.document.write("<body class='hovedbody'>");			parent.bundvindue.document.write("<embed src='" + noget +"' width='200' height='60'");			parent.bundvindue.document.write(" autostart='true' autoplay='true' loop=False controller=True playeveryframe=False>");			parent.bundvindue.document.write("</body></html>");			parent.bundvindue.document.close();		}		else 		{spilibaggrundsvindue(noget,'');}	//}	//if(safari){ spilibaggrundsvindue(noget,''); }}function spilibaggrundsvindue(kilde,endelse) {	deandreparametre = "toolbar=no, status=no, width=280, height=120" ;	spillevinduet= window.open('', 'vindue', deandreparametre);	window.spillevinduet.blur();	spillevinduet.document.open();	spillevinduet.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head>");	spillevinduet.document.write("</head>");	spillevinduet.document.write("<body>");	spillevinduet.document.write("<embed src='" +kilde+ endelse +"' width='200' height='60' autostart='true' autoplay='true' ");	spillevinduet.document.write("loop='false' controller='true' kioskmode='false' ");	spillevinduet.document.write("pluginspage='http://www.apple.com/quicktime/download/'>");	spillevinduet.document.write("</body></html>");	spillevinduet.document.close();}//gemt pga location.href-taggetfunction slutny(sti){	if (parent.bundvindue){		parent.bundvindue.document.location.href= sti + "res/blank.htm";	}}//omigen(); er ny, før skete der ikke noget 7/11 2008function spilautoellerej(){	if(!document.form1.spilautomatisk.checked){ document.form1.automatisk.checked=false; }	omigen();	//renstopvinduet();	//videre();}//hvorfor skulle loop sættes til? 7/11 2008function autovidere(){	if(!document.form1.automatisk.checked){		//renstopvinduet();		omigen();		//document.form1.loopellerej.checked=true;		return;}	document.form1.spilautomatisk.checked=true;	document.form1.loopellerej.checked=false;	//omigen();	renstopvinduet();	videre();}function tjekforbladloop(){	if(document.form1.automatisk.checked){document.form1.loopellerej.checked=false; return;}	if(document.form1.loopellerej.checked){ loop=true; omigen(); return}	loop=false; omigen();}function omigen(){	renstopvinduet();	lavtopvindue();}function afbrydtimerognyopgave(){	renstopvinduet();	videre();}function renstopvinduet(){	//alert (ident);	if(ident)	{ window.clearTimeout(ident);	}	skriv("</tr></table>");	skriv("</body></html>");	parent.topvindue.document.close();}function lavhelp() {	help = true;	lavtopvindue();	help = false;}function initialiser(sti){	parent.topvindue.document.open();	skriv("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");	skriv("<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	skriv("<link rel=STYLESHEET href='" +sti+ "../../res/stylesheet.css' type='text/css' media='screen'>");	skriv("<link rel=STYLESHEET href='" +sti+ "../../res/stylesheet.css' type='text/css' media='print'>");	skriv("</head>");	skriv("<body class='opgavebody'>");	skriv("Initialiserer midi...<embed src='" +sti+ "../../res/program.mid' width='2' height='2'");	skriv(" autostart='true' autoplay='true' loop='False' controller='False'>");	skriv("</body></html>");	parent.topvindue.document.close();	ident=window.setTimeout("start();",1000);}function nulstilscore() {	antalsvar =0; 	antalrigtige = 0;	document.form1.score.value = antalrigtige +"/" + antalsvar;}function gaatilopgave(value){	nummeret= value-1;	var sekvensstatus = isekvens;	isekvens = true;	skriv("</body></html>");	parent.topvindue.document.close();	ident=window.setTimeout("nyopgave();", 500);	//ident=window.setTimeout("lavtopvindue();", 500);	isekvens = sekvensstatus;}function tjekforloop(){	if(document.form1.loopellerej.checked){	loop=true;	lavtopvindue();	return}	loop=false;	lavtopvindue();}function tjekforisekvens(){	if(document.form1.sekvensellerej.checked){		isekvens=true;		return;	}	isekvens=false;}function videre() {	//antalrigtige++;	if(document.form1.score) {document.form1.score.value = antalrigtige +"/" + antalsvar;}	if(isekvens) {nummeret++}	ident=window.setTimeout("nyopgave();", 500);}function findennyopgave()	{	if(nummeret>=opgaver.length) {nummeret=0};	if(!isekvens) {		var NytNummerIkkeFundet = true;		while(NytNummerIkkeFundet){			nummeret = rand(opgaver.length);			var NytNummerIkkeFundet = false;			for (x in gamlenumre) {if(nummeret == gamlenumre[x]) {NytNummerIkkeFundet=true;}		}	}	for (i=gamlenumre.length-1; i > 0; i--) {gamlenumre[i]=gamlenumre[i-1]};	gamlenumre[0]= nummeret;	}}function error(feltet,text) {	document.form1.respons1.value = text	feltet.select();	feltet.focus();	return false;}function visogmarker(feltet,text,responsfelt) {	if(responsfelt){responsfelt.value = "";}	feltet.value = text;	feltet.select();	feltet.focus();	return false;}function MarkerSvarOgResponder(svarfelt,responsfelt,text) {	responsfelt.value = text;	svarfelt.select();	svarfelt.focus();	return false;}function VisLoesning() {	if(document.form1){	if (document.form1.respons1){document.form1.respons1.value ="";} }	visloesning= true;	lavtopvindue();	visloesning= false;}function rand(num) {return Math.floor(Math.random() * num);}function lavrammer(bundvindue,hoejde)	{	parent.main.document.open();	parent.main.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>")	parent.main.document.write("</head><frameset rows='" +hoejde +",*' border='1' bordercolor='#FFFFFF'>")	parent.main.document.write("<frame name='topvindue' src='../res/blank.htm' scrolling='auto'>")	parent.main.document.write("<frame name='bundvindue' src='" + bundvindue +".htm' scrolling='auto'>")	parent.main.document.write("</frameset></html>")	parent.main.document.close();}function lavrammermedsti(bundvindue,hoejde,sti)	{	parent.main.document.open();	parent.main.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>")	parent.main.document.write("</head><frameset rows='" +hoejde +",*' border='1' bordercolor='#FFFFFF'>")	parent.main.document.write("<frame name='topvindue' src='" + sti + "res/blank.htm' scrolling='auto'>")	parent.main.document.write("<frame name='bundvindue' src='" + bundvindue +".htm' scrolling='auto'>")	parent.main.document.write("</frameset></html>")	parent.main.document.close();}function lavteoriramme(sidemenu,indholdsfortegnelse)	{	document.open();	document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>")	document.write("<link rel=STYLESHEET href='../../res/stylesheet.css' type='text/css' media='screen'>");	document.write("<link rel=STYLESHEET href='../../res/printstylesheet.css' type='text/css' media='print'>");	document.write("")	document.write("<title>JJ: Musikkurser</title>")	document.write("<frameset border='0' cols='130,*'>")		document.write("<frame name='indeks' src='" +sidemenu+ "' scrolling='auto'>")		document.write("<frame name='main' src='" + indholdsfortegnelse +"' scrolling='auto'>")	document.write("</frameset>")	document.write("</html>")	document.close();}function lavrammer2(vindue1,vindue2,hoejde1,hoejde2)	{	parent.main.document.open();	parent.main.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>")	parent.main.document.write("</head><frameset rows='" +hoejde1 +"," + hoejde2 + "' border='1' bordercolor='#FFFFFF'>")	parent.main.document.write("<frame name='topvindue' src='" +vindue1+ "' scrolling='auto'>")	parent.main.document.write("<frame name='bundvindue' src='" + vindue2 +"' scrolling='auto'></frameset></html>")	parent.main.document.close();}function lavnoderammer(nederstevindue)	{	document.open();	document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");	document.write("<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	document.write("</head><frameset rows='200,*' border='0' bordercolor='#FFFFFF'>")	document.write("<frame name='topvindue' src='../res/opgaveblank.htm' scrolling='auto'>")	document.write("<frame name='bundvindue' src='" + nederstevindue +".htm' scrolling='auto'>")	document.write("</frameset></html>")	document.close();}function lavrytmerammer(nederstevindue)	{	document.open();	document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");	document.write("<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	document.write("</head><frameset rows='310,*' border='0' bordercolor='#FFFFFF'>")	document.write("<frame name='topvindue' src='../res/opgaveblank.htm' scrolling='auto'>")	document.write("<frame name='bundvindue' src='" + nederstevindue +".htm' scrolling='auto'>")	document.write("</frameset></html>")	document.close();}function lavintervalrammer(nederstevindue)	{	document.open();	document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");	document.write("<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	document.write("</head><frameset rows='230,*' border='0' bordercolor='#FFFFFF'>")	document.write("<frame name='topvindue' src='../res/opgaveblank.htm' scrolling='auto'>")	document.write("<frame name='bundvindue' src='" + nederstevindue +".htm' scrolling='auto'>")	document.write("</frameset></html>")	document.close();}function lavskalarammer(nederstevindue)	{	document.open();	document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'></head>")	document.write("<frameset rows='210,*' border='0' bordercolor='#FFFFFF'>")	document.write("<frame name='topvindue' src='../res/opgaveblank.htm' scrolling='auto'>")	document.write("<frame name='bundvindue' src='" + nederstevindue +".htm' scrolling='auto'>")	document.write("</frameset></html>")	document.close();}function melodiramme(nederstevindue)	{	document.open();	document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");	document.write("<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	document.write("</head><frameset rows='320,*' border='0' bordercolor='#FFFFFF'>")	document.write("<frame name='topvindue' src='../res/opgaveblank.htm' scrolling='auto'>")	document.write("<frame name='bundvindue' src='" + nederstevindue +".htm' scrolling='auto'>")	document.write("</frameset></html>")	document.close();}function lavakkordrammer(nederstevindue)	{	document.open();	document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");	document.write("<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	document.write("</head><frameset rows='200,*' border='0' bordercolor='#FFFFFF'>")	document.write("<frame name='topvindue' src='../res/opgaveblank.htm' scrolling='auto'>")	document.write("<frame name='bundvindue' src='" + nederstevindue +".htm' scrolling='auto'>")	document.write("</frameset></html>")	document.close();}function lavtrinrammer(nederstevindue)	{	document.open();	document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");	document.write("<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	document.write("</head><frameset rows='260,*' border='0' bordercolor='#FFFFFF'>")	document.write("<frame name='topvindue' src='../../res/opgaveblank.htm' scrolling='auto'>")	document.write("<frame name='bundvindue' src='" + nederstevindue +".htm' scrolling='auto'>")	document.write("</frameset></html>")	document.close();}function lavfunktionsrammer(nederstevindue)	{	document.open();	document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");	document.write("<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	document.write("</head><frameset rows='180,*' border='0' bordercolor='#FFFFFF'>")	document.write("<frame name='topvindue' src='../../res/opgaveblank.htm' scrolling='auto'>")	document.write("<frame name='bundvindue' src='" + nederstevindue +".htm' scrolling='auto'>")	document.write("</frameset></html>")	document.close();}function huskespilsrammer(oeverstevindue)	{	document.open();	document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");	document.write("<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	document.write("</head><frameset rows='*,1' border='0' bordercolor='#FFFFFF'>")	document.write("<frame name='topvindue' src='" + oeverstevindue +".htm' scrolling='auto'>")	document.write("<frame name='bundvindue' src='../res/opgaveblank.htm' scrolling='auto'>")	document.write("</frameset></html>")	document.close();}function lavtrommerammer(nederstevindue)	{	document.open();	document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");	document.write("<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	document.write("</head><frameset rows='340,*' border='0' bordercolor='#FFFFFF'>")	document.write("<frame name='topvindue' src='../../../res/blank.htm' scrolling='auto'>")	document.write("<frame name='bundvindue' src='" + nederstevindue +".htm' scrolling='auto'>")	document.write("</frameset></html>")	document.close();}function lavakkordkorsrammer(toppen)	{	document.open();	document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");	document.write("<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	document.write("</head><frameset rows='*,40' border='1' bordercolor='#FFFFFF'>")	document.write("<frame name='top' src='" + toppen +".htm' scrolling='auto'>")	document.write("<frame name='bundvindue' src='../../../res/blank.htm' scrolling='auto'>")	document.write("</frameset></html>")	document.close();}function lavnodeopslagsvindue(bredde,hoejde) {	deandreparametre = "toolbar=yes,status=yes, resizable=yes, width=480, height=500";	nodevinduet= window.open('', 'nodevindue', deandreparametre);	nodevinduet.document.open();	nodevinduet.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");	nodevinduet.document.write("<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	nodevinduet.document.write("<link rel=STYLESHEET href='../res/stylesheet.css' type='text/css' media='screen'>");	nodevinduet.document.write("<link rel=STYLESHEET href='../res/printstylesheet.css' type='text/css' media='print'>");	nodevinduet.document.write("</head><frameset rows='110,*' border='1' bordercolor='#FFFFFF'>");	nodevinduet.document.write("<frame name='topvindue' src='../res/blank.htm' scrolling='auto'>");	//nodevinduet.document.write("<frame name='bundvindue' src='../noder/nodopsl.htm' scrolling='auto'>");	nodevinduet.document.write("<frame name='bundvindue' src='http://jakobmjensen.dk/musikkurser/teori/noder/nodopsl.htm' scrolling='auto'>");	nodevinduet.document.write("</frameset>");	nodevinduet.document.write("</html>");	nodevinduet.document.close();	window.nodevinduet.focus();}function intervalsopslagsvindue() {	deandreparametre = "toolbar=no,status=no, resizable=yes, width=460,height=500" 	nodevinduet= window.open('','intervalvindue', deandreparametre);	nodevinduet.document.open();	nodevinduet.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	nodevinduet.document.write("<link rel=STYLESHEET href='../res/stylesheet.css' type='text/css' media='screen'>");	nodevinduet.document.write("<link rel=STYLESHEET href='../res/printstylesheet.css' type='text/css' media='print'>");	nodevinduet.document.write("</head><frameset rows='120,*' border='1' bordercolor='#FFFFFF'>");	nodevinduet.document.write("<frame name='topvindue' src='../res/blank.htm' scrolling='auto'>");	nodevinduet.document.write("<frame name='bundvindue' src='http://jakobmjensen.dk/musikkurser/teori/interval/intopsl.htm' scrolling='auto'>");	nodevinduet.document.write("</frameset></html>");	nodevinduet.document.close();	window.nodevinduet.focus();}function skalaopslagsvindue() {	deandreparametre = "toolbar=no,status=no, resizable=yes, width=460,height=480" 	nodevinduet= window.open('','skalavindue', deandreparametre);	nodevinduet.document.open();	nodevinduet.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	nodevinduet.document.write("</head><frameset rows='120,*' border='1' bordercolor='#FFFFFF'>");	nodevinduet.document.write("<frame name='topvindue' src='../res/blank.htm' scrolling='auto'>");	nodevinduet.document.write("<frame name='bundvindue' src='http://jakobmjensen.dk/musikkurser/teori/skalaer/skalopsl.htm' scrolling='auto'>");	nodevinduet.document.write("</frameset></html>");	nodevinduet.document.close();	window.nodevinduet.focus();}function akkordopslagsvindue() {	deandreparametre = "toolbar=no,status=no, resizable=yes, width=460,height=500" 	nodevinduet= window.open('','akkordvindue', deandreparametre);	nodevinduet.document.open();	nodevinduet.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	nodevinduet.document.write("</head><frameset rows='160,*' border='1' bordercolor='#FFFFFF'>");	nodevinduet.document.write("<frame name='topvindue' src='../res/blank.htm' scrolling='auto'>");	nodevinduet.document.write("<frame name='bundvindue' src='http://jakobmjensen.dk/musikkurser/teori/akkorder/akopslag.htm' scrolling='auto'>");	nodevinduet.document.write("</frameset></html>");	nodevinduet.document.close();	window.nodevinduet.focus();}function lavklavervindue() {	deandreparametre = "toolbar=no,status=no,width=310,height=90";	klavervinduet = window.open('http://jakobmjensen.dk/musikkurser/res/klav2mna.html','klavervindue',deandreparametre);	window.klavervinduet.focus();}function lavkvintcirkelvindue() {	deandreparametre = "toolbar=no,status=no, resizable=yes,width=620,height=480" 	kvintcirkelvinduet = window.open('','kvintcirkelvindue',deandreparametre);	kvintcirkelvinduet.document.open();	kvintcirkelvinduet.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	kvintcirkelvinduet.document.write("</head><body >");	kvintcirkelvinduet.document.write("<img src='http://jakobmjensen.dk/musikkurser/res/kvcirkel.gif' width='' vspace='4' hspace='4'>");	kvintcirkelvinduet.document.write("</body></html>");	kvintcirkelvinduet.document.close();	window.kvintcirkelvinduet.focus();}function lavfunkvindue() {	deandreparametre = "toolbar=no,status=no, resizable=yes, width=550,height=300" 	funkvinduet = window.open('','funkvindue',deandreparametre);	funkvinduet.document.open();	funkvinduet.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");	funkvinduet.document.write("<link rel=STYLESHEET href='../res/stylesheet.css' type='text/css' media='screen'>");	funkvinduet.document.write("<link rel=STYLESHEET href='../res/printstylesheet.css' type='text/css' media='print'>");	funkvinduet.document.write("</head><body >");	funkvinduet.document.write("<img src='http://jakobmjensen.dk/musikkurser/res/cfunkcir.gif' width='' height='' vspace='4' hspace='4'>");	funkvinduet.document.write("</body></html>");	funkvinduet.document.close();	window.funkvinduet.focus();}function lavklaver(){	klaviatur = new Array(17);	foerstetone = opgaver[nummeret].opgaven;	foerstetone = foerstetone.substring(1,10);	if (foerstetone=='his0'){foerstetone='c1'};	if (foerstetone=='his1'){foerstetone='c2'};	if (foerstetone=='his2'){foerstetone='c3'};	if (foerstetone=='his3'){foerstetone='c4'};	if (foerstetone=='his4'){foerstetone='c5'};	if (foerstetone=='ces1'){foerstetone='h0'};	if (foerstetone=='ces2'){foerstetone='h1'};	if (foerstetone=='ces3'){foerstetone='h2'};	if (foerstetone=='ces4'){foerstetone='h3'};	if (foerstetone=='ces5'){foerstetone='h4'};	oktav1 = foerstetone.substring((foerstetone.length-1),foerstetone.length);	if (oktav1=='0'){nedersteoktav = '1';}	if (oktav1=='1'){nedersteoktav = '1';}	if (oktav1=='2'){nedersteoktav = '2';}	if (oktav1=='3'){nedersteoktav = '3';}	if (oktav1=='4'){nedersteoktav = '3';}	if (oktav1=='5'){nedersteoktav = '3';}	if (oktav1=='1'){oktav1= '3'}	if (oktav1=='2'){oktav1= '3'}	if (oktav1=='3'){oktav1= '3'}	if (oktav1=='4'){oktav1= '4'}	if (oktav1=='0'){oktav1= '2'}	foerstetone = foerstetone.substring(0,foerstetone.length-1);	if (foerstetone=='des'){foerstetone='cis'};	if (foerstetone=='es'){foerstetone='dis'};	if (foerstetone=='eis'){foerstetone='f'};	if (foerstetone=='fes'){foerstetone='e'};	if (foerstetone=='ges'){foerstetone='fis'};	if (foerstetone=='as'){foerstetone='gis'};	if (foerstetone=='ais'){foerstetone='bb'};	foerstetone = foerstetone + oktav1;	klaviatur[0] = 'kl3';	if(foerstetone=='h2')	{klaviatur[0] = 'kl3m'}	if(foerstetone=='bb2')	{klaviatur[0] = 'kl3vm'}	klaviatur[1] = 'kl1';	if(foerstetone=='c3')	{klaviatur[1] = 'kl1m'}	if(foerstetone=='cis3')	{klaviatur[1] = 'kl1hm'}	if (nedersteoktav=='3'){	if(klaviatur[1] == 'kl1')	{klaviatur[1] = 'kl1n'}	if(klaviatur[1] == 'kl1m')	{klaviatur[1] = 'kl1mn'}	if(klaviatur[1] == 'kl1hm')	{klaviatur[1] = 'kl1hmn'}}	klaviatur[2] = 'kl2';	if(foerstetone=='d3')	{klaviatur[2] = 'kl2m'}	if(foerstetone=='cis3')	{klaviatur[2] = 'kl2vm'}	if(foerstetone=='dis3')	{klaviatur[2] = 'kl2hm'}	klaviatur[3] = 'kl3';	if(foerstetone=='e3')	{klaviatur[3] = 'kl3m'}	if(foerstetone=='dis3')	{klaviatur[3] = 'kl3vm'}	klaviatur[4] = 'kl1';	if(foerstetone=='f3')	{klaviatur[4] = 'kl1m'}	if(foerstetone=='fis3')	{klaviatur[4] = 'kl1hm'}	klaviatur[5] = 'kl2';	if(foerstetone=='g3')	{klaviatur[5] = 'kl2m'}	if(foerstetone=='fis3')	{klaviatur[5] = 'kl2vm'}	if(foerstetone=='gis3')	{klaviatur[5] = 'kl2hm'}	klaviatur[6] = 'kl2';	if(foerstetone=='a3')	{klaviatur[6] = 'kl2m'}	if(foerstetone=='gis3')	{klaviatur[6] = 'kl2vm'}	if(foerstetone=='bb3' )	{klaviatur[6] = 'kl2hm'}	klaviatur[7] = 'kl3';	if(foerstetone=='h3')	{klaviatur[7] = 'kl3m'}	if(foerstetone=='bb3')	{klaviatur[7] = 'kl3vm'}	klaviatur[8] = 'kl1';	if(foerstetone=='c4')	{klaviatur[8] = 'kl1m'}	if(foerstetone=='cis4')	{klaviatur[8] = 'kl1hm'}	if (nedersteoktav=='2'){	if(klaviatur[8] == 'kl1')	{klaviatur[8] = 'kl1n'}	if(klaviatur[8] == 'kl1m')	{klaviatur[8] = 'kl1mn'}	if(klaviatur[8] == 'kl1hm')	{klaviatur[8] = 'kl1hmn'}}	klaviatur[9] = 'kl2';	if(foerstetone=='d4')	{klaviatur[9] = 'kl2m'}	if(foerstetone=='cis4')	{klaviatur[9] = 'kl2vm'}	if(foerstetone=='dis4')	{klaviatur[9] = 'kl2hm'}	klaviatur[10] = 'kl3';	if(foerstetone=='e4')	{klaviatur[10] = 'kl3m'}	if(foerstetone=='dis4')	{klaviatur[10] = 'kl3vm'}	klaviatur[11] = 'kl1';	if(foerstetone=='f4')	{klaviatur[11] = 'kl1m'}	if(foerstetone=='fis4')	{klaviatur[11] = 'kl1hm'}	klaviatur[12] = 'kl2';	if(foerstetone=='g4')	{klaviatur[12] = 'kl2m'}	if(foerstetone=='fis4')	{klaviatur[12] = 'kl2vm'}	if(foerstetone=='gis4')	{klaviatur[12] = 'kl2hm'}	klaviatur[13] = 'kl2';	if(foerstetone=='a4')	{klaviatur[13] = 'kl2m'}	if(foerstetone=='gis4')	{klaviatur[13] = 'kl2vm'}	if(foerstetone=='bb4' )	{klaviatur[13] = 'kl2hm'}	klaviatur[14] = 'kl3';	if(foerstetone=='h4')	{klaviatur[14] = 'kl3m'}	if(foerstetone=='bb4')	{klaviatur[14] = 'kl3vm'}	klaviatur[15] = 'kl1';	if(foerstetone=='c5')	{klaviatur[15] = 'kl1m'}	if(foerstetone=='cis5')	{klaviatur[15] = 'kl1hm'}	if (nedersteoktav=='1'){	if(klaviatur[15] == 'kl1')	{klaviatur[15] = 'kl1n'}	if(klaviatur[15] == 'kl1m')	{klaviatur[15] = 'kl1mn'}	if(klaviatur[15] == 'kl1hm'){klaviatur[15] = 'kl1hmn'}}	klaviatur[16] = 'kl2';	if(foerstetone=='d5')	{klaviatur[16] = 'kl2m'}	if(foerstetone=='cis5')	{klaviatur[16] = 'kl2vm'}	if(foerstetone=='dis5')	{klaviatur[16] = 'kl2hm'}}