function glow(obj,picNo)
{
	obj.src="image09/" + picNo + "_down.gif";
}
function noglow(obj,picNo)
{
	obj.src="image09/" + picNo + ".gif";
}
function colored(obj,picNo)
{
	obj.src="image09/" + picNo + "_down.gif";
}
function x()
{
	document.location="?action=l";
}
function checkNewsForm(frm)
{
	if(frm.header.value.length==0)
	{
		alert("Rubrik saknas!");
		frm.header.focus();
	}
	else if(frm.content.value.length==0)
	{
		alert("Brödtext saknas!");
		frm.content.focus();
	}
	else
		frm.submit();
}

function moveDiv(){
	var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
	    //Non-IE
	    myWidth = window.innerWidth;
	    myHeight = window.innerHeight;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	    //IE 6+ in 'standards compliant mode'
	    myWidth = document.documentElement.clientWidth;
	    myHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	    //IE 4 compatible
	    myWidth = document.body.clientWidth;
	    myHeight = document.body.clientHeight;
	  }
	
	 if(myWidth<1100)myWidth=1100;
	 var a=document.getElementById("dbkampen_ad");
	 var b=document.getElementById("planket");
	 var c=document.getElementById("article");
	 var d=document.getElementById("innerplank");
	 var pxdb=myWidth/2+190 + "px";
	 var pxplanka=myWidth/2+195 + "px";
	 var pxinnerplanka=myWidth/2+210 + "px";
	 var pxarticle=myWidth/2-480 + "px";
	 a.style.left=pxdb;
	 a.style.display="block";
	 b.style.left=pxplanka;
	 b.style.display="block";
	 c.style.left=pxarticle;
	 c.style.display="block";
	 d.style.left=pxinnerplanka;
	 d.style.display="block";
	//alert(myWidth);
}
