function colup(id)
{ id.style.background='#ff8800'; }
function coldo(id)
{ id.style.background='#dd0050'; }
function colup2(id)
{ id.style.background='#dd0050'; id.style.color='#ffffff'; }
function coldo2(id)
{ id.style.background=''; id.style.color='#000000'; }
function colup3(id)
{ id.style.background='#dd0050'; }
function coldo3(id)
{ id.style.background='#ff8800'; }

function goout(niche,uu,om)
{
	top.location='?oo='+niche+'&p='+uu+'&o='+om;
}
var overm=false;
var lefty;
document.onmousemove=findxy;
function hintshow(tekst,bred,lef)
{
	overm=true;
	lefty=lef;
	findxy();
	document.all.hintkasse.style.visibility='visible';
	document.all.hintkassetekst.innerHTML=tekst;
	document.all.hintkasse.style.width=bred;
}
function findxy()
{
	if(overm)
	{
		document.all.hintkasse.style.top=event.clientY+document.body.scrollTop+20;
		document.all.hintkasse.style.left=event.clientX+document.body.scrollLeft+lefty+10;
	}
}
function hinthide()
{
	hintkasse.style.visibility='hidden';
	document.all.hintkasse.style.visibility='hidden';
	overm=false;
}
function toframe(ur)
{
	self.location.href=ur;
}
function beast(s)
{
	window.open(s,'_blank','height=600,width=800,left=0,top=0,status=no,toolbar=no,menubar=no,location=no,titlebar=no,scrollbars=no,resizable=no');
}
function ghost(s,x,y)
{
	window.open(s,'_blank','height='+y+',width='+x+',left=0,top=0,status=no,toolbar=no,menubar=no,location=no,titlebar=no,scrollbars=no,resizable=no');
}
function printpreview(s)
{
	window.open('printpreview.php?s='+s,'_blank','height=500,width=500,left=0,top=0,status=no,toolbar=no,menubar=no,location=no,titlebar=no,scrollbars=yes,resizable=no');
}
function printopgave(s)
{
	window.open('printopgave.php?s='+s,'_blank','height=500,width=500,left=0,top=0,status=no,toolbar=no,menubar=no,location=no,titlebar=no,scrollbars=yes,resizable=no');
}

function printpage()
{
	tv=parseInt(navigator.appVersion);
	if(tv>=4) window.print();
	else alert("Din browser understøtter ikke denne funktion.");
}

function calcme()
{
//	prisen=<?php echo $priser[0];?>-125;
//	if(document.all.mybox2.value==1) prisen+=<?php echo $priser[1];?>;
//	if(document.all.mybox3.value==1) prisen+=<?php echo $priser[2];?>;
//	if(document.all.mybox4.value==1) prisen+=<?php echo $priser[3];?>;
//	document.all("res1").value=prisen;
//	document.all("res2").value=prisen+125;
}


