function MouseOver(obj)
{
	obj.style.cursor = "hand";
	obj.className = "rowDark";
}

function MouseOut(obj)
{
	obj.className = "";
}

function Redirect(id)
{
	location.href = "/Pages/objectView.aspx?id="+id+"&pageId="+getItem("pageId")+"&mainMenuId="+getItem("mainMenuId");
}

function PageView(id)
{
	location.href = "/Home/Default.aspx?pageId="+id+"&mainMenuId="+getItem("mainMenuId");
}

function leftRedirect()
{
	location.href = "/Home/Default.aspx?pageId="+getItem("mainMenuId")+"&mainMenuId="+getItem("mainMenuId");
}

//spamproof maillink including mail
function showMail(username, hostname)
{
	var linktext = username+"@"+hostname
	mailto(username, hostname, linktext);
}


function popup() {
  curwin = window.open("../flash/games/vendespil.html","marb", "resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,width=620,height=580");

}


//spamproof maillink
function mailto(username, hostname, linktext)
{
	document.write("<a href=\""+"mail"+"to:"+username+"@"+hostname+"\">"+linktext+"</a>");
}

function PageQuery(q)
{
	if(q.length > 1)
		this.q = q.substring(1, q.length);
	else
		this.q = null;
	this.keyValuePairs = new Array();
	if(q)
	{
		for(var i=0; i < this.q.split("&").length; i++)
		{
			this.keyValuePairs[i] = this.q.split("&")[i];
		}
	}
	this.getKeyValuePairs = function() { return this.keyValuePairs; }
	this.getValue = function(s)
	{
		for(var j=0; j < this.keyValuePairs.length; j++)
		{
			if(this.keyValuePairs[j].split("=")[0] == s)
				return this.keyValuePairs[j].split("=")[1];
		}
		return false;
	}
	this.getParameters = function()
	{
		var a = new Array(this.getLength());
		for(var j=0; j < this.keyValuePairs.length; j++)
		{
			a[j] = this.keyValuePairs[j].split("=")[0];
		}
		return a;
	}
	this.getLength = function() { return this.keyValuePairs.length; } 
}

function queryString(key)
{
	var page = new PageQuery(window.location.search); 
	return unescape(page.getValue(key)); 
}
function getItem(key)
{
	if(queryString(key)=='false') 
	{
		return ("");
		//alert("you didn't enter a ?"+key+"=value querystring item.");
	}else{
		return(queryString(key));
	}
}

// HIGHTLIGHT TEXT i INTERNET Explorer 6
//if (window.createPopup && document.compatMode &&  
//document.compatMode=="CSS1Compat") 
//{ 
//  document.onreadystatechange = onresize = function fixIE6AbsPos() 
 // { 
  //  if (!document.body) return; 
  //  if (document.body.style.margin != "0px") document.body.style.margin = 0; 
  // onresize = null; 
   // document.body.style.height = 0; 
   // setTimeout(function(){ document.body.style.height =  
//document.documentElement.scrollHeight+'px'; }, 1); 
    //setTimeout(function(){ onresize = fixIE6AbsPos; }, 100); 
 // } 
//} 


<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin DISABLE RIGHT CLICK ON IMAGES -->
<!-- Begin
function right(e) {
	var msg = "Dette billede er beskyttet af copyright";
	if (navigator.appName == 'Netscape')
	{
		if(e.which == 3 || e.which == 3)
		{
			alert(msg);
			return false;
		}
		else
			return true;
	}
	else if (event.button==2) 
	{
		alert(msg);
		return false;
	}
	else
	 return true;
}

function trap() 
  {
  if(document.images)
    {
    for(i=0;i<document.images.length;i++)
      {
      document.images[i].onmousedown = right;
      document.images[i].onmouseup = right;
      }
    }
  }
// End -->


