// JavaScript Document
<!--

function MM_jumpMenu(targ,selObj,restore,extra,div){ //v3.0
	targ2="";
	if(extra){
	targ2 = "&visAlle=ja";
	//alert(targ);
	}
	if(selObj.options[selObj.selectedIndex].value>0){
		lag = "&lag="+selObj.options[selObj.selectedIndex].value;	
	} else {
		lag="";
	}
  eval(targ+".location='"+"tabeller.php"+"?begr="+div+lag+targ2+"&skriv_ut=ja'");
  if (restore) selObj.selectedIndex=0;
}
var time = null
function move() {
window.location = "index.php?mittValg="+where;
}
function reloadPage(what){
	where = what;
	timer=setTimeout('move()',2000);
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function visAlle(selObj, what){
	//alert(toString(selObj));
	targ = "&ikke_vis_ferdig=yes";
	if(selObj.checked){
	targ = "";
	}
	eval("location='"+"tabeller.php"+what+targ+"'");
}
function openNewWindow(theURL,winName,features) { //v2.0
	var myString = "k"+location.href;
	var m2= myString.split("=");
	var m3 = m2[1].split("&");
	//alert(m3[0]);
  if(m3[0]=="endre_spiller"){theURL +="?mittValg=endre_spiller";}
  //newWindow = 
  window.open(theURL,winName,features);
 // newWindow.focus();

}
//Dynamic Image selector Script- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, installation instructions,
//100's more DHTML scripts, visit dynamicdrive.com

//enter image descriptions ("" for blank)
var description=new Array()
var ie4=document.all
var ns6=document.getElementById
//var tempobj=document.dynamicselector.dynamicselector2
if (ie4||ns6)
var contentobj=document.getElementById? document.getElementById("dynamic1"): document.all.dynamic1
function generateimage(who){
which = "<div align=\"center\"><input name=\"Button\" type=\"button\" class=\"smallButt\" onClick=\"openNewWindow('skriv_blog2.php','picupload','status=yes,width=500,height=500')\" value=\"Last opp bilde\"><input type=\"hidden\" name=\"bildesti\"></div>";
//which2 = "<br /><?php require('plakat_getpic_info.php'); ?>";
if (ie4||ns6){
var contentobj=document.getElementById? document.getElementById("dynamic1"): document.all.dynamic1;
contentobj.innerHTML='<center>Loading image...</center>'
contentobj.innerHTML= which
who = "deletepic.php?pic="+who;
openNewWindow(who,"picupload","width=100,height=100")
}
else if (document.layers){
document.dynamic1.document.write(which)
document.dynamic1.document.close()
who = "deletepic.php?pic="+who;
openNewWindow(who,"picupload","status=yes,scrollbars=yes,width=500,height=500")
}
else
alert('You need NS 4+ or IE 4+ to view the images!')
}

function generatedefault(){
generateimage('dynamic1')
}

if (ie4||ns6||document.layers){
}


//-->