function start (side, bredde, hoyde) {
OpenWin=this.open(side,"SSB","toolbar=yes,scrollbars=yes,directories=no,resizable=yes,menubar=no,width=403,height=424");
}

function dagens () {
OpenWin=this.open("","dagens","toolbar=yes,scrollbars=yes,directories=no,resize=yes,menubar=no,width=580,height=480");
}

function figur (figur) {
OpenWin=this.open(figur,"SSBfigur","toolbar=yes,scrollbars=yes,directories=no,resizable=yes,menubar=no,width=400,height=300");
OpenWin.focus();
}

function move_in (img_name, img_src) {
	if (document.images)
		document[img_name].src=img_src;
}

function move_out (img_name, img_src) {
	if (document.images)
		document[img_name].src=img_src;
}

function write2info (img_name, img_src) {
	if (parent.toolbar)
		if (parent.toolbar.document)
			if (parent.toolbar.document.images)
				parent.toolbar.document[img_name].src=img_src;
}

var navigator_win = null;
function ssb_navigator(name, url, width, height) {
  navigator_win = window.open(url, name, 'width='+width+',height='+height+',menubar=no');
  if (navigator_win != null) {
    if (navigator_win.opener == self) {
      window.name = 'hovedvindu';
      navigator_win.location.href = url;
    }
  }	
}

function traverse (trgt, url) {
	if (trgt.location) {
		trgt.location.href = url;
	}
}

function statevar (myvar, myimg, myoff, myon) {
	myvar.value = (myvar.value == 'true' ? 'false' : 'true');
	myimg.src = (myvar.value == 'true' ? myon : myoff);
}

