
var indtastsoeg = false
function over(menupunktnavn) {
eval('img'+menupunktnavn+'.src="images/"+menupunktnavn+"-on.gif"');
}
function ud(menupunktnavn) {
	if (sidenavn == menupunktnavn) {
		eval('img'+menupunktnavn+'.src="images/"+menupunktnavn+"-on.gif"');
	}else{
		eval('img'+menupunktnavn+'.src="images/"+menupunktnavn+"-off.gif"');	
	}
}
function dlover(navn) {
eval('img'+navn+'.src="images/download-on.gif"');
}
function dlud(navn) {
eval('img'+navn+'.src="images/download-off.gif"');
}

function soegned() {
if (txtsoeg.value == "   indtast søgeord her"){txtsoeg.value=""}
}

function startSoegning()
{
  if (txtsoeg.value == "")
  {
   alert("Indtast venligst et søgeord.");
   txtsoeg.focus;
  }
  else if (txtsoeg.value == "   indtast søgeord her")
  {
   alert("Indtast venligst et søgeord.");
   txtsoeg.focus;
  }
  else
  {
  self.location.href="soeg.asp?vis=standard&soegeord="+txtsoeg.value.replace("'","");
  }
}

var seogTextPaaSideAktiv = false

function seogTextPaaSide()
{
if (seogTextPaaSideAktiv == false)
{
 seogTextPaaSideAktiv = true
 SoegTextVindue = window.open('soegtext.htm','SoegTextVindue','toolbar=no,height=100,width=200,top='+((screen.height/2)-(50))+',left='+((screen.width/2)-(100))+',noresize')
}else{
SoegTextVindue.close();
seogTextPaaSideAktiv = false
}
}

function soegTextPaaSideUd() {
	if (seogTextPaaSideAktiv == false) {
		eval('imgsoegside.src="images/soegside-off.gif"');
	}else{
		eval('imgsoegside.src="images/soegside-on.gif"');	
	}
}

function popUpWindowUdskriv(pageURL, pageName) {
	winProps = 'height=700,width=640,top=10,left=50,scrollbars=yes,resizable=no'
	win = window.open(pageURL, pageName, winProps)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function popUpDebatten(DebatURL)
{
DebattenVindue = window.open(DebatURL,'DebattenVindue','toolbar=no,statusbar=no,height=515,width=810,top='+((screen.height/2)-(270))+',left='+((screen.width/2)-(350))+',scrollbars=yes,resizable=yes')
}

function OPENBIOGRAFEN(filmnr)
{
BiografVindue = window.open('biografen/index.htm?filmID='+filmnr+'','BiografVindue','toolbar=no,height=445,width=617,top=100,left=100,noresize')
}

function visBeskrivelse(obj) {
        obj = document.getElementById(obj);
        if (obj.style.display == "block")
        {
         obj.style.display = "none";
        }else{
         obj.style.display = "block";
        }
	}

function visObjektToggle(obj) {
        obj = document.getElementById(obj);
        if (obj.style.display == "block")
        {
         obj.style.display = "none";
        }else{
         obj.style.display = "block";
        }
	}

function visObjekt(obj) {
        obj = document.getElementById(obj);
        obj.style.display = "block";
	}

function popUpVote(VoteURL)
{
VoteVindue = window.open(VoteURL,'VoteVindue','toolbar=no,statusbar=no,height=300,width=190,top='+((screen.height/2)-(150))+',left='+((screen.width/2)-(90))+',scrollbars=no,resizable=no')
}

function openEditor(EditURL)
{
EditVindue = window.open(EditURL,'EditVindue','toolbar=no,statusbar=no,height=670,width=650,top='+((screen.height/2)-(300))+',left='+((screen.width/2)-(325))+',scrollbars=no,resizable=no')
}

function LukSide() {
if (seogTextPaaSideAktiv == true){SoegTextVindue.close();}
}

function keydown()
{
k=window.event.keyCode
if (indtastsoeg == true) {
	if (k == 13) { startSoegning(); } //Enter
}
}

document.onkeydown = keydown