
function blinking_title()
{
if (!document.getElementById('blink').style.color)
	{
	document.getElementById('blink').style.color="green"
	}
if (document.getElementById('blink').style.color=="white")
	{
	document.getElementById('blink').style.color="yellow"
	}
else
	{
	document.getElementById('blink').style.color="white"
	}
timer=setTimeout("blinking_title()",100)
}

function stoptimer()
{
clearTimeout(timer)
}


 
<!--
function SI_openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

	//Function to open pop up window
function openWin(theURL,winName,features) {
  	window.open(theURL,winName,features);
}


function ResetForm(){

	if (window.confirm("Er du sikker på at du vil slette dette?")){
		forms.beskrivelse.focus();
	 	forms.beskrivelse.document.body.innerHTML = ""; 
	 	return true;
	 } 
	 return false;		
}

function oppdaterWebsideForm(){

	if (window.confirm("Er du sikker på at du vil oppdatere websideDesign?\n ")){
		frmConfiguration.oppdater.focus();
	 	return true;
	 } 
	 return false;		
}

function SlettForm(){

	if (window.confirm("Er du sikker på at du vil slette ordet?")){
		forms.beskrivelse.focus();
	 	forms.beskrivelse.document.body.innerHTML = ""; 
	 	return true;
	 } 
	 return false;		
}

function AvbrytForm(){

	if (window.confirm("Er du sikker på at du vil avbryte uten å lagre?")){
		forms.beskrivelse.focus();
	 	forms.beskrivelse.document.body.innerHTML = ""; 
	 	return true;
	 } 
	 return false;		
}

function openInMainWin(winLocation){
	window.opener.location.href = winLocation
	window.opener.focus();
	window.close();
}

//Webpakker

function colOver(a)
{
  a.style.backgroundColor = '#cccccc';
}

function colOut(a, changeTo)
{
  a.style.backgroundColor = changeTo;
}
//#########

function show_popup()
{
var p=window.createPopup()
var pbody=p.document.body
pbody.style.backgroundColor="lime"
pbody.style.border="solid black 1px"
pbody.innerHTML="This is a pop-up! Click outside the pop-up to close."
p.show(150,150,200,50,document.body)
}

var is = new Object()

is.ie = (document.all) ? 1:0
is.ns4 = (document.layers) ? 1:0
is.w3c = (document.getElementById && !is.ie) ? 1:0
is.win = (navigator.userAgent.toLowerCase().indexOf("win") > 0) ? 1:0
is.mac = (navigator.userAgent.toLowerCase().indexOf("mac") > 0) ? 1:0

// Open new window
function NewWindow(page, pagename, w, h, scroll) {
	if (is.w3c) {
		h = h + 160;
	}
	var winl = (screen.width - w) / 3;
	var wint = (screen.height - h) / 3;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
	win = window.open(page, pagename, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


// Horisontal dropDownMeny Show, hide

function mShow(id)
{
if (document.layers)
document.layers[id].visibility = "show"

else if (document.all)
document.all[id].style.visibility = "visible"

else if (document.getElementById)
document.getElementById(id).style.visibility = "visible"
}

function mHide(id)
{
if (document.layers)
document.layers[id].visibility = "hide"

else if (document.all)
document.all[id].style.visibility = "hidden"

else if (document.getElementById)
document.getElementById(id).style.visibility = "hidden"
}


// Vertikal meny hoover

function colorover(a)
{
a.style.background = '#515351';
}


function coloroverItem(a)
{
  a.style.background = '#132446';
}


function colorout(a, changeTo)
{
  a.style.background = changeTo; 
  
}
