var comments = new Array(10);

function nyttfonster(url,h,w){
window.open(url,"new","scrollbars=yes,height=" + h + ",width=" + w + ",resizable=yes")
}

function nyttfonster2(url,w,h){
window.open(url,"new","scrollbars=yes,toolbar=yes,height=" + h + ",width=" + w + ",resizable=yes")
}

function enter() {
	src = event.toElement;
	src.oldcol = src.style.background;
	src.style.background = "D4D4D4";
}

function leave() {
	src = event.fromElement;
	src.style.background = src.oldcol; /*"020093";*/
}

function write_comments() {
  i = 0;
  
  while (comments[i]!= undefined) {
	document.write(i+1);
	document.write(") ");
	document.write(comments[i]);
	document.write("<br/>");
	i++;
  }
}

function write_comment_nr(strComment) {
  i = 0;
  j = comments.length;
  done = false;
  
  while (i < j && !done)
  {
	if (comments[i] == strComment) {
	  document.write(i+1);
	  done = true;
	}
	if (comments[i] == undefined) {
	  comments[i] = strComment;
	  document.write(i+1);
	  done = true;
	}
	i++;
  }
}