/******** Denne filen inneholder div funksjoner ********************/


/* funksjon som viser tekst */
function message() {
alert ("Hello");
}

/* funksjon som opner html i et bestemt størelse */
function newWin(obj){
	var winOpt = "height=600,width=500,status";
	window.open(obj.href,obj.target,winOpt);
	}
/* funk slutt */	

/* funk. som endrer fargen en tabell celle når du går inn */
function inCell(cell, newcolor) {
if (!cell.contains(event.fromElement)) {
cell.bgColor = newcolor;
}
}

/* funk slutt */

/* funk. som endrer fargen en tabell celle når du går ut */
function outCell(cell, newcolor) {
if (!cell.contains(event.toElement)) {
cell.bgColor = newcolor;
}
}

/* Slideshow funk */
var x = 0;

function rotate(num){
x=num%document.slideForm.slide.length;
if(x<0){x=document.slideForm.slide.length-1};
document.images.show.src=document.slideForm.slide.options[x].value;
document.slideForm.slide.selectedIndex=x;
}

function apRotate() {
if(document.slideForm.slidebutton.value == "Stop"){
rotate(++x);window.setTimeout("apRotate()", 4000);}
}

/* slutt slideshow funk */
